material_color_gen 1.0.0 copy "material_color_gen: ^1.0.0" to clipboard
material_color_gen: ^1.0.0 copied to clipboard

A Flutter package to generate a MaterialColor from a Color

This package allows you to generate a MaterialColor from a Color, which useful when wanting to use a custom color for ThemeData.primarySwatch.

Features #

Things it can do:

  • It can generate a MaterialColor from a Color.

Things it can do:

  • Literally everything else.

Getting started #

This is a native package so there is nothing else needed for it to work on all Flutter supported platforms.

Usage #

final MaterialColor = MaterialColorGenerator().createMaterialColor(Color(0xFFFFFFFF));

It's that easy!

And that's it!

Additional information #

If you feel something extra could be contributed to this package, then please feel free to submit your feature request as an issue on GitHub.

15
likes
100
pub points
83%
popularity

Publisher

verified publisherliam.kiwi

A Flutter package to generate a MaterialColor from a Color

Homepage

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on material_color_gen