Open navaronbracke opened 1 year ago
Since the MacOS implementation is very small, it is probably worth it to make use of the new sharedDarwinSource configuration.
sharedDarwinSource
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:
DetectionSpeed.swift
BarcodeHandler
toggleTorch
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!
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:
DetectionSpeed.swift
file is essentially the same between the two -> deduplicate itBarcodeHandler
event sink wrapper, but MacOS does not -> share it between MacOS & iOStoggleTorch
currently has two implementations, this can be shared and deduplicated