palette_generator 0.2.0

Palette Generator package #

pub package

A Flutter package to extract prominent colors from an Image, typically used to find colors for a user interface.

Usage #

To use this package, add palette_generator as a dependency in your pubspec.yaml file.

Example #

Import the library via

import 'package:palette_generator/palette_generator.dart';

Then use the PaletteGenerator Dart class in your code. To see how this is done, check out the image_colors example app.

0.2.0 #

  • Updated code to be compatible with Flutter breaking change.

0.1.1 #

  • Fixed a problem with a listener that wasn't being unregistered properly.

0.1.0 #

  • Initial Open Source release.


image_colors #

A sample app for demonstrating the PaletteGenerator

This app will show you what kinds of palettes the generator creates, and one way to create them from existing image providers.

Use this package as a library

1. Depend on it

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

  palette_generator: ^0.2.0

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:palette_generator/palette_generator.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 18, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
collection ^1.14.6 1.14.11 1.14.12
flutter 0.0.0
path ^1.6.1 1.6.4
Transitive dependencies
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
mockito ^3.0.0