diff --git a/lib/src/ui/reader_widget.dart b/lib/src/ui/reader_widget.dart index 55d8425..e36dede 100644 --- a/lib/src/ui/reader_widget.dart +++ b/lib/src/ui/reader_widget.dart @@ -193,12 +193,14 @@ class _ReaderWidgetState extends State case AppLifecycleState.inactive: case AppLifecycleState.hidden: case AppLifecycleState.paused: + case AppLifecycleState.hidden: controller?.dispose(); setState(() { _isCameraOn = false; }); break; case AppLifecycleState.detached: + default: break; } }