app_color_parser 0.0.5+1
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)
fromflex_color_picker
to produce consistent 8-digitAARRGGBB
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/deserializingColor
as hex string.
0.0.3 #
- Added
HexColorJsonParser
for serializing/deserializingColor
as hex string.
0.0.2 #
- Create Example file.
0.0.1 #
- Added
HexColorExtension
for converting betweenColor
and hex strings. - Added
ColorJsonHelper
for serializing/deserializingColor
as ARGB integer. - Added
HexColorJsonHelper
for serializing/deserializingColor
as hex string. - Defined
IColorJsonHelper
interface for custom JSON color serialization strategies.