aboutsummaryrefslogtreecommitdiff
path: root/lib/settings.dart
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-01-24 13:14:55 -0500
committerMica White <botahamec@outlook.com>2026-01-24 13:14:55 -0500
commit328abfd5d31aa73a732eef6885ac0e26819c7d17 (patch)
tree96642f65de0a08250d1abe532319a21ceb39806d /lib/settings.dart
parent227bce2edeb4fa20eb8a9eba36063f7e2e30bb9f (diff)
Add logging for debugging errorsHEADmain
Diffstat (limited to 'lib/settings.dart')
-rw-r--r--lib/settings.dart26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/settings.dart b/lib/settings.dart
index 71906b1..997e1a9 100644
--- a/lib/settings.dart
+++ b/lib/settings.dart
@@ -149,6 +149,25 @@ class SelectTile<T> extends StatelessWidget {
}
}
+class LogPage extends StatelessWidget {
+ const LogPage({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(title: Text('Logs')),
+ body: ObserverBuilder(
+ observable: logObservable,
+ builder: (context, logs, _) => ListView.builder(
+ itemCount: logs.length,
+ itemBuilder: (context, index) =>
+ Text(logs[index], style: TextStyle(fontFamily: 'RobotoMono')),
+ ),
+ ),
+ );
+ }
+}
+
class SettingsPage extends StatelessWidget {
const SettingsPage({super.key});
@@ -244,6 +263,13 @@ class SettingsPage extends StatelessWidget {
onChanged: (value) => setLocationAccuracy(value),
),
),
+ ListTile(
+ title: Text("View logs"),
+ onTap: () => Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => LogPage()),
+ ),
+ ),
Divider(),
SectionHeader('About'),
ListTile(