1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

fix(mobile): use proper context for popping out from share (#5138)

* fix(mobile): use proper context for popping out from share

* mobile: use proper context for popping

---------

Co-authored-by: shalong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong 2023-11-19 05:13:38 +00:00 committed by GitHub
parent 6d310d6297
commit fce8d48de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -188,7 +188,7 @@ class AlbumViewerAppbar extends HookConsumerWidget
gravity: ToastGravity.BOTTOM,
);
}
context.pop();
buildContext.pop();
},
);
return const ShareDialog();

View File

@ -68,7 +68,7 @@ class ImageViewerStateNotifier extends StateNotifier<ImageViewerPageState> {
gravity: ToastGravity.BOTTOM,
);
}
context.pop();
buildContext.pop();
},
);
return const ShareDialog();

View File

@ -27,7 +27,7 @@ void handleShareAssets(
gravity: ToastGravity.BOTTOM,
);
}
context.pop();
buildContext.pop();
},
);
return const ShareDialog();