media/media_picker library

Functions

showImageListPicker(BuildContext context, {VoidCallback? onPermissionsInitialized, FilesSelected? onSelected, FileChanged? onChange, int maxSelections = 1, bool crop = true, bool preemptPermission = true, MediaSelectFn imageSelector = Choosers.chooseImages, dynamic extraOptions}) Future<List<ChosenMedia>?>
showImagePicker(BuildContext context, {FileChanged? onChange, FilesSelected? onSelected, bool crop = true, VoidCallback? onPermissionsInitialized, bool preemptPermissions = false, bool allowThirdParties = false, dynamic extraOptions}) Future<ChosenMedia?>
This pops the file picker/cropper and returns a single file.
showMediaListPicker(BuildContext context, FlutterMediaContentType<Object> mediaType, {required VoidCallback onLoading, VoidCallback? onPermissionsInitialized, FilesSelected? onSelected, FileChanged? onChange, int maxSelections = 1, double? cropAspectRatio, bool crop = true, bool preemptPermission = true, Set<FileSourceType>? sourceTypes, MediaSelectFn imageSelector = Choosers.flutterFilePicker, dynamic extraOptions}) Future<List<ChosenMedia>?>

Typedefs

MediaSelectFn = Future<List<ChosenMedia>> Function(BuildContext context, {dynamic extraOptions, int? maxSelections, FlutterMediaContentType<Object>? mediaType, VoidCallback? onLoading, Set<FileSourceType>? sourceTypes})