color_to_material 0.0.1 copy "color_to_material: ^0.0.1" to clipboard
color_to_material: ^0.0.1 copied to clipboard

Get a MaterialColor from a single line of code

ColorToMaterial #

Get a MaterialColor from a single line of code instead of creating a Map<int, Color>

Lets get started #

Import it to your .dart file using :

import 'package:color_to_material/color_to_material.dart';

From a Color #

Simply give a Color as a parameter and then get the materialColor.

ColorToMaterial(Colors.orange).getMaterialColor();

From HEX #

You can just give it a String in the .fromHex

ColorToMaterial.fromHEX('0055ff').getMaterialColor();
2
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Get a MaterialColor from a single line of code

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on color_to_material