palette_generator_master 1.0.1
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 classPaletteColorMaster
- Enhanced color representation with accessibility featuresPaletteTargetMaster
- Improved target color definitionsEncodedImageMaster
- Enhanced image handling
- New utility classes:
ColorSpaceConverter
- Convert between different color spacesAccessibilityHelper
- WCAG compliance utilitiesColorHarmonyGenerator
- 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:
PaletteGenerator
→PaletteGeneratorMaster
PaletteColor
→PaletteColorMaster
PaletteTarget
→PaletteTargetMaster
EncodedImage
→EncodedImageMaster
- New features not available in the original package:
- Multi-color space support
- Accessibility features
- Color harmony generation
- Enhanced performance
Dependencies #
flutter
: SDKcollection
: ^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 #
-
Multi-Color Space Support: Unlike the original RGB-only approach, this package supports RGB, HSV, and LAB color spaces for more accurate color analysis.
-
Accessibility First: Built-in WCAG 2.1 compliance checking and automatic accessible color pair generation.
-
Color Harmony: Automatic generation of harmonious color schemes based on color theory principles.
-
Performance: Significantly improved performance through optimized algorithms and memory management.
-
Modern Flutter: Built for Flutter 3.22.0+ with null safety and modern development practices.
-
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