Skip to content
pubscout

flutter_randomcolor

1.0.18, released 2 years ago by dammak.dev

Generate attractive, customizable random colors and Flutter Color objects.

WASM-ready
$ flutter pub add flutter_randomcolor
Source repository

What it does

Generates visually appealing random colors with fine-tuned control over luminosity, color types, opacity, and output formats. It includes a direct method to return Flutter Color objects or various string/array formats.

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

Use it when

  • You need to generate random avatar background colors or placeholder tints.
  • You want to create data visualizations with distinct, visually appealing colors.

Skip it when

  • You need strict brand color palettes that must be predefined rather than randomized.

Strengths

  • Fine-tuned control over luminosity, color types, and formats.
  • Direct integration with Flutter's Color class.
  • Supports seeds for reproducible random colors.

Weaknesses

  • Limited to random color generation use cases.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:flutter_randomcolor/flutter_randomcolor.dart';

Color widgetColor = RandomColor.getColorObject(Options(
  colorType: ColorType.blue,
  luminosity: Luminosity.light,
));

Alternatives

Packages that do the same job and could replace flutter_randomcolor.