Home > Back-end >  Flutter: How to capture images on macos?
Flutter: How to capture images on macos?

Time:10-20

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:

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
  • Related