diff --git a/lib/home_page.dart b/lib/home_page.dart index e07b9a1..9cbe883 100644 --- a/lib/home_page.dart +++ b/lib/home_page.dart @@ -20,7 +20,6 @@ class CameraPageState extends State with WidgetsBindingObserver { @override void initState() { - print("chung initState"); checkUserConnection(); super.initState(); WidgetsBinding.instance.addObserver(this); @@ -28,14 +27,12 @@ class CameraPageState extends State with WidgetsBindingObserver { @override void dispose() { - print("chung dispose"); super.dispose(); WidgetsBinding.instance.removeObserver(this); } @override void didChangeAppLifecycleState(AppLifecycleState state) { - print(" chung didChangeAppLifecycleState"); super.didChangeAppLifecycleState(state); if (state == AppLifecycleState.inactive || state == AppLifecycleState.detached) { return; diff --git a/lib/section/custom_camera.dart b/lib/section/custom_camera.dart index 57168ce..f172227 100644 --- a/lib/section/custom_camera.dart +++ b/lib/section/custom_camera.dart @@ -98,7 +98,7 @@ class _CustomCameraState extends State with WidgetsBindingObserver return Container(); } return PopScope( - canPop: false, + canPop: true, onPopInvoked: (didPop) { SystemNavigator.pop(); }, @@ -113,7 +113,7 @@ class _CustomCameraState extends State with WidgetsBindingObserver void captureImage() { controller!.takePicture().then((value) { - Navigator.pop(context); + // Navigator.pop(context); widget.onImageCaptured!(value); }); } @@ -453,7 +453,7 @@ class _CustomCameraState extends State with WidgetsBindingObserver } else { ///Stop video recording controller!.stopVideoRecording().then((value) { - Navigator.pop(context); + // Navigator.pop(context); widget.onVideoRecorded!(value); }); _isRecording = false; diff --git a/lib/section/image_page.dart b/lib/section/image_page.dart index 0b1a4d3..b9b8570 100644 --- a/lib/section/image_page.dart +++ b/lib/section/image_page.dart @@ -36,7 +36,6 @@ class _ImagePageState extends State { return PopScope( canPop: false, onPopInvoked: (didPop) { - print("chung PopScope"); Navigator.pushReplacement(context, MaterialPageRoute(builder: (context) => const SplashScreen())); }, child: Scaffold(