All Projects → Pyozer → flutter_material_color_picker

Pyozer / flutter_material_color_picker

Licence: MIT License
Material color picker, you can customize colors. Selection in two step, first main color and after shades.

Programming Languages

dart
5743 projects
HTML
75241 projects
shell
77523 projects
swift
15916 projects

Projects that are alternatives of or similar to flutter material color picker

Iro.js
🎨 Modular color picker widget for JavaScript, with support for a bunch of color formats
Stars: ✭ 796 (+1070.59%)
Mutual labels:  widget, color-picker
Pickr
🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
Stars: ✭ 3,759 (+5427.94%)
Mutual labels:  widget, color-picker
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+298.53%)
Mutual labels:  widget, color-picker
react-color
🎨 Is a tiny color picker widget component for React apps.
Stars: ✭ 50 (-26.47%)
Mutual labels:  widget, color-picker
flutter survey app
Flutter Survey App concept
Stars: ✭ 43 (-36.76%)
Mutual labels:  dart2
ColorPicker
Customizable Color Picker control for WPF
Stars: ✭ 57 (-16.18%)
Mutual labels:  color-picker
vue-smart-widget
🗃️Smart widget is a flexible and extensible content container component for Vue2.x / Vue3.x in Next branch.
Stars: ✭ 110 (+61.76%)
Mutual labels:  widget
a-color-picker
A color picker for web app
Stars: ✭ 97 (+42.65%)
Mutual labels:  color-picker
backdrop
Backdrop implementation in flutter.
Stars: ✭ 203 (+198.53%)
Mutual labels:  widget
Rocket-Notes
The World's Fastest Note Taking App. Fast. Simple. Create a note in one tap! Create image and text notes directly from your home screen!
Stars: ✭ 20 (-70.59%)
Mutual labels:  widget
menu button
Flutter plugin to display a popup menu button widget with handsome design and easy to use.
Stars: ✭ 64 (-5.88%)
Mutual labels:  widget
rc-year-calendar
Official React wrapper for the year-calendar widget
Stars: ✭ 27 (-60.29%)
Mutual labels:  widget
nps-widget
Net Promoter Score widget
Stars: ✭ 26 (-61.76%)
Mutual labels:  widget
ModularPlayers
Modular desktop media widget
Stars: ✭ 28 (-58.82%)
Mutual labels:  widget
FloatingView
FloatingView moved by finger supporting OverlaySystem, OverlayActivity, OverlayViewGroup modes
Stars: ✭ 58 (-14.71%)
Mutual labels:  widget
uploadcare-rails
Rails wrapper for Uploadcare
Stars: ✭ 48 (-29.41%)
Mutual labels:  widget
GITGET
GitHub의 Contributions를 iOS의 Widget으로 보여주는 App
Stars: ✭ 101 (+48.53%)
Mutual labels:  widget
critical-css-widget
A browser widget to extract Critical CSS and Full CSS from a page. Can be used via the browser console.
Stars: ✭ 35 (-48.53%)
Mutual labels:  widget
bazaar
思源笔记社区集市。SiYuan community bazaar.
Stars: ✭ 18 (-73.53%)
Mutual labels:  widget
yii2-multi-select-widget
Bootstrap MultiSelect and MultiSelect Listbox widgets for Yii2
Stars: ✭ 45 (-33.82%)
Mutual labels:  widget

Flutter Material Color Picker pub package

Material Color picker is a Flutter widget, that can be customizable.

By default, it's Material Colors, but you can define your own colors.

You can also use CircleColor widget to display color in your app. Example, you can set the color picker in a dialog and display the selected color in a ListTile, for settings.

How to use it

These examples use a static color for 'selectedColor', but you can use a variable (state)

Add to your Flutter project

You just need to add flutter_material_color_picker as a dependency in your pubspec.yaml file.

flutter_material_color_picker: ^1.1.0+2

Import

import 'package:flutter_material_color_picker/flutter_material_color_picker.dart';

Basic

MaterialColorPicker(
    onColorChange: (Color color) {
        // Handle color changes
    },
    selectedColor: Colors.red
)

Listen main color changes

MaterialColorPicker(
    onColorChange: (Color color) {
        // Handle color changes
    },
    onMainColorChange: (ColorSwatch color) {
        // Handle main color changes
    },
    selectedColor: Colors.red
)

Disallow Shades

MaterialColorPicker(
    allowShades: false, // default true
    onMainColorChange: (ColorSwatch color) {
        // Handle main color changes
    },
    selectedColor: Colors.red
)

If allowShades is set to false then only main colors will be shown and allowed to be selected. onColorChange will not be called, use onMainColorChange instead.

Custom colors

In this example, custom colors are a list of Material Colors (class who extend of ColorSwatch). But you can create your own list of ColorSwatch.

MaterialColorPicker(
    onColorChange: (Color color) {
        // Handle color changes
    },
    selectedColor: Colors.red,
    colors: [
        Colors.red,
        Colors.deepOrange,
        Colors.yellow,
        Colors.lightGreen
    ],
)

Screenshot

Color selection

There is two step, first choose the main color, and when you press it, you have to choose a shade of the main color. By default it's all Material Colors, but you can define custom colors, a list of ColorSwatch.

Example of usages

You can insert the color picker into a Dialog

Display color

You can use CircleColor widget, to display the selected color into your settings for example.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].