native_color 1.0.0 copy "native_color: ^1.0.0" to clipboard
native_color: ^1.0.0 copied to clipboard

discontinued
outdated

Flutter plugin for works with colors schemes like a hex, hsl, xyz and cielab

native_color #

Flutter plugin widening a Color class which can be used to create, convert, compare colors and uses in UI.

Examples #

HexColor:

main() {
  assert(HexColor('000000')    == Color(0xFF000000));
  assert(HexColor('FFFFFFFF')  == Color(0xFFFFFFFF));
  assert(HexColor('#B1000000') == Color(0xB1000000));
}

HslColor:

main() {
  assert(HslColor(164, 100, 88) == Color(0xFFC2FFEF));
}

HyzColor:

main() {
  assert(XyzColor(0.1669, 0.2293, 0.0434) == Color(0xFF659027));
}

CielabColor:

main() {
  assert(CielabColor(36.80, 55.20, -95.61) == Color(0xFF4832F7));
}

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Inspired by #

Color dart package

1
likes
0
pub points
43%
popularity

Publisher

verified publisherscer.io

Flutter plugin for works with colors schemes like a hex, hsl, xyz and cielab

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on native_color