From ac5dcc8859aebfd2f36d4b6ac58f1bd2f82f4666 Mon Sep 17 00:00:00 2001 From: Mica White Date: Wed, 14 Jan 2026 20:36:39 -0500 Subject: Code cleanup --- lib/settings.dart | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/settings.dart') 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 { 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 extends StatefulWidget { final String title; final T initialValue; -- cgit v1.2.3