1 Star 4 Fork 3

flutter-studio / smart-color

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

English | 简体中文

smart_color

pub package

一个智能的flutter颜色包, 所有的 ant design colors 都包含在这个插件包中

使用

要使用此插件包,请将smart_color作为依赖项添加到您的pubspec.yaml文件中。 详见dependency in your pubspec.yaml file.

示例

// 引入相应的包
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))颜色一样

...
//一些常用的颜色已经在库中进行定义了
SmartColor.red;
SmartColor.red.shade1;
SmartColor.green;
SmartColor.green.shade1;

空文件

简介

一个智能的flutter颜色包, 所有的 ant design colors 都包含在这个插件包中 展开 收起
Dart
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Dart
1
https://gitee.com/flutter-studio/smart-color.git
git@gitee.com:flutter-studio/smart-color.git
flutter-studio
smart-color
smart-color
master

搜索帮助