Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

TellMeCorp/tellme_color_picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

 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'),
    ],
    ),
),