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