From 84837de3de9adba6f7569ad52b1d0a24d58d4fc2 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Sun, 9 Apr 2023 14:44:06 +1200 Subject: [PATCH] Add missing const --- lib/settings_page.dart | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/settings_page.dart b/lib/settings_page.dart index 7023ddd..9579056 100644 --- a/lib/settings_page.dart +++ b/lib/settings_page.dart @@ -89,7 +89,7 @@ class _SettingsPageState extends State<_SettingsPage> { crossAxisAlignment: CrossAxisAlignment.start, children: [ SwitchListTile( - title: Text('Alarm'), + title: const Text('Alarm'), value: settings.alarm, onChanged: (value) { db @@ -98,7 +98,7 @@ class _SettingsPageState extends State<_SettingsPage> { }, ), SwitchListTile( - title: Text('Vibrate'), + title: const Text('Vibrate'), value: settings.vibrate, onChanged: (value) { db @@ -107,7 +107,7 @@ class _SettingsPageState extends State<_SettingsPage> { }, ), SwitchListTile( - title: Text('Notify'), + title: const Text('Notify'), value: settings.notify, onChanged: (value) { db @@ -116,7 +116,7 @@ class _SettingsPageState extends State<_SettingsPage> { }, ), SwitchListTile( - title: Text('Images'), + title: const Text('Images'), value: settings.images, onChanged: (value) { db @@ -125,7 +125,7 @@ class _SettingsPageState extends State<_SettingsPage> { }, ), SwitchListTile( - title: Text('Show Unit'), + title: const Text('Show Unit'), value: settings.showUnit, onChanged: (value) { db @@ -134,7 +134,7 @@ class _SettingsPageState extends State<_SettingsPage> { }, ), SwitchListTile( - title: Text('Steps'), + title: const Text('Steps'), value: settings.steps, onChanged: (value) { db @@ -143,7 +143,7 @@ class _SettingsPageState extends State<_SettingsPage> { }, ), TextField( - decoration: InputDecoration( + decoration: const InputDecoration( labelText: 'Sound', ), onChanged: (value) { @@ -153,7 +153,7 @@ class _SettingsPageState extends State<_SettingsPage> { }, ), TextField( - decoration: InputDecoration( + decoration: const InputDecoration( labelText: 'Light Color', ), onChanged: (value) { @@ -163,7 +163,7 @@ class _SettingsPageState extends State<_SettingsPage> { }, ), TextField( - decoration: InputDecoration( + decoration: const InputDecoration( labelText: 'Dark Color', ), onChanged: (value) { @@ -173,7 +173,7 @@ class _SettingsPageState extends State<_SettingsPage> { }, ), TextField( - decoration: InputDecoration( + decoration: const InputDecoration( labelText: 'Date', ), onChanged: (value) {