color_to_material 0.0.1

Flutter Android iOS web

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();
1
likes
90
pub points
40%
popularity

Get a MaterialColor from a single line of code

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

agusdolard@gmail.com

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on color_to_material