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

Customizable color picker for flutter.

tellme_color_picker #

Semi customizable color picker for flutter.

Install #

1. Depend on it #

Add this to your package's pubspec.yaml file:

dependencies:
    tellme_color_picker:: <CurrentVersion>

2. Install it #

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it #

Now in your Dart code, you can use:

import  'package:tellme_color_picker/tellme_color_picker.dart';

Example #

//Default confirmed
 TextButton(
    onPressed: () => TellMeColorPicker(
    context: context,
    colors: TellMeColors.labelColors,// color array
    onSelected: (Color color) {
        setState(() {
        selectedColor = color;
        });
    },
    ),
    child: Row(
    children: [
        Icon(Icons.label, color: selectedColor),
        SizedBox(width: 10),
        Text('Select a color'),
    ],
    ),
),

1
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Customizable color picker for flutter.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on tellme_color_picker