Palette Generator package #
A Flutter package to extract prominent colors from an Image, typically used to find colors for a user interface.
To use this package, add
palette_generator as a
dependency in your pubspec.yaml file.
Import the library via
Then use the
PaletteGenerator Dart class in your code. To see how this is done,
check out the image_colors example app.
- Updated code to be compatible with Flutter breaking change.
- Fixed a problem with a listener that wasn't being unregistered properly.
- Initial Open Source release.
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:
$ 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:
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]
We analyzed this package on Nov 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.0
- pana: 0.12.21
- Flutter: 1.9.1+hotfix.6
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.