richtrex_colorpicker 1.1.0 copy "richtrex_colorpicker: ^1.1.0" to clipboard
richtrex_colorpicker: ^1.1.0 copied to clipboard

An extended package used in richtrex package to pick color whether as dialog, bottom sheet, or just widget in tree.

RichTrex: Color Picker #


An extended package used in RichTrex package to pick color.

Preview #

Dialog Bottom sheet Widget

Install #

Add this line to your pubspec.yaml.

dependencies:
  richtrex_colorpicker: ^1.1.0

Usage #

First, import the package.

import 'package:richtrex_colorpicker/richtrex_colorpicker.dart';

And then put the widget like this.

RichTrexColorPicker(
  color: Colors.blue,
  onChanged: (color) => print(color),
);

Or if you want to open it as Dialog, do this.

GestureDetector(
  onTap: () async {
    var color = await RichTrexColorPicker.openDialog(context, color: Colors.blue);
    print(color);
  }
);

And if you want to open it as Bottom Sheet, try this.

GestureDetector(
  onTap: () async {
    var color = await RichTrexColorPicker.openBottomSheet(context, color: Colors.blue);
    print(color);
  }
);

Sample #

3
likes
130
pub points
0%
popularity

Publisher

unverified uploader

An extended package used in richtrex package to pick color whether as dialog, bottom sheet, or just widget in tree.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, provider

More

Packages that depend on richtrex_colorpicker