Closed LinHaoLove closed 1 year ago
Thank you for have a look.
PermissionStatus state = await Permission.camera.request(); if (state.isGranted==true){ pushViewController(context: context, child: const GatewayQrCodeScannerWidget()); }else{ //Here's the hint }
hi,sir, On iOS, Only after the first installation and permission, the following error will appear. When I try to use the cameracontroller to avoid this problem, I cannot refer to it. However, this error did not affect the normal operation of the program , But the picture in the camera is shaking badly. It didn't happen yesterday, it often happens today
flutter: AppLifecycleState.resumed [VERBOSE-2:ui_dart_state.cc(198)] Unhandled Exception: A CameraController was used after being disposed. Once you have called dispose() on a CameraController, it can no longer be used.
0 ChangeNotifier._debugAssertNotDisposed. (package:flutter/src/foundation/change_notifier.dart:125:9)
1 ChangeNotifier._debugAssertNotDisposed (package:flutter/src/foundation/change_notifier.dart:131:6)
2 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:304:12)
3 ValueNotifier.value= (package:flutter/src/foundation/change_notifier.dart:428:5)
4 CameraController.setFlashMode (package:camera/src/camera_controller.dart:624:7)