ImagePickerTotalxsoftware class
A utility class for image picking, cropping, and uploading to Firebase Storage.
Constructors
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
-
cropImage(
BuildContext context, {required String path, List< CropAspectRatioPreset> aspectRatioPresets = const [CropAspectRatioPreset.square], CropStyle cropStyle = CropStyle.rectangle, required void onError(String e)}) → Future<String?> -
Crops an image at the specified
path
using the givenaspectRatioPresets
. -
deleteImageFromFirebaseByUrl(
String imageUrl) → Future< void> - Deletes a single image from Firebase Storage by its URL.
-
deleteMultipleImagesFromFirebaseByUrls(
List< String> imageUrlList) → Future<void> - Deletes multiple images from Firebase Storage by their URLs.
-
pickAndCropImage(
BuildContext context, {ImageSource source = ImageSource.gallery, List< CropAspectRatioPreset> aspectRatioPresets = const [CropAspectRatioPreset.square], CropStyle cropStyle = CropStyle.rectangle, required void onError(String e)}) → Future<String?> - Picks an image from the gallery or camera and allows the user to crop it.
-
pickAndUploadToFirebaseStorage(
BuildContext context, {ImageSource source = ImageSource.gallery, required String storagePath, Size compressSize = const Size(720, 1280), required void onError(String e)}) → Future< String?> - Picks an image from the gallery or camera and uploads it to Firebase Storage.
-
pickCropAndUploadToFirebaseStorage(
BuildContext context, {ImageSource source = ImageSource.gallery, required String storagePath, List< CropAspectRatioPreset> aspectRatioPresets = const [CropAspectRatioPreset.square], CropStyle cropStyle = CropStyle.rectangle, Size compressSize = const Size(720, 1280), required void onError(String e)}) → Future<String?> - Picks an image, crops it according to the specified style, and uploads it to Firebase Storage.
-
pickImage(
{ImageSource source = ImageSource.gallery, required void onError(String e)}) → Future< String?> - Picks a single image from the specified ImageSource.
-
pickMultipleImage(
BuildContext context, {required int maxImageCount, int? minImageCount, List< String> ? selectedImages, required void onError(String e)}) → Future<List< String> > - Picks multiple images
-
pickMultipleImageAndCrop(
BuildContext context, {required int maxImageCount, int? minImageCount, List< CropAspectRatioPreset> aspectRatioPresets = const [CropAspectRatioPreset.square], CropStyle cropStyle = CropStyle.rectangle, required void onError(String e)}) → Future<List< String> > - Picks multiple images with cropping functionality and aspect ratio presets.
-
uploadMultipleToFirebaseStorage(
{required String storagePath, Size compressSize = const Size(720, 1280), required List< String> filepathList, required void onError(String e)}) → Future<List< String> > - Uploads multiple images to Firebase Storage after compressing them.
-
uploadToFirebaseStorage(
{required String storagePath, Size compressSize = const Size(720, 1280), required String filepath, required void onError(String e)}) → Future< String?> - Uploads a single image to Firebase Storage and returns its download URL.