AdaptiveImagePicker class

The primary public interface for adaptive_image_picker. Provides zero-permission native picking, pure-Dart cropping, binary search compression, and adaptive UI components.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

compressImage({required AdaptiveFile file, required CompressionOptions options}) → Future<AdaptiveFile>
Compresses file to meet options targets (such as maxBytes, maxWidth, quality).
cropImage({required AdaptiveFile file, required BuildContext context, CropOptions? options, CompressionOptions? compressionOptions}) → Future<AdaptiveFile?>
Opens the interactive UI cropper for file.
fromNetwork(String url) → Future<AdaptiveFile>
Downloads an image from an internet url and returns an AdaptiveFile.
fromUrl(String url, {CompressionOptions? compressionOptions, CropOptions? cropOptions, BuildContext? context}) → Future<AdaptiveFile>
Downloads an image from an internet url and returns an AdaptiveFile.
getPlatformVersion() → Future<String?>
Returns the platform version (for diagnostics/testing).
pickImage({ImageSource source = ImageSource.gallery, CropOptions? cropOptions, CompressionOptions? compressionOptions, BuildContext? context, CameraDevice preferredCameraDevice = CameraDevice.rear, MediaType mediaType = MediaType.image}) → Future<AdaptiveFile?>
Picks a single image from the specified source (Gallery, Camera, or URL).
pickMultiple({int? maxCount, CompressionOptions? compressionOptions, MediaType mediaType = MediaType.image}) → Future<List<AdaptiveFile>>
Picks multiple images from the photo gallery.
showPickerModal({required BuildContext context, PickerOptions? options, CropOptions? cropOptions, CompressionOptions? compressionOptions}) → Future<AdaptiveFile?>
Displays an adaptive bottom sheet / modal action sheet allowing the user to select the media source (Camera, Gallery, URL), then launches the corresponding picker flow.