Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
/ ColorThiefPlugin Public archive

A Flutter plugin that grabs the dominant color or a representative color palette from an image.

License

Notifications You must be signed in to change notification settings

m4tt72/ColorThiefPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColorThief plugin for Flutter

A Flutter plugin that grabs the dominant color or a representative color palette from an image.

It's used in 12 Colors android app.

Note: This plugin is still under development iOS is not currently supported. Feedback welcome and Pull Requests are most welcome!

Example

import 'package:colorthief/colorthief.dart' as ColorThiefProvider;
...

getColors() async {
    File image; // From image_picker or somewhere else
    List<ColorThiefProvider.Color> _palette = await ColorThiefProvider.getPalette(image: image, size: 12);
    print(_palette);
}

Thanks to

About

A Flutter plugin that grabs the dominant color or a representative color palette from an image.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published