Kaynağa Gözat

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

#76 Fixed screen going black after hot reload.
flutter-beta
Julian Steenbakker 5 yıl önce
committed by GitHub
ebeveyn
işleme
142bec0730
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. +6
    -0
      example/lib/main.dart

+ 6
- 0
example/lib/main.dart Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet