app_color_parser 0.0.5+1 copy "app_color_parser: ^0.0.5+1" to clipboard
app_color_parser: ^0.0.5+1 copied to clipboard

A lightweight Flutter package for converting between Color, hex strings, and ARGB integers, with built-in JSON serialization support.

Changelog #

All notable changes to this project will be documented in this file.

[0.0.5+1] - 2025-06-25 #

Changed #

  • toHex() now returns color strings in Flutter's preferred format using '0xff$hex'.
  • Integrated ColorTools.colorCode(Color) from flex_color_picker to produce consistent 8-digit AARRGGBB format before prefixing.
  • Ensures lowercase 0xff prefix, matching how Flutter represents colors in source code.

[0.0.5] - 2025-06-25 #

Changed #

  • Refactored ColorHexExtension.toHex({bool includeAlpha}) to delegate hex formatting to ColorTools.colorCode(Color) from the flex_color_picker package.
  • Improved clarity and re-usability by stripping the alpha channel conditionally instead of manually handling Color.value.

0.0.4 #

  • Added hex_color_extension for serializing/deserializing Color as hex string.

0.0.3 #

  • Added HexColorJsonParser for serializing/deserializing Color as hex string.

0.0.2 #

  • Create Example file.

0.0.1 #

  • Added HexColorExtension for converting between Color and hex strings.
  • Added ColorJsonHelper for serializing/deserializing Color as ARGB integer.
  • Added HexColorJsonHelper for serializing/deserializing Color as hex string.
  • Defined IColorJsonHelper interface for custom JSON color serialization strategies.
0
likes
150
points
58
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter package for converting between Color, hex strings, and ARGB integers, with built-in JSON serialization support.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flex_color_picker, flutter

More

Packages that depend on app_color_parser