Class MyApp extends StatelessWidget { const MyApp({super key})



Download 0,79 Mb.
Sana25.12.2022
Hajmi0,79 Mb.
#896179
Bog'liq
nortoy1999




runApp(const MyApp());


}

class MyApp extends StatelessWidget {


const MyApp({super.key});

// This widget is the root of your application.


@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(

primarySwatch: Colors.blueGrey,


),
home: EditProfileUI(),
);
}
}

class EditProfileUI extends StatefulWidget {


const EditProfileUI({Key? key}) : super(key: key);

@override


State createState() => _EditProfileUIState();
}

class _EditProfileUIState extends State {


bool is0bscurePassword = true;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Hayriddin Normuhammadov'),
),
body: Container(
padding: EdgeInsets.only(left:15, top:20, right:15),
child: GestureDetector(
onTap:() {
FocusScope.of(context).unfocus();
},
child: ListView(
children: [
Center(
child: Stack(
children: [
Container(
width:130,
height:130,
decoration: BoxDecoration(
border: Border.all(width: 4, color: Colors.black12),
boxShadow: [
BoxShadow(
spreadRadius: 2,
blurRadius: 10,
color: Colors.black.withOpacity(0.1)
)
],
shape: BoxShape.circle,
image:const DecorationImage(
fit: BoxFit.cover,
image: NetworkImage('images/')
),
),
),
]
),
),
SizedBox(height: 30),
buildTextField("Full Name", "Hayriddin Normuhammatov", false),
buildTextField("Data of Brithday" ,"03.01.1999" , false),
buildTextField("Tel", "66666666666", false),
buildTextField("Student", "Tuit", false),
],
),
),
)
);
}
Widget buildTextField(String labelText, String placeholder, bool isPasswordTextField) {
return Padding(
padding:EdgeInsets.only(bottom: 30),
child:TextField(
obscureText: isPasswordTextField ? is0bscurePassword : false,
decoration: InputDecoration(
suffixIcon: isPasswordTextField ?
IconButton(
icon: Icon(Icons.remove_red_eye, color: Colors.grey),
onPressed: () {}
): null,
contentPadding: EdgeInsets.only(bottom: 5),
labelText: labelText,
floatingLabelBehavior: FloatingLabelBehavior.always,
hintText: placeholder,
hintStyle: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
color: Colors.grey,
)
),
),
);
}
}

Download 0,79 Mb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©www.hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish