Skip to content

Commit 69157a4

Browse files
committed
feat: update TopMenu to display Flutter version and improve WASM label
1 parent 05f45e9 commit 69157a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/widgets/top_menu.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:flutter/material.dart' show Icons;
2+
import 'package:flutter/services.dart';
23
import 'package:flutter/widgets.dart';
34
import 'package:go_router/go_router.dart';
45
import 'package:shadcn_ui/shadcn_ui.dart';
@@ -61,8 +62,10 @@ class TopMenu extends StatelessWidget {
6162
),
6263
),
6364
const Spacer(),
65+
FlutterLogo(size: 14),
66+
Text(FlutterVersion.version ?? ''),
6467
if (isRunningWithWasm) ...[
65-
Text('(WASM)'),
68+
Text(' WASM'),
6669
],
6770
],
6871
),

0 commit comments

Comments
 (0)