A Flutter project that extracts dominant colors from images using the K-means algorithm. The Palette Library with the same purpose probably as Android's Pallete API.
Medium Article - Extracting Dominant Image Colors in Flutter with the K-means++ Algorithm
Because the goal is to find the most dominant colors in a photo, clustering algorithms are the best solution. K-means is the most widely used centroid-based clustering algorithm. K-means++ is an improved version of the K-means algorithm. It's main advantage is a smarter initialization of the centroids, which tends to lead to faster convergence and better final clustering results.