mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 14:48:41 +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 (shoudReturn == null) return true;
|
||||
if (shoudReturn) {
|
||||
// shouldReturn is null when the user used the back button
|
||||
if (shoudReturn != null && shoudReturn) {
|
||||
if (!context.mounted) return true;
|
||||
// ignore: use_build_context_synchronously
|
||||
Navigator.pop(context);
|
||||
|
|
|
|||
Loading…
Reference in a new issue