diff options
Diffstat (limited to 'lib/settings.dart')
| -rw-r--r-- | lib/settings.dart | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/settings.dart b/lib/settings.dart index baaf0f4..4c60026 100644 --- a/lib/settings.dart +++ b/lib/settings.dart @@ -5,6 +5,9 @@ import 'package:url_launcher/url_launcher_string.dart'; import 'main.dart'; +// Unfortunately, these need to be updated manually when a change is made to +// the version number or license. Storing these in code prevents the need for +// any loading. const applicationName = "Simple Speedometer"; const applicationVersion = "1.0.0"; const applicationLegalese = r""" @@ -22,6 +25,9 @@ class Option<T> { const Option({required this.text, required this.value}); } +// I had to do some of the design work here myself, and this seems pretty close +// to what other Material apps do on Android. I tried the settings_ui package, +// but it doesn't respect the color scheme that I am using. class SectionHeader extends StatelessWidget { final String title; @@ -36,6 +42,8 @@ class SectionHeader extends StatelessWidget { } } +// Despite being part of the Material spec, the material package in Flutter +// does not have an alert widget to emulate this behavior. class SelectAlert<T> extends StatefulWidget { final String title; final T initialValue; |
