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