image_builder 1.2.0 copy "image_builder: ^1.2.0" to clipboard
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) with ImageBuilder(myFile)
    • Replace ImageBuilder.memory(myBytes) with ImageBuilder(myBytes)
    • The default constructor ImageBuilder('path') remains unchanged
  • ⏰ 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
  • πŸ›‘οΈ 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() and ImageBuilder.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
3
likes
160
points
319
downloads

Publisher

unverified uploader

Weekly Downloads

A comprehensive Flutter package for handling network images, SVGs, local assets, file images, and memory images with caching and error handling.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, flutter, flutter_svg

More

Packages that depend on image_builder