This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: don't allow mobile web browser (#60)
- Loading branch information
1 parent
2525550
commit ca3c523
Showing
7 changed files
with
234 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export 'view/view.dart'; | ||
export 'widgets/widgets.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import 'package:app_ui/app_ui.dart'; | ||
import 'package:dash_run/settings/settings_controller.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_bloc/flutter_bloc.dart'; | ||
|
||
class AudioButton extends StatelessWidget { | ||
const AudioButton({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final settingsController = context.watch<SettingsController>(); | ||
return ValueListenableBuilder<bool>( | ||
valueListenable: settingsController.soundsOn, | ||
builder: (context, soundsOn, child) => GameIconButton( | ||
icon: soundsOn ? Icons.volume_up : Icons.volume_off, | ||
onPressed: soundsOn | ||
? settingsController.toggleMuted | ||
: settingsController.toggleMusicOn, | ||
), | ||
); | ||
} | ||
} | ||
|
||
class LeaderboardButton extends StatelessWidget { | ||
const LeaderboardButton({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return GameIconButton( | ||
icon: Icons.leaderboard, | ||
onPressed: () {}, | ||
); | ||
} | ||
} | ||
|
||
class InfoButton extends StatelessWidget { | ||
const InfoButton({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return GameIconButton( | ||
icon: Icons.info, | ||
onPressed: () {}, | ||
); | ||
} | ||
} | ||
|
||
class HowToPlayButton extends StatelessWidget { | ||
const HowToPlayButton({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return GameIconButton( | ||
icon: Icons.help, | ||
onPressed: () {}, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export 'game_intro_buttons.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters