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
copied to clipboard

Usage #

First, import the package.

import 'package:richtrex_colorpicker/richtrex_colorpicker.dart';
copied to clipboard

And then put the widget like this.

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

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);
  }
);
copied to clipboard

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);
  }
);
copied to clipboard

Sample #

3
likes
150
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

2024.10.04 - 2025.04.18

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, provider

More

Packages that depend on richtrex_colorpicker