kmeans_dominant_colors 0.1.7
kmeans_dominant_colors: ^0.1.7 copied to clipboard
A Flutter package to extract dominant colors from images using K-means clustering algorithm. Perfect for generating color palettes, theme suggestions, and image analysis.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add kmeans_dominant_colorsThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
kmeans_dominant_colors: ^0.1.7Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:kmeans_dominant_colors/kmeans_dominant_colors.dart';