diff --git a/lib/main.dart b/lib/main.dart index 637414b5ccc06afb7dddc5f0eeed013913c8762e..139467226a9de316215e9d5d9962bc2557a4cb66 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -41,13 +41,16 @@ class MyHomePage extends StatelessWidget { var pair = appState.current; return Scaffold( - body: Column( - children: [ - Text('A random AWESOME idea:'), - BigCard(pair: pair), - - ElevatedButton(onPressed: (){appState.getNext();}, child: Text('Next'),), - ], + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + // Text('A random AWESOME idea:'), + BigCard(pair: pair), + SizedBox(height: 10,), + ElevatedButton(onPressed: (){appState.getNext();}, child: Text('Next'),), + ], + ), ), ); } @@ -65,14 +68,18 @@ class BigCard extends StatelessWidget { Widget build(BuildContext context) { final theme = Theme.of(context); final style = theme.textTheme.displayMedium!.copyWith( - color: theme.colorScheme.primary, + color: theme.colorScheme.onPrimary, ); return Card( color: theme.colorScheme.primary, child: Padding( padding: const EdgeInsets.all(20.0), - child: Text(pair.asLowerCase, style: style,), + child: Text( + pair.asLowerCase, + style: style, + semanticsLabel: "${pair.first} ${pair.second}", + ), ), ); }