Farbe + width
This commit is contained in:
@@ -7,11 +7,18 @@ class LoginPage extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final width = MediaQuery.of(context).size.width;
|
||||||
TextEditingController username = TextEditingController();
|
TextEditingController username = TextEditingController();
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
body: Center(
|
body: Center(
|
||||||
|
child: SizedBox(
|
||||||
|
width: width / 2,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
const Text('Please enter your first name',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.pink,
|
||||||
|
)),
|
||||||
TextField(
|
TextField(
|
||||||
controller: username,
|
controller: username,
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
@@ -29,6 +36,7 @@ class LoginPage extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user