Add missing const
This commit is contained in:
parent
d558a8f5ad
commit
84837de3de
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user