color_plus 1.0.3 copy "color_plus: ^1.0.3" to clipboard
color_plus: ^1.0.3 copied to clipboard

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

3
likes
115
points
23
downloads

Publisher

verified publisheruni-team.org

Weekly Downloads

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