palette_generator_master 1.0.1 copy "palette_generator_master: ^1.0.1" to clipboard
palette_generator_master: ^1.0.1 copied to clipboard

A powerful Flutter package for extracting prominent colors from images with advanced features and accessibility compliance.

Changelog #

All notable changes to the Palette Generator Master package will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.0 #

Added #

  • Complete rewrite and enhancement of the discontinued palette_generator package
  • Multi-color space support: RGB, HSV, and LAB color spaces for more accurate color analysis
  • Advanced accessibility features:
    • WCAG 2.1 compliance checking
    • Automatic contrast ratio calculation
    • Best text color selection for backgrounds
    • Accessible color pair generation
  • Color harmony generation: Automatic generation of complementary, analogous, and triadic color schemes
  • Enhanced palette extraction:
    • Improved color quantization algorithms
    • Better dominant color detection
    • More accurate color clustering
  • Performance optimizations:
    • Faster image processing
    • Memory-efficient color analysis
    • Optimized quantization algorithms
  • Comprehensive API:
    • PaletteGeneratorMaster - Main palette generation class
    • PaletteColorMaster - Enhanced color representation with accessibility features
    • PaletteTargetMaster - Improved target color definitions
    • EncodedImageMaster - Enhanced image handling
  • New utility classes:
    • ColorSpaceConverter - Convert between different color spaces
    • AccessibilityHelper - WCAG compliance utilities
    • ColorHarmonyGenerator - Generate harmonious color schemes
  • Enhanced example application:
    • Interactive color space selection
    • Real-time accessibility information
    • Color harmony visualization
    • Detailed color information dialogs
    • Modern Material 3 design

Enhanced #

  • Better color accuracy through advanced color space conversions
  • Improved performance with optimized algorithms
  • Enhanced user experience with comprehensive accessibility support
  • More flexible API with extensive customization options

Technical Improvements #

  • Support for Flutter 3.22.0+ and Dart 3.4.0+
  • Null safety throughout the codebase
  • Comprehensive documentation and examples
  • Modern Flutter development practices
  • Extensive error handling and validation

Migration from palette_generator 0.3.3+7 #

  • Breaking changes: This is a complete rewrite with a new API
  • Class name changes:
    • PaletteGeneratorPaletteGeneratorMaster
    • PaletteColorPaletteColorMaster
    • PaletteTargetPaletteTargetMaster
    • EncodedImageEncodedImageMaster
  • New features not available in the original package:
    • Multi-color space support
    • Accessibility features
    • Color harmony generation
    • Enhanced performance

Dependencies #

  • flutter: SDK
  • collection: ^1.18.0
  • Minimum Flutter version: 3.22.0
  • Minimum Dart SDK: 3.4.0

Platform Support #

  • ✅ Android
  • ✅ iOS
  • ✅ Web
  • ✅ Windows
  • ✅ macOS
  • ✅ Linux

About This Package #

This package is a complete rewrite and enhancement of the discontinued palette_generator package (version 0.3.3+7). It provides advanced color palette extraction capabilities with modern Flutter development practices, accessibility support, and enhanced performance.

Key Improvements Over Original Package #

  1. Multi-Color Space Support: Unlike the original RGB-only approach, this package supports RGB, HSV, and LAB color spaces for more accurate color analysis.

  2. Accessibility First: Built-in WCAG 2.1 compliance checking and automatic accessible color pair generation.

  3. Color Harmony: Automatic generation of harmonious color schemes based on color theory principles.

  4. Performance: Significantly improved performance through optimized algorithms and memory management.

  5. Modern Flutter: Built for Flutter 3.22.0+ with null safety and modern development practices.

  6. Comprehensive API: More flexible and powerful API with extensive customization options.

Future Roadmap #

  • ❌ Advanced color harmony algorithms (split-complementary, tetradic)
  • ❌ Machine learning-based color palette suggestions
  • ❌ Integration with popular design systems
  • ❌ Advanced image analysis features
  • ❌ Performance optimizations for large images
  • ❌ Additional color space support (XYZ, LUV)

This package continues the legacy of the original palette_generator with modern enhancements and new capabilities.

1.0.1 #

  • Fix pub point
1
likes
160
points
683
downloads

Publisher

verified publisherswanflutterdev.com

Weekly Downloads

A powerful Flutter package for extracting prominent colors from images with advanced features and accessibility compliance.

Repository (GitHub)
View/report issues

Topics

#color #palette #image #accessibility #ui

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

collection, flutter

More

Packages that depend on palette_generator_master