Sfoglia il codice sorgente

Fixed screen going black after hot reload.

flutter-beta
Julian Steenbakker 5 anni fa
parent
commit
1c479529ce
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 16E437C7A3D94250
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. +6
    -0
      example/lib/main.dart

+ 6
- 0
example/lib/main.dart Vedi 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(


Caricamento…
Annulla
Salva