Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/nialixus/richtrex_colorpicker
- Owner: Nialixus
- License: mit
- Created: 2022-06-14T09:01:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-18T08:33:13.000Z (over 2 years ago)
- Last Synced: 2024-12-16T10:56:17.866Z (18 days ago)
- Topics: colorpicker, dart, flutter, flutter-package, pub-dev
- Language: Dart
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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)