color_plus 1.0.2
color_plus: ^1.0.2

Flutter Android iOS web

A huge collection of named color library borrowed from https://www.colorhexa.com/color-names

color_plus #

A convenient color library borrowed from https://www.colorhexa.com/color-names

Import color_plus #

import 'package:color_plus/color_plus.dart' as ColorPlus;

Import the library and use it as a prefix is advised.

Get any pre-defined color by their name! #

Color myColor = ColorPlus.DeepFuchsia;

Traversal all colors in the library. #

for (int i = 0 ; i < ColorPlus.colors.length ; i++) {
  print(ColorPlus.colors[i].toString());
}

Traversal all color names by the ColorName enum. #

for (int i = 0 ; i < ColorPlus.ColorName.values.length ; i++) {
  print(ColorPlus.ColorName.values[i]);
}

Get a pre-defined color by ColorName enum. #

Color myColor = ColorPlus.getColorByName(ColorPlus.ColorName.DeepFuchsia);

A complete color ticket showcase. #

Build the main.dart to see it.

a screenshot of complete color tickets

2
likes
75
pub points
22%
popularity

Publisher

uni-team.org

A huge collection of named color library borrowed from https://www.colorhexa.com/color-names

Repository (GitLab)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on color_plus