From 9ca23e4e84aff0723befc39f7460997bd98062a2 Mon Sep 17 00:00:00 2001
From: RyuZU <dbrua1222@naver.com>
Date: Wed, 5 Jun 2024 18:47:44 +0900
Subject: [PATCH] 5

---
 lib/main.dart | 25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)

diff --git a/lib/main.dart b/lib/main.dart
index 637414b..1394672 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}",
+        ),
       ),
     );
   }
-- 
GitLab