FLUTTER ECOSYSTEM

tinycolor2

Flutter Color manipulation and conversion, ported from JS tinycolor2

Latest version
3.0.1
30-day downloads
11.6K
Likes
38
Pub points
150

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

tinycolor2 is a Flutter package for color manipulation and conversion, ported from the popular JavaScript library tinycolor2. It provides a comprehensive set of tools to parse, modify, and convert colors across various formats such as HEX, RGB, HSL, and HSV. The package supports both light and dark mode adjustments, color blending, and accessibility checks. Ideal for dynamic UIs requiring real-time color transformations, it ensures consistent color handling across platforms.

Use cases
  • Dynamic theme generation
  • Color contrast checking
  • Hue/saturation/lightness adjustments
  • Color blending in UI design
  • Theme customization in apps
Key features
  • HEX, RGB, HSL, HSV parsing
  • Color brightness and saturation control
  • Color blending utilities
  • Accessibility contrast ratio calculation
  • Cross-platform consistency
Suitable for
  • UI/UX developers
  • Theme builders
  • Design system implementers
  • Apps with dynamic color schemes
Considerations
  • Limited to color operations only
  • No built-in color picker widget
  • Requires manual integration with theme systems
  • Does not support advanced color spaces like LAB or LCH
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add tinycolor2

Categories

Source repository

Related projects