Update lib/screens/scan_tab.dart
better error message on failed collection loading Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
ca11df0152
commit
ae39f2cbaf
1 changed files with 5 additions and 0 deletions
|
|
@ -43,6 +43,11 @@ class ScanTabState extends State<ScanTab> {
|
|||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
setState(() => _loadingCollections = false);
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text('Failed to load collections: $e'),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue