antd_color 1.0.1
antd_color: ^1.0.1 copied to clipboard
Ant Design v6 color system for Flutter. FastColor algorithm, palette generation, and color parsing — ported from @ant-design/fast-color.
Changelog #
1.0.1 #
- Fix pub.dev static analysis results by aligning internal dependency constraints.
- Ship the package example and tighten pubspec metadata for better pub.dev scoring.
- Documentation and changelog polish.
1.0.0 #
- Added
AntFastColor, a mutable RGBA color type with parsing for hex (#rgb,#rrggbb,#rrggbbaa, optional#),rgb()/rgba(),hsl()/hsla(), andhsv()/hsb()values, plusAntRgb/AntHsl/AntHsvmodels and polymorphicAntFastColor.ofconstruction. - Added color manipulation and inspection on
AntFastColor:lighten,darken,mix,tint,shade,onBackground,setR/setG/setB/setA, luminance, hue, saturation, lightness, value, brightness,isDark/isLight,clone, and hex/rgb/hsl/hsv conversions. - Added
antGeneratePalettefor 10-step light and dark palettes derived from antd's fixed mapping tables, with the main color at index 5. - Added
AntPaletteOptionsto select the dark mapping table and override its background color. - Added
AntColorwithfromSeed,fromSeedDark,fromRawPalette,fromRawPaletteDark, andfromMapped, exposingstep1-step10,step1Color-step10Color,main,mainColor,palette, and step indexing. - Added
AntPresetColorswith the 13 antd preset seeds andantGeneratePresetPalettesfor bulk light or dark preset maps. - Added
antParseColorfor#rgb,#rrggbb,#rrggbbaa,rgb(), andrgba()strings, falling back to opaque black for unsupported input.