Open airai-ad-117 opened 3 weeks ago
As stated in the documentation, starting from version 5.0.0, you need to explicitly manage the lifecycle of the MobileScannerController
. You are missing a call to MobileScannerController.start()
. See our examples for some runnable code samples.
For example: https://github.com/juliansteenbakker/mobile_scanner/blob/master/example/lib/barcode_scanner_controller.dart
Hello ,
Note :I have used the package ,once before too ,for a freelance app ,when the
MobileScanner
hasonDectect
parameter ,most probably v4 ,so i know ,what should have been the correct result.Code :
If i un-comment the
initState
'sTimer
call ,the error/throw(on terminal) is :I also tried running in release mode ,but no change.
When navigating to the scan page ,the app neither ask for any permission ,in v4 it did. Although ,the app's info page in system-settings of android-phone ,have camera permission ,and even after [manually(by going to settings app ,then app info ,then permissions ,then grant)] granting the permission ,no change.
I only tried on android-phone ,not apple-phone
The app's pubspec :
thanks