nicer error handling for message parses

This commit is contained in:
Henry Hiles 2026-06-06 19:13:45 -04:00
commit 3310d9b907
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 14 additions and 8 deletions

View file

@ -21,11 +21,12 @@ class ErrorDialog extends ConsumerWidget {
onPressed: () => ref.invalidate(provider!),
child: const Text("Try Again"),
),
TextButton(
onPressed: () =>
Navigator.of(context).popUntil((route) => route.isFirst),
child: const Text("Go Back"),
),
if (Navigator.of(context).canPop())
TextButton(
onPressed: () =>
Navigator.of(context).popUntil((route) => route.isFirst),
child: const Text("Go Back"),
),
],
);
}