Sfoglia il codice sorgente

Merge pull request #180 from juliuscanute/76-hot-reload-causes-error

#76 Fixed screen going black after hot reload.
flutter-beta
Julian Steenbakker 5 anni fa
committed by GitHub
parent
commit
142bec0730
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
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