mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 16:28:40 +00:00
fix #142
This commit is contained in:
parent
81c3dcd5cb
commit
687d2d7380
1 changed files with 2 additions and 2 deletions
|
|
@ -242,8 +242,8 @@ class _CameraPreviewViewState extends State<CameraPreviewView> {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
if (!context.mounted) return true;
|
if (!context.mounted) return true;
|
||||||
if (shoudReturn == null) return true;
|
// shouldReturn is null when the user used the back button
|
||||||
if (shoudReturn) {
|
if (shoudReturn != null && shoudReturn) {
|
||||||
if (!context.mounted) return true;
|
if (!context.mounted) return true;
|
||||||
// ignore: use_build_context_synchronously
|
// ignore: use_build_context_synchronously
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue