summaryrefslogtreecommitdiff
path: root/lib/settings.dart
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-01-14 20:36:39 -0500
committerMica White <botahamec@outlook.com>2026-01-14 20:36:39 -0500
commitac5dcc8859aebfd2f36d4b6ac58f1bd2f82f4666 (patch)
tree8aff0c4d778024ad08570bde18b299ce4a9fc4f2 /lib/settings.dart
parent359d8e07ef5cb585fff13031d075d7c949135317 (diff)
Code cleanup
Diffstat (limited to 'lib/settings.dart')
-rw-r--r--lib/settings.dart8
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;