I want to show a camera
preview and capture images on a desktop application. The official flutter camera
and image_picker
packages do not support any desktop and I can't find another package to do this. suggest something Especially for the macOS desktop app.
CodePudding user response:
The only solution at this time seems to be by building a plugin for camera for macOS.
You can read more on building plugins in the official documentation:
- Developing packages & plugins.
- Writing custom platform-specific code
- Binding to native macOS code using dart:ffi
For the Swift code required you would need to access Apple's documentation.
CodePudding user response:
For desktop, you can use the file_selector plugin.
dependencies:
file_selector: ^0.9.2 1