smart_color 0.2.0 copy "smart_color: ^0.2.0" to clipboard
smart_color: ^0.2.0 copied to clipboard

outdated

This is a package used to convert strings to flutter colors, along with all ant design colors

smart_color #

pub package

A smart color package, All ant design colors are included in the plugin

Usage #

To use this plugin, add smart_color as a dependency in your pubspec.yaml file.

Example #

// Import package
import 'package:flutter_icons/flutter_icons.dart';
import 'package:flutter/material.dart';

SmartColor.parse("#ffffff");
SmartColor.parse("white");
SmartColor.parse("rgb(0,0,0)")
SmartColor.parse("rgba(0,0,0,.5)")
SmartColor.antDColor(Color(0xFFf5222d)); //得到蚂蚁金服颜色,通过一个基色可以得到十种不同的颜色
SmartColor.antDColor(Color(0xFFf5222d)).shade1; //获取1色色号颜色值
SmartColor.antDColor(Color(0xFFf5222d)).shade2; //获取2色色号颜色值
SmartColor.antDColor(Color(0xFFf5222d)).shade3; //获取3色色号颜色值
...
SmartColor.antDColor(Color(0xFFf5222d)).shade6; //6色色号颜色值和主色值一样,即和SmartColor.antDColor(Color(0xFFf5222d))颜色一样
...

4
likes
0
pub points
33%
popularity

Publisher

unverified uploader

This is a package used to convert strings to flutter colors, along with all ant design colors

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, pigment

More

Packages that depend on smart_color