Skip to main content

antd_color 1.0.1 copy "antd_color: ^1.0.1" to clipboard
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(), and hsv()/hsb() values, plus AntRgb/AntHsl/AntHsv models and polymorphic AntFastColor.of construction.
  • 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 antGeneratePalette for 10-step light and dark palettes derived from antd's fixed mapping tables, with the main color at index 5.
  • Added AntPaletteOptions to select the dark mapping table and override its background color.
  • Added AntColor with fromSeed, fromSeedDark, fromRawPalette, fromRawPaletteDark, and fromMapped, exposing step1-step10, step1Color-step10Color, main, mainColor, palette, and step indexing.
  • Added AntPresetColors with the 13 antd preset seeds and antGeneratePresetPalettes for bulk light or dark preset maps.
  • Added antParseColor for #rgb, #rrggbb, #rrggbbaa, rgb(), and rgba() strings, falling back to opaque black for unsupported input.
1
likes
160
points
103
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Ant Design v6 color system for Flutter. FastColor algorithm, palette generation, and color parsing — ported from @ant-design/fast-color.

Homepage
Repository (GitHub)
View/report issues

Topics

#ui #color #design-system #ant-design

License

MIT (license)

Dependencies

flutter

More

Packages that depend on antd_color