image_builder 1.2.0
image_builder: ^1.2.0 copied to clipboard
A comprehensive Flutter package for handling network images, SVGs, local assets, file images, and memory images with caching and error handling.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.2.0 - 2025-09-28 #
Changed #
- π― Simplified API: Unified constructor pattern - use
ImageBuilder(source)
for all image types - π¦ Unified source parameter: The constructor now accepts String, File, or Uint8List directly
- β¨ Cleaner API: More intuitive interface with automatic type detection
Deprecated #
- β οΈ ImageBuilder.file(): Use
ImageBuilder(file)
instead. Will be removed in v2.0.0 - β οΈ ImageBuilder.memory(): Use
ImageBuilder(bytes)
instead. Will be removed in v2.0.0 - π Migration guide:
- Replace
ImageBuilder.file(myFile)
withImageBuilder(myFile)
- Replace
ImageBuilder.memory(myBytes)
withImageBuilder(myBytes)
- The default constructor
ImageBuilder('path')
remains unchanged
- Replace
- β° Timeline: Deprecated constructors still work but will show warnings. They will be removed in version 2.0.0
1.1.4 - 2025-09-28 #
Updated #
- οΏ½ Version bump: Updated to 1.1.4 for republication
- π¨ Code formatting: Applied
dart format
to ensure all code meets pub.flutter-io.cn standards - β¨ Package maintenance: Routine update to maintain package quality
1.1.3 - 2025-09-28 #
Fixed #
- π Homepage and Repository URLs: Added valid homepage and repository entries to pubspec.yaml to fix pub.flutter-io.cn scoring
- π¦ Pub.dev compliance: Should now achieve full 160/160 pub points
- π― Package metadata: Complete package information for better discoverability
1.1.2 - 2025-09-28 #
Fixed #
[1.1.2] - 2025-09-28 #
Fixed #
- π¨ Code formatting: Applied
dart format
to all files to meet pub.flutter-io.cn static analysis requirements - π§ Package description: Shortened description to meet pub.flutter-io.cn requirements (60-180 characters)
- οΏ½ URL validation: Removed unreachable repository URLs to improve pub.flutter-io.cn scoring
- οΏ½π¦ Pub.dev compliance: Fixed all addressable issues identified in package analysis for better pub points
- β οΈ Platform support: Note - Web platform limitations come from
cached_network_image
dependency, not package code
1.1.1 2025-09-28log #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[1.1.1] - 2025-09-28 #
Fixed #
- π§ Package description: Shortened description to meet pub.flutter-io.cn requirements (60-180 characters)
- π URL validation: Removed non-existent repository URLs to improve pub.flutter-io.cn scoring
- π¦ Pub.dev compliance: Fixed issues identified in package analysis for better pub points
1.1.0 - 2025-09-28 #
Added #
- π File image support: New
ImageBuilder.file()
constructor for loading images from device files - πΎ Memory image support: New
ImageBuilder.memory()
constructor for displaying images from Uint8List data - π― Loading color customization: New
loadingColor
parameter for customizing adaptive loading indicator colors - π Platform-adaptive loading indicators:
- iOS/macOS:
CupertinoActivityIndicator
for native look - Android/Web/Others:
CircularProgressIndicator
for Material Design
- iOS/macOS:
- π‘οΈ Enhanced error handling: Bulletproof network error handling prevents cascading crashes
- π§ͺ Comprehensive test suite: 25+ test cases covering all functionality including file/memory images
- π± Multi-platform support: Full iOS, macOS, Android, Web compatibility
- π Enhanced example app: Interactive file picker with cross-platform image upload functionality
- π macOS network permissions: Proper entitlements for network image loading
- π Comprehensive comments: All test files include detailed explanatory comments
Changed #
- β»οΈ Simplified API: Unified constructor patterns with cleaner parameter structure
- π¨ Improved example app: Real device file picker integration showcasing ImageBuilder.file()
- π Enhanced README: Complete rewrite with better organization, more examples, and updated API reference
- π§ Updated dependencies: flutter_svg updated to ^2.0.9 for better compatibility
Fixed #
- π Network error crashes: Fixed cascading StackTrace errors in web environment
- π§ Web compatibility: Improved error handling for web-specific issues
- π― Loading indicator reliability: Consistent behavior across all platforms
- π± File handling edge cases: Better error recovery for invalid file paths and corrupted data
1.0.0 - 2025-09-27 #
Added #
- π Initial release of ImageBuilder package
- π Network image support with caching via
cached_network_image
- π± Local asset support for PNG, JPG, JPEG, WEBP formats
- π¨ SVG support with color customization via
flutter_svg
- π Automatic format detection based on file extension
- β‘ Built-in error handling and fallback widgets
- π Loading placeholders for network images
- π Flexible sizing options (width/height or unified size parameter)
- π Comprehensive logging for debugging
- ποΈ Multiple constructors:
ImageBuilder.image()
andImageBuilder.network()
Features #
- πΌοΈ Multiple image format support
- π Network image caching
- π¨ SVG color customization
- β‘ Error handling with fallback widgets
- π Loading states for network images
- π Flexible sizing options