magic_picker 1.0.1
magic_picker: ^1.0.1 copied to clipboard
File and image picking for Magic apps (the Pick facade) plus the share-sheet download handler.
Changelog #
All notable changes to this project will be documented in this file.
1.0.1 - 2026-11-15 #
Changed #
Storage.downloadon Linux opens the save dialog with the file's bytes instead of a share sheet, becauseshare_pluscannot share a file there.- The package page is
https://anilcancakir.com/magic/pickerand the documentation links sit underhttps://anilcancakir.com/magic/docs/picker. - The README now has a short
XFilesample.
Fixed #
Storage.downloadno longer throws on Linux.Pick.image,Pick.images,Pick.camera,Pick.media,Pick.videoandPick.recordVideoresults now carry a MIME type on Android and iOS, derived from the file name, souploadsends a content type.- The
Pick.cameraandPick.recordVideofallback andonErrorbehaviour is now covered by tests. - The picker docs now say
pathis ablob:URL for image picks on the web, and the README and installation page list thedoweldependency. - The docs and the
Pick.saveFileAPI comment no longer say the web answers ablobURI: on the web the browser downloads the file andsaveFileanswersnull. - The
MagicFile.pathdescription says the path is present when the platform gives one, instead of promising it on every mobile pick. - The Windows note on
Storage.downloadnames whatshare_plusdoes on a Windows older than 10 version 1809: it throwsUnimplementedErrorfor any file.
1.0.0 - 2026-11-14 #
Added #
- Initial release. File and image picking for Magic apps, moved out of
magiccore. Pickfacade:image,images,media,video,camera,recordVideo,file,files,directoryandsaveFile, each returning aMagicFile.PickerServiceProvider, which sets the share-sheet download handler soStorage.downloadworks on mobile and desktop.XFile.toMagicFile()andMagicFile.toXFile()conversion extensions;XFileandCameraDeviceare re-exported.- A
dowelplugin provider (MagicPickerDowelProvider) thatdart run magic:dowel plugin:install magic_pickerregisters. - Built on
file_picker^13.3.3,image_picker^1.2.4,share_plus^13.3.1 anddowel^1.0.0. Requires Dart 3.13, Flutter 3.47 andmagic^1.0.0.