mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-16 18:56:00 -07:00
fix: Bunc of uncaught exceptions
This commit is contained in:
parent
9c964e7b41
commit
9f6aa1e489
6 changed files with 34 additions and 23 deletions
|
|
@ -88,10 +88,12 @@ class _PhotoViewerScreenState extends ConsumerState<PhotoViewerScreen> with Widg
|
|||
|
||||
final newItems = await Future.value(widget.loadingItems);
|
||||
|
||||
setState(() {
|
||||
photos = {...photos, ...newItems}.toList();
|
||||
loadingItems = false;
|
||||
});
|
||||
if (context.mounted) {
|
||||
setState(() {
|
||||
photos = {...photos, ...newItems}.toList();
|
||||
loadingItems = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue