Skip to content

Commit f3e836c

Browse files
committed
Mark version as 1.0.0 release and add platform indicator
1 parent e1e9ed7 commit f3e836c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

kanbansim/lib/features/main_page/widgets/menu_bar.dart

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,10 @@ class _ToolBar extends StatelessWidget {
213213
title: AppLocalizations.of(context).info,
214214
icon: Icons.info_outline_rounded,
215215
onTap: () {
216+
String platform = _getPlatformName(context).toUpperCase();
216217
showAboutDialog(
217218
context: context,
218-
applicationVersion: '0.9.8',
219+
applicationVersion: '1.0.0-$platform',
219220
applicationIcon: Icon(Icons.info_outline_rounded),
220221
applicationLegalese:
221222
AppLocalizations.of(context).applicationLegalese,
@@ -241,4 +242,12 @@ class _ToolBar extends StatelessWidget {
241242
],
242243
);
243244
}
245+
246+
String _getPlatformName(BuildContext context) {
247+
if (KanbanSimApp.of(context).isWeb()) {
248+
return "web";
249+
} else {
250+
return "desktop";
251+
}
252+
}
244253
}

0 commit comments

Comments
 (0)