Explorar el Código

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

#76 Fixed screen going black after hot reload.
flutter-beta
Julian Steenbakker hace 5 años
committed by GitHub
padre
commit
142bec0730
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. +6
    -0
      example/lib/main.dart

+ 6
- 0
example/lib/main.dart Ver fichero

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


Cargando…
Cancelar
Guardar