Releases: csdcorp/local_image_provider
Releases · csdcorp/local_image_provider
Swift compile error
- fixes a compile error with jpegdata
Null column fix
- fix exceptions from null image info columns on Android
- now catches top level exceptions and returns them as platform exceptions on Flutter
iOS imageBytes fix
- fix for iOS
imageBytes
implementation, width and height were swapped, causing images to be resized incorrectly
Cleanup
New
cleanup
method onLocalImageProvider
removes all temporary files created by the plugin
Updates
- fix for
videoFile
call with id that does not exist
Video support
Breaking
- Upgraded to New Swift 1.12 plugin structure, may work with older Flutter version but not guaranteed
- This version only works with Flutter 1.17.0 and above due to interaction with the Flutter cache
New
LocalImage
now includes both images and videos in the returned list- new
getVideoFile
method onLocalImageProvider
retrieves a file path for a video. - added the
mediaType
,isVideo
andisImage
properties toLocalImage
- added
fileName
andfileSize
properties toLocalImage
- control cache usage with the new
maxCacheDimension
property onLocalImageProvider
, requires Flutter 1.17.0 - test coverage improvements
- pubspec changes for Flutter 1.17, minimum version now 1.17.0
- added
videoCount
toLocalAlbum
findImagesInAlbum
now returns both images and video, use theisVideo
andisImage
properties to filter
FileNotFound fix
- fix for file not found exception in
imageBytes
DeviceImage
now loads a default image if the load fails
Flutter 1.12.0 - Swift update
0.8.2
Breaking
- Upgrade Swift to version 5 to match Flutter. Projects using this plugin must now switch to 5.