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
859 stars 507 forks source link

Use `sharedDarwinSource` to share MacOS and iOS implementation details #782

Open navaronbracke opened 1 year ago

navaronbracke commented 1 year ago

Since the MacOS implementation is very small, it is probably worth it to make use of the new sharedDarwinSource configuration.

Then we can have a single implementation that handles both platforms, which simplifies maintenance.

See https://docs.flutter.dev/packages-and-plugins/developing-packages#shared-ios-and-macos-implementations

This will require bumping the minimum Flutter version to 3.7.0

TODO:

juliansteenbakker commented 1 year ago

Cool, I've been looking for something like this a few months ago but could not find anything. Nice to see this feature in Flutter!