Skip to content

Commit 9b332db

Browse files
committed
refactor(ui): Replace ElevatedButton with FilledButton.tonal and adjust styling
Replaced `ElevatedButton` with `FilledButton.tonal` across several UI components to align with updated design principles. This change affects the main game menu, in-game menu, and the game launch screen. - `lib/ui/main/game.dart`: Updated the game launch button. - `lib/ui/game/in_game_menu.dart`: Updated buttons within the in-game menu. - `lib/ui/game/action/action.dart`: Removed the `inCard` wrapper and its elevation from the action description widget for a flatter design. - `assets/img/campfire.svg`: Deleted the unused campfire SVG asset.
1 parent b2b998a commit 9b332db

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

assets/img/campfire.svg

Lines changed: 0 additions & 11 deletions
This file was deleted.

lib/ui/game/action/action.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class _GameActionPageState extends State<GameActionPage> {
106106
attrs: player.attrs,
107107
textStyle: context.textTheme.headlineMedium,
108108
minHeight: 14,
109-
).padAll(12).inCard(elevation: 2);
109+
).padAll(12);
110110
}
111111

112112
Widget buildJourneyProgress() {

lib/ui/game/in_game_menu.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class _InGameMenuState extends State<_InGameMenu> {
6161
}
6262

6363
Widget btn(String text, VoidCallback? onTap) {
64-
return ElevatedButton(
64+
return FilledButton.tonal(
6565
onPressed: onTap,
6666
child: text.text(
6767
style: TextStyle(fontSize: context.textTheme.titleLarge?.fontSize),

lib/ui/main/game.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class _GamePageState extends State<GamePage> {
8383
}
8484

8585
Widget buildBtn(String text, [VoidCallback? onTap]) {
86-
return ElevatedButton(
86+
return FilledButton.tonal(
8787
onPressed: onTap,
8888
child: text
8989
.autoSizeText(

0 commit comments

Comments
 (0)