|
@@ -108,38 +108,23 @@ class _MainMenuState extends State<MainMenu> {
|
|
|
Widget _buildPortraitLayout() {
|
|
Widget _buildPortraitLayout() {
|
|
|
return Column(
|
|
return Column(
|
|
|
children: [
|
|
children: [
|
|
|
- // Header with settings button
|
|
|
|
|
- Row(
|
|
|
|
|
- mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
- children: [
|
|
|
|
|
- IconButton(
|
|
|
|
|
- onPressed: _openSettings,
|
|
|
|
|
- icon: Icon(
|
|
|
|
|
- Icons.settings,
|
|
|
|
|
- color: ZenColors.currentPrimaryText,
|
|
|
|
|
- size: 28,
|
|
|
|
|
- ),
|
|
|
|
|
- style: IconButton.styleFrom(
|
|
|
|
|
- backgroundColor: ZenColors.black.withValues(alpha: 0.3),
|
|
|
|
|
- shape: const CircleBorder(),
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
- ],
|
|
|
|
|
- ),
|
|
|
|
|
-
|
|
|
|
|
// Main content
|
|
// Main content
|
|
|
Expanded(
|
|
Expanded(
|
|
|
- child: Column(
|
|
|
|
|
- mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
- children: [
|
|
|
|
|
- _buildGameTitle(),
|
|
|
|
|
- const SizedBox(height: 40),
|
|
|
|
|
- _buildTodayScore(),
|
|
|
|
|
- const SizedBox(height: 40),
|
|
|
|
|
- _buildMenuButtons(),
|
|
|
|
|
- const SizedBox(height: 40),
|
|
|
|
|
- _buildSettingsHint(),
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ child: SingleChildScrollView(
|
|
|
|
|
+ child: Column(
|
|
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
+ children: [
|
|
|
|
|
+ const SizedBox(height: 20),
|
|
|
|
|
+ _buildGameTitle(),
|
|
|
|
|
+ const SizedBox(height: 40),
|
|
|
|
|
+ _buildTodayScore(),
|
|
|
|
|
+ const SizedBox(height: 40),
|
|
|
|
|
+ _buildMenuButtons(),
|
|
|
|
|
+ const SizedBox(height: 40),
|
|
|
|
|
+ _buildSettingsHint(),
|
|
|
|
|
+ const SizedBox(height: 20),
|
|
|
|
|
+ ],
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
],
|
|
],
|
|
@@ -164,40 +149,18 @@ class _MainMenuState extends State<MainMenu> {
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
|
|
|
|
|
- // Right side - Menu buttons and settings
|
|
|
|
|
|
|
+ // Right side - Menu buttons
|
|
|
Expanded(
|
|
Expanded(
|
|
|
flex: 3,
|
|
flex: 3,
|
|
|
- child: Column(
|
|
|
|
|
- children: [
|
|
|
|
|
- // Settings button
|
|
|
|
|
- Row(
|
|
|
|
|
- mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
- children: [
|
|
|
|
|
- IconButton(
|
|
|
|
|
- onPressed: _openSettings,
|
|
|
|
|
- icon: Icon(
|
|
|
|
|
- Icons.settings,
|
|
|
|
|
- color: ZenColors.currentPrimaryText,
|
|
|
|
|
- size: 28,
|
|
|
|
|
- ),
|
|
|
|
|
- style: IconButton.styleFrom(
|
|
|
|
|
- backgroundColor: ZenColors.black.withValues(alpha: 0.3),
|
|
|
|
|
- shape: const CircleBorder(),
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
- ],
|
|
|
|
|
- ),
|
|
|
|
|
-
|
|
|
|
|
- // Menu buttons
|
|
|
|
|
- Expanded(
|
|
|
|
|
- child: SingleChildScrollView(
|
|
|
|
|
- child: Column(
|
|
|
|
|
- mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
- children: [_buildResponsiveMenuButtons()],
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ child: SingleChildScrollView(
|
|
|
|
|
+ child: Column(
|
|
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
+ children: [
|
|
|
|
|
+ const SizedBox(height: 20),
|
|
|
|
|
+ _buildResponsiveMenuButtons(),
|
|
|
|
|
+ const SizedBox(height: 20),
|
|
|
|
|
+ ],
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
],
|
|
],
|
|
@@ -288,6 +251,16 @@ class _MainMenuState extends State<MainMenu> {
|
|
|
),
|
|
),
|
|
|
const SizedBox(height: 20),
|
|
const SizedBox(height: 20),
|
|
|
|
|
|
|
|
|
|
+ // Settings Button
|
|
|
|
|
+ _buildMenuButton(
|
|
|
|
|
+ context,
|
|
|
|
|
+ l10n.settings,
|
|
|
|
|
+ l10n.settingsDescription,
|
|
|
|
|
+ Icons.settings,
|
|
|
|
|
+ _openSettings,
|
|
|
|
|
+ ),
|
|
|
|
|
+ const SizedBox(height: 20),
|
|
|
|
|
+
|
|
|
// Exit Button
|
|
// Exit Button
|
|
|
_buildExitButton(
|
|
_buildExitButton(
|
|
|
context,
|
|
context,
|
|
@@ -345,6 +318,16 @@ class _MainMenuState extends State<MainMenu> {
|
|
|
),
|
|
),
|
|
|
SizedBox(height: buttonSpacing),
|
|
SizedBox(height: buttonSpacing),
|
|
|
|
|
|
|
|
|
|
+ // Settings Button
|
|
|
|
|
+ _buildMenuButton(
|
|
|
|
|
+ context,
|
|
|
|
|
+ l10n.settings,
|
|
|
|
|
+ l10n.settingsDescription,
|
|
|
|
|
+ Icons.settings,
|
|
|
|
|
+ _openSettings,
|
|
|
|
|
+ ),
|
|
|
|
|
+ SizedBox(height: buttonSpacing),
|
|
|
|
|
+
|
|
|
// Exit Button
|
|
// Exit Button
|
|
|
_buildExitButton(
|
|
_buildExitButton(
|
|
|
context,
|
|
context,
|