Browse Source

Fixed screen going black after hot reload.

flutter-beta
Julian Steenbakker 5 years ago
parent
commit
1c479529ce
No known key found for this signature in database GPG Key ID: 16E437C7A3D94250
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      example/lib/main.dart

+ 6
- 0
example/lib/main.dart View File

@@ -24,6 +24,12 @@ class _QRViewExampleState extends State<QRViewExample> {
QRViewController controller;
final GlobalKey qrKey = GlobalKey(debugLabel: 'QR');

@override
void reassemble() {
super.reassemble();
controller.pauseCamera();
}

@override
Widget build(BuildContext context) {
return Scaffold(


Loading…
Cancel
Save