|
|
@ -44,7 +44,7 @@ class MainMenuScreen extends StatelessWidget {
|
|
|
|
rectangularMenuArea: Column(
|
|
|
|
rectangularMenuArea: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
ElevatedButton(
|
|
|
|
FilledButton(
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
audioController.playSfx(SfxType.buttonTap);
|
|
|
|
audioController.playSfx(SfxType.buttonTap);
|
|
|
|
GoRouter.of(context).go('/play');
|
|
|
|
GoRouter.of(context).go('/play');
|
|
|
@ -55,7 +55,7 @@ class MainMenuScreen extends StatelessWidget {
|
|
|
|
if (gamesServicesController != null) ...[
|
|
|
|
if (gamesServicesController != null) ...[
|
|
|
|
_hideUntilReady(
|
|
|
|
_hideUntilReady(
|
|
|
|
ready: gamesServicesController.signedIn,
|
|
|
|
ready: gamesServicesController.signedIn,
|
|
|
|
child: ElevatedButton(
|
|
|
|
child: FilledButton(
|
|
|
|
onPressed: () => gamesServicesController.showAchievements(),
|
|
|
|
onPressed: () => gamesServicesController.showAchievements(),
|
|
|
|
child: const Text('Achievements'),
|
|
|
|
child: const Text('Achievements'),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -63,14 +63,14 @@ class MainMenuScreen extends StatelessWidget {
|
|
|
|
_gap,
|
|
|
|
_gap,
|
|
|
|
_hideUntilReady(
|
|
|
|
_hideUntilReady(
|
|
|
|
ready: gamesServicesController.signedIn,
|
|
|
|
ready: gamesServicesController.signedIn,
|
|
|
|
child: ElevatedButton(
|
|
|
|
child: FilledButton(
|
|
|
|
onPressed: () => gamesServicesController.showLeaderboard(),
|
|
|
|
onPressed: () => gamesServicesController.showLeaderboard(),
|
|
|
|
child: const Text('Leaderboard'),
|
|
|
|
child: const Text('Leaderboard'),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_gap,
|
|
|
|
_gap,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
ElevatedButton(
|
|
|
|
FilledButton(
|
|
|
|
onPressed: () => GoRouter.of(context).push('/settings'),
|
|
|
|
onPressed: () => GoRouter.of(context).push('/settings'),
|
|
|
|
child: const Text('Settings'),
|
|
|
|
child: const Text('Settings'),
|
|
|
|
),
|
|
|
|
),
|
|
|
|