Skip to content

Commit

Permalink
debug options page consts
Browse files Browse the repository at this point in the history
  • Loading branch information
crc-32 committed Aug 11, 2024
1 parent 12a52b9 commit 3e8ab0c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/ui/devoptions/debug_options_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,32 +53,32 @@ class DebugOptionsPage extends HookConsumerWidget implements CobbleScreen {
children: ListTile.divideTiles(
context: context,
tiles: <Widget>[
ListTile(
const ListTile(
contentPadding:
EdgeInsets.symmetric(vertical: 10, horizontal: 15),
title: Text(
"Boot",
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,
),
),
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: <Widget>[
TextField(
Expand All @@ -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(
Expand Down

0 comments on commit 3e8ab0c

Please sign in to comment.