From 381613bee9e49520565855bc5e826b1b27877c07 Mon Sep 17 00:00:00 2001 From: Maximilian Betz <Maximilian.Betz@awi.de> Date: Wed, 9 Mar 2022 17:55:42 +0100 Subject: [PATCH] some more ui on overview --- lib/overview.dart | 43 +++++++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/lib/overview.dart b/lib/overview.dart index 1eb727f..39afd02 100644 --- a/lib/overview.dart +++ b/lib/overview.dart @@ -8,26 +8,37 @@ class Overview extends StatelessWidget { appBar: AppBar(title: const Text('Mobile Event Log')), body: Center( child: Column( - mainAxisAlignment: MainAxisAlignment.spaceAround, + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + crossAxisAlignment: CrossAxisAlignment.stretch, children: <Widget>[ - ElevatedButton( - child: const Text('Add Event'), - onPressed: () { - Navigator.pushNamed(context, '/second'); - }, + const SizedBox(height: 10), + Expanded( + child: ElevatedButton( + child: const Text('Add Event', style: TextStyle(fontSize: 22)), + onPressed: () { + Navigator.pushNamed(context, '/second'); + }, + ), ), - ElevatedButton( - child: const Text('View Added Events'), - onPressed: () { - Navigator.pushNamed(context, '/third'); - }, + const SizedBox(height: 10), + Expanded( + child: ElevatedButton( + child: const Text('View Added Events', style: TextStyle(fontSize: 22)), + onPressed: () { + Navigator.pushNamed(context, '/third'); + }, + ), ), - ElevatedButton( - child: const Text('Configuration'), - onPressed: () { - Navigator.pushNamed(context, '/forth'); - }, + const SizedBox(height: 10), + Expanded( + child: ElevatedButton( + child: const Text('Configuration', style: TextStyle(fontSize: 22)), + onPressed: () { + Navigator.pushNamed(context, '/forth'); + }, + ), ), + const SizedBox(height: 10), ], )), ); -- GitLab