Selaa lähdekoodia

Fixed screen going black after hot reload.

flutter-beta
Julian Steenbakker 5 vuotta sitten
vanhempi
commit
1c479529ce
No known key found for this signature in database GPG Key ID: 16E437C7A3D94250
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. +6
    -0
      example/lib/main.dart

+ 6
- 0
example/lib/main.dart Näytä tiedosto

@@ -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(


Ladataan…
Peruuta
Tallenna