color_plus

Creator: coderz1093

Last updated:

0 purchases

color_plus Image
color_plus Images

Languages

Categories

Add to Cart

Description:

color plus

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;
copied to clipboard
Import the library and use it as a prefix is advised.
Get any pre-defined color by their name! #
Color myColor = ColorPlus.DeepFuchsia;
copied to clipboard
Traversal all colors in the library. #
for (int i = 0 ; i < ColorPlus.colors.length ; i++) {
print(ColorPlus.colors[i].toString());
}
copied to clipboard
Traversal all color names by the ColorName enum. #
for (int i = 0 ; i < ColorPlus.ColorName.values.length ; i++) {
print(ColorPlus.ColorName.values[i]);
}
copied to clipboard
Get a pre-defined color by ColorName enum. #
Color myColor = ColorPlus.getColorByName(ColorPlus.ColorName.DeepFuchsia);
copied to clipboard
A complete color ticket showcase. #
Build the main.dart to see it.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.