scolors 1.0.0 copy "scolors: ^1.0.0" to clipboard
scolors: ^1.0.0 copied to clipboard

A colors playful dependency.

SColors #

Builds and tests Latest release Stable Version Stability repo size

A playful dart package to play with colors and get a lighter and darker color from an existing color you provide.

Usage #

To use this plugin, add scolors as a dependency in your pubspec.yaml file.

dependencies:
  scolors: ^1.0.0

Example #

Import the library.

import 'package:scolors/scolors.dart';

Use it anywhere you want to create a Color lighter or darker in cotrast:

// get opposite color of a already defined color:
  Color? opposite = SColors.oppositeColor(colorStr: '#6a87e3');
  
  // get lighter color of a already defined color with factor:
  Color? lighter = SColors.lighterColor(.3, colorInt: 0xFF6A87E3);
  
  // get darker color of an already defined color with factor:
  Color? darker = SColors.darkerColor(.7, color: const Color(0xff6a87e3));
  
  // get hsv color of an already defined color:
  Color? hsv = SColors.rgbToHsv(colorStr: '#6a87e3');
2
likes
140
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

A colors playful dependency.

Repository (GitHub)
View/report issues

Topics

#colors #dart #tools

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on scolors