image_uploader 0.0.3 copy "image_uploader: ^0.0.3" to clipboard
image_uploader: ^0.0.3 copied to clipboard

A modular and extensible Dart package for uploading and deleting images using Firebase Storage or REST APIs. Built with clean architecture principles and easy-to-integrate dependency injection support.

Changelog #

All notable changes to this project will be documented in this file.

0.0.3 – Jul 6, 2025 #

🆕 Added #

  • Introduced BaseImageManager<TData> abstract class to standardize image upload and delete behavior.
    • uploadIfAvailable(...) – handles safe upload when file and entityId are provided.
    • deleteIfAvailable(...) – handles conditional deletion if a URL is present.
    • Uses Either<IFailure, bool> for clean failure handling via i_tdd and exception_type.
    • Leverages .handleReport() for optional success message reporting after operations.

✅ Designed with SOLID principles to promote reusability and simplify extending image upload logic across platforms (Firebase, REST, etc).

0.0.2 #

Added #

  • Upload and delete functionality using Firebase Storage.
  • Upload and delete functionality using a REST API.
  • File model (FileEntity, FileResponseEntity).
  • Repository pattern with IFileRepository abstraction.
  • Use cases: UploadFile, DeleteFile.
  • Dependency injection setup for both Firebase and REST API.
  • Extension on Uint8List for uploading to Firebase Storage.
  • Example app demonstrating image picking and uploading.

0.0.1 #

  • Initial Release
0
likes
0
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

A modular and extensible Dart package for uploading and deleting images using Firebase Storage or REST APIs. Built with clean architecture principles and easy-to-integrate dependency injection support.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dartz, equatable, exception_type, fire_storage_impl, firebase_storage, flutter, get_it_di_global_variable, i_tdd, rest_api_impl

More

Packages that depend on image_uploader