add context to mounted check
This commit is contained in:
@@ -83,7 +83,7 @@ class _GroupDetailViewState extends State<GroupDetailView> {
|
||||
],
|
||||
),
|
||||
).then((confirmed) async {
|
||||
if (confirmed == true && mounted) {
|
||||
if (confirmed == true && context.mounted) {
|
||||
bool success = await db.groupDao.deleteGroup(groupId: widget.groupToEdit!.id);
|
||||
if (!context.mounted) return;
|
||||
if (success) {
|
||||
|
||||
Reference in New Issue
Block a user