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
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text('Please log in'),
const SizedBox(height: 8),
ElevatedButton(
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => LoginPage(api: api)));
},
child: const Text('Log in'),
),
const SizedBox(height: 80),
],
);
}