color_to_material

Creator: coderz1093

Last updated:

0 purchases

color_to_material Image
color_to_material Images

Languages

Categories

Add to Cart

Description:

color to material

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';
copied to clipboard
From a Color #
Simply give a Color as a parameter and then get the materialColor.
ColorToMaterial(Colors.orange).getMaterialColor();
copied to clipboard
From HEX #
You can just give it a String in the .fromHex
ColorToMaterial.fromHEX('0055ff').getMaterialColor();
copied to clipboard

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.