feat: Conditionally display debug tools button based on debug mode and engine difficulty

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-23 11:24:29 +01:00
parent 0c74abcb7e
commit 35cfe8d88c
@@ -218,11 +218,13 @@ class _GameScreenState extends State<GameScreen> {
}
},
child: Scaffold(
floatingActionButton: FloatingActionButton(
floatingActionButton: kDebugMode && _engine.difficulty != null
? FloatingActionButton(
onPressed: _openDebugTools,
tooltip: 'Open Debug Tools',
child: const Icon(Icons.bug_report),
),
)
: null,
body: LayoutBuilder(
builder: (context, constraints) {
return Listener(