Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

refactor: rename to TutorialHud #292

Merged
merged 2 commits into from
Mar 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/trashy_road/lib/src/game/view/game_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class _GameView extends StatelessWidget {
if (isTutorial)
const Align(
alignment: Alignment(0, -0.6),
child: GameTutorial(),
child: TutorialHud(),
),
],
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<GameTutorial> createState() => _GameTutorialState();
State<TutorialHud> createState() => _TutorialHudState();
}

class _GameTutorialState extends State<GameTutorial> {
class _TutorialHudState extends State<TutorialHud> {
_TutorialStatus _tutorialStatus = _TutorialStatus.movement;

@override
Expand Down
2 changes: 1 addition & 1 deletion packages/trashy_road/lib/src/game/widgets/widgets.dart
Original file line number Diff line number Diff line change
@@ -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';
Loading