Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nialixus/richtrex_colorpicker

An extended package of RichTrex package to pick color whether as dialog, bottom sheet or widget in tree.
https://github.com/nialixus/richtrex_colorpicker

colorpicker dart flutter flutter-package pub-dev

Last synced: 17 days ago
JSON representation

An extended package of RichTrex package to pick color whether as dialog, bottom sheet or widget in tree.

Awesome Lists containing this project

README

        

# 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.

```yaml
dependencies:
richtrex_colorpicker: ^1.1.0
```

## Usage

First, import the package.

```dart
import 'package:richtrex_colorpicker/richtrex_colorpicker.dart';
```

And then put the widget like this.
```dart
RichTrexColorPicker(
color: Colors.blue,
onChanged: (color) => print(color),
);
```

Or if you want to open it as `Dialog`, do this.
```dart
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.
```dart
GestureDetector(
onTap: () async {
var color = await RichTrexColorPicker.openBottomSheet(context, color: Colors.blue);
print(color);
}
);
```

## Sample
- [richtrex_colorpicker/main/example/lib/main.dart](https://github.com/Nialixus/richtrex_colorpicker/blob/main/example/lib/main.dart)
- [richtrex_colorpicker/releases/tag/v1.0.0.apk](https://github.com/Nialixus/richtrex_colorpicker/releases/tag/v1.0.0)