diff --git a/lib/ui/screens/game_screen.dart b/lib/ui/screens/game_screen.dart index dfa157f..a66b650 100644 --- a/lib/ui/screens/game_screen.dart +++ b/lib/ui/screens/game_screen.dart @@ -256,6 +256,18 @@ class _GameScreenState extends ConsumerState padding: const EdgeInsets.all(16), child: Column( children: [ + // Close/back sits on its own top row so it never overlaps + // the HUD's moves chip (which lives at the top-left). + if (Navigator.of(context).canPop()) + Align( + alignment: Alignment.centerLeft, + child: IconButton( + padding: EdgeInsets.zero, + visualDensity: VisualDensity.compact, + icon: const Icon(Icons.close, color: Colors.white54), + onPressed: () => Navigator.of(context).pop(), + ), + ), HudWidget(view: view), Expanded( child: Center( @@ -308,15 +320,6 @@ class _GameScreenState extends ConsumerState ref.read(tutorialProvider.notifier).dismissHud(), ), ), - if (Navigator.of(context).canPop()) - Positioned( - top: 4, - left: 4, - child: IconButton( - icon: const Icon(Icons.close, color: Colors.white54), - onPressed: () => Navigator.of(context).pop(), - ), - ), ], ), ),