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.

example/README.md

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:


dependencies:
  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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
92
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
96
Learn more about scoring.

We analyzed this package on Sep 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

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.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test
mockito ^3.0.0