Skip to content

Commit

Permalink
Show version number at title
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyrainynight committed Nov 9, 2021
1 parent 4fe7694 commit 3a7675a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:ssconverter/screens/about_screen.dart';
import 'package:ssconverter/screens/my_home_page.dart';
import 'package:ssconverter/shared/SystemConsts.dart';

void main() {
runApp(const MyApp());
Expand All @@ -24,7 +25,7 @@ class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'SS Converter',
title: 'SS Converter v${SystemConsts.version}',
theme: ThemeData(
brightness: Brightness.dark,
primaryColor: Colors.amber,
Expand Down
3 changes: 3 additions & 0 deletions lib/shared/SystemConsts.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mixin SystemConsts {
static String version = '1.0.2';
}

0 comments on commit 3a7675a

Please sign in to comment.