Add missing const

This commit is contained in:
2023-04-09 14:44:06 +12:00
parent d558a8f5ad
commit 84837de3de
+10 -10
View File
@@ -89,7 +89,7 @@ class _SettingsPageState extends State<_SettingsPage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
SwitchListTile( SwitchListTile(
title: Text('Alarm'), title: const Text('Alarm'),
value: settings.alarm, value: settings.alarm,
onChanged: (value) { onChanged: (value) {
db db
@@ -98,7 +98,7 @@ class _SettingsPageState extends State<_SettingsPage> {
}, },
), ),
SwitchListTile( SwitchListTile(
title: Text('Vibrate'), title: const Text('Vibrate'),
value: settings.vibrate, value: settings.vibrate,
onChanged: (value) { onChanged: (value) {
db db
@@ -107,7 +107,7 @@ class _SettingsPageState extends State<_SettingsPage> {
}, },
), ),
SwitchListTile( SwitchListTile(
title: Text('Notify'), title: const Text('Notify'),
value: settings.notify, value: settings.notify,
onChanged: (value) { onChanged: (value) {
db db
@@ -116,7 +116,7 @@ class _SettingsPageState extends State<_SettingsPage> {
}, },
), ),
SwitchListTile( SwitchListTile(
title: Text('Images'), title: const Text('Images'),
value: settings.images, value: settings.images,
onChanged: (value) { onChanged: (value) {
db db
@@ -125,7 +125,7 @@ class _SettingsPageState extends State<_SettingsPage> {
}, },
), ),
SwitchListTile( SwitchListTile(
title: Text('Show Unit'), title: const Text('Show Unit'),
value: settings.showUnit, value: settings.showUnit,
onChanged: (value) { onChanged: (value) {
db db
@@ -134,7 +134,7 @@ class _SettingsPageState extends State<_SettingsPage> {
}, },
), ),
SwitchListTile( SwitchListTile(
title: Text('Steps'), title: const Text('Steps'),
value: settings.steps, value: settings.steps,
onChanged: (value) { onChanged: (value) {
db db
@@ -143,7 +143,7 @@ class _SettingsPageState extends State<_SettingsPage> {
}, },
), ),
TextField( TextField(
decoration: InputDecoration( decoration: const InputDecoration(
labelText: 'Sound', labelText: 'Sound',
), ),
onChanged: (value) { onChanged: (value) {
@@ -153,7 +153,7 @@ class _SettingsPageState extends State<_SettingsPage> {
}, },
), ),
TextField( TextField(
decoration: InputDecoration( decoration: const InputDecoration(
labelText: 'Light Color', labelText: 'Light Color',
), ),
onChanged: (value) { onChanged: (value) {
@@ -163,7 +163,7 @@ class _SettingsPageState extends State<_SettingsPage> {
}, },
), ),
TextField( TextField(
decoration: InputDecoration( decoration: const InputDecoration(
labelText: 'Dark Color', labelText: 'Dark Color',
), ),
onChanged: (value) { onChanged: (value) {
@@ -173,7 +173,7 @@ class _SettingsPageState extends State<_SettingsPage> {
}, },
), ),
TextField( TextField(
decoration: InputDecoration( decoration: const InputDecoration(
labelText: 'Date', labelText: 'Date',
), ),
onChanged: (value) { onChanged: (value) {