File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
kanbansim/lib/features/main_page/widgets Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -213,9 +213,10 @@ class _ToolBar extends StatelessWidget {
213
213
title: AppLocalizations .of (context).info,
214
214
icon: Icons .info_outline_rounded,
215
215
onTap: () {
216
+ String platform = _getPlatformName (context).toUpperCase ();
216
217
showAboutDialog (
217
218
context: context,
218
- applicationVersion: '0.9.8 ' ,
219
+ applicationVersion: '1.0.0-$ platform ' ,
219
220
applicationIcon: Icon (Icons .info_outline_rounded),
220
221
applicationLegalese:
221
222
AppLocalizations .of (context).applicationLegalese,
@@ -241,4 +242,12 @@ class _ToolBar extends StatelessWidget {
241
242
],
242
243
);
243
244
}
245
+
246
+ String _getPlatformName (BuildContext context) {
247
+ if (KanbanSimApp .of (context).isWeb ()) {
248
+ return "web" ;
249
+ } else {
250
+ return "desktop" ;
251
+ }
252
+ }
244
253
}
You can’t perform that action at this time.
0 commit comments