Skip to content
pubscout

color_palette_generator

2.0.1, released 3 years ago by an unverified publisher

Generate N colors using a set of basic colors, supporting HEX and RGBA.

WASM-ready
$ flutter pub add color_palette_generator
Source repository

What it does

Color palette generator that takes a set of basic colors in HEX or RGBA format and generates an expanded palette of N colors. It supports HTML colors and offers utilities to manipulate color schemes.

AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to dynamically generate a larger color palette from a base set of colors.
  • You are working with HEX and RGBA color strings in Dart.

Skip it when

  • You need complex UI color pickers or complete design systems.
  • You require platform-specific native color integration.

Strengths

  • Supports both HEX and RGBA color formats.
  • Simple API for generating expanded color palettes.

Weaknesses

  • Limited documentation beyond basic usage examples.
  • Small ecosystem and niche use case.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:color_palette_generator/color_palette_generator.dart';

void main() {
  var basicPalette = ColorPalette.from(['#ff0000','#00ff00','rgba(0,0,255, 0.50)']);
  var colorGenerator = ColorGeneratorFromBasicPalette(basicPalette);
  var expandedPalette = colorGenerator.generatePaletteAsColorPalette(6);
  print('expandedPalette: $expandedPalette');
}

Alternatives

Packages that do the same job and could replace color_palette_generator.

Works with

Packages commonly used together with color_palette_generator: ones it builds on, ones built on it, and its own family.