0 purchases
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.