Browse Source

Merge pull request #99 from giuliatesta/main

Fix for build failure on Flutter 3.11.0-16.0.pre
pull/105/head
Khoren Markosyan 1 year ago committed by GitHub
parent
commit
edcd52f506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/src/ui/reader_widget.dart

2
lib/src/ui/reader_widget.dart

@ -193,12 +193,14 @@ class _ReaderWidgetState extends State<ReaderWidget>
case AppLifecycleState.inactive: case AppLifecycleState.inactive:
case AppLifecycleState.hidden: case AppLifecycleState.hidden:
case AppLifecycleState.paused: case AppLifecycleState.paused:
case AppLifecycleState.hidden:
controller?.dispose(); controller?.dispose();
setState(() { setState(() {
_isCameraOn = false; _isCameraOn = false;
}); });
break; break;
case AppLifecycleState.detached: case AppLifecycleState.detached:
default:
break; break;
} }
} }

Loading…
Cancel
Save