{"id":24385610,"url":"https://github.com/flutter-studio/smart-color","last_synced_at":"2025-04-11T02:23:22.810Z","repository":{"id":56839762,"uuid":"160794382","full_name":"flutter-studio/smart-color","owner":"flutter-studio","description":"A smart color package, All ant design colors are included in the plugin","archived":false,"fork":false,"pushed_at":"2019-02-28T02:24:22.000Z","size":76,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T23:51:21.759Z","etag":null,"topics":["ant","ant-design","color","flutter","smart"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flutter-studio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-07T08:26:46.000Z","updated_at":"2024-03-22T00:12:34.000Z","dependencies_parsed_at":"2022-08-29T05:01:20.160Z","dependency_job_id":null,"html_url":"https://github.com/flutter-studio/smart-color","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter-studio%2Fsmart-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter-studio%2Fsmart-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter-studio%2Fsmart-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter-studio%2Fsmart-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flutter-studio","download_url":"https://codeload.github.com/flutter-studio/smart-color/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328496,"owners_count":21085325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ant","ant-design","color","flutter","smart"],"created_at":"2025-01-19T11:19:38.186Z","updated_at":"2025-04-11T02:23:22.787Z","avatar_url":"https://github.com/flutter-studio.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nEnglish | [简体中文](./README_zh-CN.md)\n\n# smart_color\n\n[![pub package](https://img.shields.io/pub/v/smart_color.svg)](https://pub.dartlang.org/packages/smart_color)\n\nA smart color  package, All [ant design colors](https://ant.design/docs/spec/colors-cn) are included in the plugin\n\n## Usage\nTo use this plugin, add `smart_color` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).\n\n## Example\n\n``` dart\n// Import package\nimport 'package:flutter_icons/flutter_icons.dart';\nimport 'package:flutter/material.dart';\n\nSmartColor.parse(\"#ffffff\");\nSmartColor.parse(\"white\");\nSmartColor.parse(\"rgb(0,0,0)\")\nSmartColor.parse(\"rgba(0,0,0,.5)\")\nSmartColor.antDColor(Color(0xFFf5222d)); //To get the color of ant design, you can get ten different colors from one base color\nSmartColor.antDColor(Color(0xFFf5222d)).shade1; //Gets color 1\nSmartColor.antDColor(Color(0xFFf5222d)).shade2; //Gets color 2\nSmartColor.antDColor(Color(0xFFf5222d)).shade3; //Gets color 3\n...\nSmartColor.antDColor(Color(0xFFf5222d)).shade6; //Gets color 6, which is the same as the base color\n\n...\n//Some common colors are already defined in the library\nSmartColor.red;\nSmartColor.red.shade1;\nSmartColor.green;\nSmartColor.green.shade1;\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflutter-studio%2Fsmart-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflutter-studio%2Fsmart-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflutter-studio%2Fsmart-color/lists"}