custom_media_picker 0.1.3
custom_media_picker: ^0.1.3 copied to clipboard
A Flutter package for picking images and videos from the device gallery with a custom UI, native Android/iOS access, and preview support.
0.1.3 #
- Added a sort control to the Recent tab: old → new, new → old (default once
enabled), or a custom date range. New
MediaPickerConfig.enableSorttoggle — defaults tofalse, so the sort row is opt-in. - The "Custom range" option opens the picker's own date range sheet instead
of Flutter's stock
showDateRangePickerdialog, so it can page months horizontally, drop the edit-mode pen icon, and drop the "Select range" title.dateRangeStartLabel/dateRangeEndLabel/dateRangeSaveLabelonMediaPickerConfigcontrol its header/button text. - New
MediaPickerColorstokens for the sort sheet accent and full styling of the date range sheet (sortAccent,dateRangeSurface,dateRangeHeaderText,dateRangeSelectedFill,dateRangeRangeFill,dateRangeRangeText). The sheet's action bar has no fill of its own — it sits directly ondateRangeSurface.dateRangeSelectedFillanddateRangeRangeFillare now nullable and, when left unset, automatically trackconfirmButton(the range fill at 50% opacity) instead of a fixed hex, so they follow whatever brand color you already use for the confirm button; pass either explicitly to override. MediaPickerChannel.getAssetsgainedascending/startDateSec/endDateSecparameters. NativegetAssetson both platforms accepts the matchingascending/startDate/endDatearguments; defaults reproduce the previous newest-first, unfiltered behavior exactly, so copy the updatedMediaPickerHandler.kt/MediaPickerHandler.swiftto use the new sort modes.
0.1.2 #
- Added
MediaPickerChannel.openAppSettings()for recovering from a hard permission denial. MediaPickerChannel.checkPermission()now reportsnotDeterminedseparately fromdenied, and is implemented on both native sides (it previously always fell back todenied).- Documented the required native setup in the README: manifest permissions,
NSPhotoLibraryUsageDescription, handler placement, and channel registration. Without these the method channel has no receiver and the picker closes without ever prompting. - Example app now ships the complete native integration and a permission request flow with a Settings fallback.
0.1.1 #
- Added maintainer information to the README.
0.1.0 #
- Initial release of the custom media picker package.
- Added native Android and iOS media access, custom picker UI, previews, and selection configuration.
