From 3e8ab0ce9598eab163f4a2e5fc5e650e6984dbc3 Mon Sep 17 00:00:00 2001 From: crc-32 Date: Sun, 11 Aug 2024 18:00:07 +0100 Subject: [PATCH] debug options page consts --- lib/ui/devoptions/debug_options_page.dart | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/ui/devoptions/debug_options_page.dart b/lib/ui/devoptions/debug_options_page.dart index a6778c2d..815603cb 100644 --- a/lib/ui/devoptions/debug_options_page.dart +++ b/lib/ui/devoptions/debug_options_page.dart @@ -53,7 +53,7 @@ class DebugOptionsPage extends HookConsumerWidget implements CobbleScreen { children: ListTile.divideTiles( context: context, tiles: [ - ListTile( + const ListTile( contentPadding: EdgeInsets.symmetric(vertical: 10, horizontal: 15), title: Text( @@ -61,8 +61,8 @@ class DebugOptionsPage extends HookConsumerWidget implements CobbleScreen { style: TextStyle(fontSize: 25), )), ListTile( - contentPadding: EdgeInsets.symmetric(vertical: 10, horizontal: 15), - title: Text("URL"), + contentPadding: const EdgeInsets.symmetric(vertical: 10, horizontal: 15), + title: const Text("URL"), subtitle: TextField( controller: bootUrlController, readOnly: true, @@ -70,15 +70,15 @@ class DebugOptionsPage extends HookConsumerWidget implements CobbleScreen { ), SwitchListTile( value: shouldOverrideBoot, - title: Text("Override boot URL"), - subtitle: Text("If enabled, will use the override boot URL instead of the main boot URL"), + title: const Text("Override boot URL"), + subtitle: const Text("If enabled, will use the override boot URL instead of the main boot URL"), onChanged: (value) { preferences .whenData((prefs) => prefs.setShouldOverrideBoot(value)); }), ListTile( - contentPadding: EdgeInsets.symmetric(vertical: 10, horizontal: 15), - title: Text("Stage2 Override"), + contentPadding: const EdgeInsets.symmetric(vertical: 10, horizontal: 15), + title: const Text("Stage2 Override"), subtitle: Column( children: [ TextField( @@ -89,7 +89,7 @@ class DebugOptionsPage extends HookConsumerWidget implements CobbleScreen { Container( alignment: Alignment.centerRight, child: ElevatedButton( - child: Text("Save"), + child: const Text("Save"), onPressed: () { preferences.whenData((prefs) => prefs.setOverrideBootValue(