hexcolorname 0.0.5 copy "hexcolorname: ^0.0.5" to clipboard
hexcolorname: ^0.0.5 copied to clipboard

outdated

A Flutter plugin for Color's Name by Color Code. Supports iOS, Android, web, Windows, macOS, and Linux.

hexcolorname #

pub package

A Flutter plugin for Color's Name by Color Code. Supports iOS, Android, web, Windows, macOS, and Linux.

Usage #

To use this plugin, add hexcolorname as a dependency in your pubspec.yaml file.

Example #


///
/// complementary Mode will return the complementary color of the given color #C2ABA2
/// inverted Mode will return the inverted color of the given color #5D463D
/// textinverted Mode will return the Black / White color of the given color #000000 for eg. for light color with will return black and for dark color will return white
///
const String _color = '#A2B9C2';

void main() => runApp(
      const MaterialApp(
        home: Material(
          child: Center(
              child: ColorCodeName(
                  mode: ColorMode.complementarycolor, hexColor: _color)),
        ),
      ),
    );

See the example app for more complex examples.

3
likes
0
points
24
downloads

Publisher

verified publisherkrishnavishwakarma.in

Weekly Downloads

A Flutter plugin for Color's Name by Color Code. Supports iOS, Android, web, Windows, macOS, and Linux.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on hexcolorname