Search packages, repositories and app categories

Package detailsv0.0.2

colorify

A simple Flutter package to generate deterministic, random colors from a given dynamic seed.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
46
Likes
1
Pub points
160

Install package

flutter pub add colorify

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Colorify is a lightweight Flutter package that generates deterministic, random colors based on a dynamic seed input. This ensures consistent color output across multiple calls with the same seed, making it ideal for applications requiring reproducible color schemes. It supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. The package is simple to integrate and useful for visualizations, UI components, or data tagging where unique yet predictable colors are needed.

Use cases

  • Generating consistent colors for data visualization
  • Assigning unique colors to user profiles
  • Creating themed UI elements with reproducible palettes
  • Color-coding items in lists or charts
  • Designing dynamic themes with seed-based randomness

Key features

  • Deterministic color generation from a seed
  • Supports dynamic seed types
  • Cross-platform compatibility
  • Simple API with minimal setup
  • No external dependencies

Suitable for

  • Developers needing reproducible color schemes
  • UI/UX designers working with dynamic themes
  • Applications requiring unique but consistent coloring
  • Projects with data visualization needs
  • Prototyping interactive interfaces

Considerations

  • Seed must be consistent for identical color output
  • Not suitable for cryptographic or security-sensitive color generation
  • Limited to color generation—no advanced palette manipulation
  • Performance impact negligible but depends on usage frequency
  • Does not support color blending or gradients

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Colorify

An extremely simple Flutter package that deterministically converts arbitrary dynamic input into a Color. Published mainly for personal use to avoid reinventing the wheel in my projects.

Usage

Basic Example
import 'package:colorify/colorify.dart' as c;
import 'package:flutter/material.dart';

void main() {
  final input = 'example-seed';
  final color = c.colorify(input);
  print(color); // Outputs a Color object deterministically derived from 'example-seed'.
}
Customizing Color Type

You can specify the type of colors generated by using the ColorType enum:

  • ColorType.all: Generates colors from the full spectrum.
  • ColorType.brights: Generates bright and vibrant colors.

Example:

import 'package:colorify/colorify.dart' as c;
import 'package:flutter/material.dart';

void main() {
  final input = 'example-seed';

  // Generate a color from the full spectrum
  final allColors = c.colorify(input, colorType: c.ColorType.all);

  // Generate a bright color
  final brightColor = c.colorify(input, colorType: c.ColorType.brights);
}

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.