image_core 0.0.1
image_core: ^0.0.1 copied to clipboard
A Dart/Flutter package for standardized image and file upload handling using SOLID principles. Supports cross-platform file conversion from XFile, File, and PlatformFile to a unified UploadFile model, [...]
Changelog #
All notable changes to the image_core package will be documented in this file.
0.0.1 #
July 19, 2025 #
✨ Added #
-
BaseImageManager<T>abstract class withupload,delete,uploadIfAvailable, anddeleteIfAvailablemethods. -
UploadFilemodel class for standardized file representation. -
FileCategoryenum for file categorization. -
Extensions:
XFile.toUploadFileFromXFile()PlatformFile.toUploadFileFromPlatformFile()File.toUploadFileFromFile()String?.getFileName()String?.getFileExtension()
-
ContentTypeUtilfor resolving common content types. -
FileCategoryResolverfor deriving category from MIME type.
🧰 Initial Setup #
- Project structured with SOLID principles and clean architecture.
- Functional error handling with
dartzandIFailure. - Toast/report integration via
i_tdd'shandleReport().