Skip to content

A Flutter package that helps you to get your color palette from coolors.co to your project

License

Notifications You must be signed in to change notification settings

imertgul/coolors_palette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coolors_palette

A Flutter package that helps you to get your color palette from coolors.co to your project

Install

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  coolors_palette: ^0.0.2

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:coolors_palette/coolors_palette.dart';

Example

final myColors = CoolorsPalette("https://coolors.co/055f3d-066943-07744a-313131-383c3f-34454d-d2433b-b13126-97190b-d10a10");  

print(myColors.print());

for (var i = 0; i < myColors.palette.length; i++) {
	print(myColors.palette[i]);
}

Pending feature:

  • Namable Colors

  • RGB Colors

About

A Flutter package that helps you to get your color palette from coolors.co to your project

Topics

Resources

License

Stars

Watchers

Forks

Languages