Farbe + width

This commit is contained in:
Nopylacetat
2023-10-20 18:15:42 +02:00
parent f8e2c2291d
commit 979f3d2c4c

View File

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