Center login prompt

This commit is contained in:
Lea 2023-02-05 17:44:56 +01:00
parent 703068082e
commit 93670f7c3d
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View file

@ -9,14 +9,17 @@ class LoginPrompt extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Column( return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
const Text('Please log in'), const Text('Please log in'),
const SizedBox(height: 8),
ElevatedButton( ElevatedButton(
onPressed: () { onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => LoginPage(api: api))); Navigator.push(context, MaterialPageRoute(builder: (context) => LoginPage(api: api)));
}, },
child: const Text('Log in'), child: const Text('Log in'),
), ),
const SizedBox(height: 80),
], ],
); );
} }