Skip to content

Commit

Permalink
Show mode the application is running in
Browse files Browse the repository at this point in the history
  • Loading branch information
h3x4d3c1m4l committed Aug 1, 2024
1 parent 0096c15 commit c66e2cb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class _MyAppState extends State<MyApp> {
title: 'Coding Challenges Tool',
darkTheme: FluentThemeData.dark(),
routerConfig: _router,
debugShowCheckedModeBanner: false,
);
}

Expand All @@ -70,6 +71,13 @@ final _router = GoRouter(navigatorKey: _rootNavigatorKey, routes: [
appBar: const NavigationAppBar(
title: Text('h3x4d3c1m4l\'s Coding Challenges Tool'),
automaticallyImplyLeading: false,
actions: Padding(
padding: EdgeInsets.all(16.0),
child: Align(
alignment: Alignment.centerRight,
child: Text("Running on ${kIsWasm ? 'WASM' : kIsWeb ? 'JS' : 'desktop/mobile'}"),
),
),
),
pane: NavigationPane(
selected: _calculateSelectedIndex(context),
Expand Down

0 comments on commit c66e2cb

Please sign in to comment.