string_to_color

Creator: coderz1093

Last updated:

0 purchases

string_to_color Image
string_to_color Images

Languages

Categories

Add to Cart

Description:

string to color

string_to_color #
convert string to color
how to install #
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
string_to_color: ^2.0.0
copied to clipboard
import it #
Now in your Dart code, you can use:
import 'package:string_to_color/string_to_color.dart';
copied to clipboard
how to use #
import 'dart:ui';
import 'package:string_to_color/string_to_color.dart';

Color color = ColorUtils.stringToColor("name"); // returns `Color(0xFF337A8B)`

String hexColor = ColorUtils.stringToHexColor("name"); //returns "0xFF337A8B"

int hexInt = ColorUtils.stringToHexInt("name"); //returns 0xFF337A8B
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.