image_color_scheme 1.0.5
image_color_scheme: ^1.0.5 copied to clipboard
A Flutter widget that dynamically extracts a ColorScheme from images and rebuilds when the scheme is ready.
1.0.5 #
- Updated SDK constraint to
^3.4.3for broader compatibility
1.0.4 #
- Fixed: Color scheme now updates correctly when image provider changes multiple times
- Previously, changing the provider would only trigger a recomputation on the first change
didUpdateWidgetnow properly triggers_computeColorScheme()when provider changes
1.0.3 #
- Breaking: Builder signature now requires 3 parameters:
(context, colorScheme, child) - Added
onErrorcallback for handling color extraction failures - Added
contrastLevelparameter for adjusting color scheme contrast - Added
dynamicSchemeVariantparameter for Material Design scheme variants - Added
ImageColorSchemeWidgetBuildertypedef export - Fixed race condition when provider changes during computation
- Widget now re-computes when
contrastLevelordynamicSchemeVariantchanges - Improved documentation with complete API reference
1.0.2 #
- Initial release
ImageColorSchemeBuilderwidget for extracting ColorScheme from images- Support for any
ImageProvidervia constructor computeColorSchemeFromImageProviderhelper function- Automatic theme brightness detection
- Proper lifecycle management and cleanup