1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-11 07:18:15 +00:00

Migrate game_template to Material 3 (#1613)

This commit is contained in:
Miguel Beltran
2023-01-31 22:14:32 +01:00
committed by GitHub
parent f088262e2e
commit 6bea60b091
6 changed files with 18 additions and 12 deletions

View File

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