Skip to content
Snippets Groups Projects
Commit 9ca23e4e authored by RyuZU's avatar RyuZU
Browse files

5

parent 4a9e1fa7
No related branches found
No related tags found
No related merge requests found
...@@ -41,14 +41,17 @@ class MyHomePage extends StatelessWidget { ...@@ -41,14 +41,17 @@ class MyHomePage extends StatelessWidget {
var pair = appState.current; var pair = appState.current;
return Scaffold( return Scaffold(
body: Column( body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Text('A random AWESOME idea:'), // Text('A random AWESOME idea:'),
BigCard(pair: pair), BigCard(pair: pair),
SizedBox(height: 10,),
ElevatedButton(onPressed: (){appState.getNext();}, child: Text('Next'),), ElevatedButton(onPressed: (){appState.getNext();}, child: Text('Next'),),
], ],
), ),
),
); );
} }
} }
...@@ -65,14 +68,18 @@ class BigCard extends StatelessWidget { ...@@ -65,14 +68,18 @@ class BigCard extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final theme = Theme.of(context); final theme = Theme.of(context);
final style = theme.textTheme.displayMedium!.copyWith( final style = theme.textTheme.displayMedium!.copyWith(
color: theme.colorScheme.primary, color: theme.colorScheme.onPrimary,
); );
return Card( return Card(
color: theme.colorScheme.primary, color: theme.colorScheme.primary,
child: Padding( child: Padding(
padding: const EdgeInsets.all(20.0), padding: const EdgeInsets.all(20.0),
child: Text(pair.asLowerCase, style: style,), child: Text(
pair.asLowerCase,
style: style,
semanticsLabel: "${pair.first} ${pair.second}",
),
), ),
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment