image_uploader 0.0.7 copy "image_uploader: ^0.0.7" to clipboard
image_uploader: ^0.0.7 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.7 #

Sep 8, 2025 #

✨ Updated #

  • Updated fire_storage_impl to 0.1.1

0.0.6 #

Aug 22, 2025 #

✨ Updated #

  • Updated Dart sdk to 3.9.0
  • Updated rest_api_impl to 0.0.7
  • Updated fire_storage_impl to 0.1.0
  • Removed flutter_lints Dependency
  • Removed image_core dependency

0.0.5 #

Aug 17, 2025 #

✨ Updated #

  • Updated fire_storage_impl package

0.0.4 #

Jul 29, 2025 #

πŸ”§ Changed #

  • Removed all implementation layers except the domain layer for file/image handling to improve decoupling and testability.

  • Centralized registration of image upload data source using registerImageUploaderGetItDi() with enum FileUploaderSourceType.

    • Enables switching between restApi and firebaseStorage easily.

πŸ†• Added #

  • Enum FileUploaderSourceType for selecting upload strategy.
  • registerImageUploaderGetItDi() method to abstract the DI setup based on the enum value.

βœ… Aligns with SOLID principles (especially OCP & SRP) to allow scalable and flexible data source management.


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
150
points
13
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

Documentation

API reference

License

MIT (license)

Dependencies

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

More

Packages that depend on image_uploader