juliansteenbakker / mobile_scanner

A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD 3-Clause "New" or "Revised" License
756 stars 446 forks source link

Examples not functional anymore #1058

Closed Telly86 closed 2 weeks ago

Telly86 commented 3 weeks ago

Except for barcode_scanner_simple and barcode_scanner_pageview all examples give me the error:

'Generic Error: The scanner already started. Call stop() before calling start() again.'

navaronbracke commented 3 weeks ago

I see what the problem is. When we reverted the change to autoStart, the examples were not updated to use autoStart: false while they all use manual starts of the controller.

cc @juliansteenbakker

dgugolf commented 3 weeks ago

Example does not work at all after hot restart app, or close and open page again. Camera just do not shown but still can scan bar code.