flutter_randomcolor
1.0.18, released 2 years ago by dammak.dev
Generate attractive, customizable random colors and Flutter Color objects.
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.
- material_color_generator
Generates a MaterialColor palette from a single HEX color.
47Compare - color_hash
Generate persistent colors from strings in Flutter.
46Compare - derived_colors
Generate color variants and modifications for Flutter applications.
50Compare - color_palette_plus
Generates color palettes, shades, and Material Design themes in Flutter.
46Compare