flutter_ui_toolbox 0.0.1 copy "flutter_ui_toolbox: ^0.0.1" to clipboard
flutter_ui_toolbox: ^0.0.1 copied to clipboard

A flutter UI toolbox for developers

flutter_ui_toolbox #

Flutter UI Toolbox

Pub Version Likes Popularity Pub Points

color_extensions #

A useful extensions to the Color class.

Description #

This package extends the Flutter Color class with a variety of utility functions to manipulate colors, determine their darkness or lightness, and convert them to and from hex strings.

Features #

  • Adjust Brightness: Lighten or darken a color by a specified percentage.
  • Opacity Control: Create a color with a specific opacity level (0-100%).
  • Dark/Light Detection: Determine if a color is considered dark or light.
  • Hex Conversion: Convert a color to a hex string (#RRGGBB or #AARRGGBB).
  • Hex to Color: Create a Color object from a hex string.
  • RGB to Color: Create a Color object from RGB values.

Examples #

Adjusting Brightness

Color baseColor = Colors.blue; Color lighterColor = baseColor.adjustBrightness(20); // Lightens by 20% Color darkerColor = baseColor.adjustBrightness(-20); // Darkens by 20%

2
likes
0
points
271
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter UI toolbox for developers

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, flutter, intl

More

Packages that depend on flutter_ui_toolbox