From 5e237e9a51548a3ea75a4793099d562c62cdac22 Mon Sep 17 00:00:00 2001 From: alestiago Date: Sun, 10 Mar 2024 16:48:53 +0000 Subject: [PATCH] refactor: rename to TutorialHud --- .../trashy_road/lib/src/game/view/game_page.dart | 2 +- .../{game_tutorial.dart => tutorial_hud.dart} | 12 ++++++------ .../trashy_road/lib/src/game/widgets/widgets.dart | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) rename packages/trashy_road/lib/src/game/widgets/{game_tutorial.dart => tutorial_hud.dart} (93%) diff --git a/packages/trashy_road/lib/src/game/view/game_page.dart b/packages/trashy_road/lib/src/game/view/game_page.dart index 1ce89679..2420f69b 100644 --- a/packages/trashy_road/lib/src/game/view/game_page.dart +++ b/packages/trashy_road/lib/src/game/view/game_page.dart @@ -100,7 +100,7 @@ class _GameView extends StatelessWidget { if (isTutorial) const Align( alignment: Alignment(0, -0.6), - child: GameTutorial(), + child: TutorialHud(), ), ], ), diff --git a/packages/trashy_road/lib/src/game/widgets/game_tutorial.dart b/packages/trashy_road/lib/src/game/widgets/tutorial_hud.dart similarity index 93% rename from packages/trashy_road/lib/src/game/widgets/game_tutorial.dart rename to packages/trashy_road/lib/src/game/widgets/tutorial_hud.dart index 64ebea8b..3586688b 100644 --- a/packages/trashy_road/lib/src/game/widgets/game_tutorial.dart +++ b/packages/trashy_road/lib/src/game/widgets/tutorial_hud.dart @@ -18,18 +18,18 @@ enum _TutorialStatus { completed, } -/// {@template GameTutorial} +/// {@template TutorialHud} /// Displays tutorial information based on the current game state. /// {@endtemplate} -class GameTutorial extends StatefulWidget { - /// {@macro GameTutorial} - const GameTutorial({super.key}); +class TutorialHud extends StatefulWidget { + /// {@macro TutorialHud} + const TutorialHud({super.key}); @override - State createState() => _GameTutorialState(); + State createState() => _TutorialHudState(); } -class _GameTutorialState extends State { +class _TutorialHudState extends State { _TutorialStatus _tutorialStatus = _TutorialStatus.movement; @override diff --git a/packages/trashy_road/lib/src/game/widgets/widgets.dart b/packages/trashy_road/lib/src/game/widgets/widgets.dart index bdaa3156..1a6b9c91 100644 --- a/packages/trashy_road/lib/src/game/widgets/widgets.dart +++ b/packages/trashy_road/lib/src/game/widgets/widgets.dart @@ -1,10 +1,10 @@ export 'animated_star.dart'; export 'game_background_music_listener.dart'; export 'game_stopwatch.dart'; -export 'game_tutorial.dart'; export 'inventory_hud.dart'; export 'pause_button.dart'; export 'playing_hud_transition.dart'; export 'stopwatch_icon.dart'; export 'top_hud.dart'; export 'trashy_road_game_widget.dart'; +export 'tutorial_hud.dart';