mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-09 07:28:14 -07:00
fix: Button not waiting for refresh
This commit is contained in:
parent
88b313a970
commit
fc8a0e153b
1 changed files with 1 additions and 1 deletions
|
|
@ -51,8 +51,8 @@ class _SelectableIconButtonState extends ConsumerState<SelectableIconButton> {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log(e.toString());
|
log(e.toString());
|
||||||
} finally {
|
} finally {
|
||||||
setState(() => loading = false);
|
|
||||||
if (context.mounted) await context.refreshData();
|
if (context.mounted) await context.refreshData();
|
||||||
|
setState(() => loading = false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue