Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/long1eu/material_pickers
https://github.com/long1eu/material_pickers
color-picker dart flutter flutter-material material-design
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/long1eu/material_pickers
- Owner: long1eu
- License: mit
- Created: 2017-11-14T22:44:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-31T05:39:58.000Z (about 5 years ago)
- Last Synced: 2024-07-30T09:09:45.410Z (3 months ago)
- Topics: color-picker, dart, flutter, flutter-material, material-design
- Language: Dart
- Size: 31.3 KB
- Stars: 102
- Watchers: 5
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-material-design - material_pickers - Another flutter color picker (Flutter / Components)
README
# Material ColorPicker
Color picker for Flutter, based on the Google Docs color picker.
![alt text](https://raw.githubusercontent.com/long1eu/material_color_picker/master/res/extras/demo.png)
## Getting Started
You can embed into your material app or use it on a Dialog like this:
Future askedToLead() async => await showDialog(
context: context,
child: new SimpleDialog(
title: const Text('Select color'),
children: [
new ColorPicker(
type: MaterialType.transparency,
onColor: (color) {
Navigator.pop(context, color);
},
currentColor: startColor,
),
],
),
);For help getting started with Flutter, view our online [documentation](http://flutter.io/).