magic_picker library
File and image picking for Magic apps.
Pick opens the system pickers and answers with a MagicFile;
PickerServiceProvider routes Storage.download to the share sheet on
mobile, macOS and Windows and to the save dialog on Linux. CameraDevice
and XFile are exported because they appear in this package's own
signatures.
Classes
- Pick
- The Pick Facade.
- PickerServiceProvider
- Wires the picker package into Magic.
- XFile
- A CrossFile is a cross-platform, simplified File abstraction.
Enums
- CameraDevice
-
Which camera to use when picking images/videos while source is
ImageSource.camera.
Extensions
- MagicFileToXFile on MagicFile
-
Converts a
MagicFileto anXFileon mobile and desktop. - XFileToMagicFile on XFile
-
Builds a
MagicFilefrom anXFileon every platform.
Typedefs
- Hands a share request to the platform share sheet.