colorbrewer 1.0.0 copy "colorbrewer: ^1.0.0" to clipboard
colorbrewer: ^1.0.0 copied to clipboard

ColorBrewer: color palettes optimized for data visualization.

brewer_colors #

A Flutter package providing ColorBrewer color schemes - a collection of scientifically-derived color palettes optimized for data visualization, including sequential, diverging, and qualitative schemes.

Getting Started #

Add this package to your pubspec.yaml file:

dependencies:
  colorbrewer: ^1.0.0

Usage #

Import the package in your Dart code:

import 'package:colorbrewer/colorbrewer.dart';

The package provides color palettes through the ColorBrewer enum. Here are some examples:

// Get a specific color palette
final colors = ColorBrewer.blues.colors; // List<Color>

// Get all palettes of a specific type
final sequentialPalettes = ColorBrewer.blues.sequentialColors;
final divergingPalettes = ColorBrewer.spectral.divergingColors;
final qualitativePalettes = ColorBrewer.set1.qualitativeColors;

Available Color Schemes #

The package includes:

  • Sequential schemes: Blues, Greens, Greys, Oranges, Purples, Reds, and more
  • Diverging schemes: BrBG, PiYG, PRGn, PuOr, RdBu, RdGy, RdYlBu, RdYlGn, Spectral
  • Qualitative schemes: Accent, Dark2, Paired, Pastel1, Pastel2, Set1, Set2, Set3

Projects using this package #

  • Hexee Pro - Palette editor & Advanced color toolkit for designers and developers.

Feel free to submit a pull request to add your project to this list.

Support this project #

Buy Me A Coffee

Credits #

Created by @albemala.

Color schemes from ColorBrewer by Cynthia Brewer, Mark Harrower, and The Pennsylvania State University.

2
likes
0
points
30
downloads

Publisher

verified publisheralbemala.me

Weekly Downloads

ColorBrewer: color palettes optimized for data visualization.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on colorbrewer