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

5

parent 4a9e1fa7
Branches
No related tags found
No related merge requests found
......@@ -41,14 +41,17 @@ class MyHomePage extends StatelessWidget {
var pair = appState.current;
return Scaffold(
body: Column(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('A random AWESOME idea:'),
// 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}",
),
),
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment