Color picker for Flutter

admin

Color picker for Flutter, based on the Google Docs color picker

Material ColorPicker

Color picker for Flutter, based on the Google Docs color picker.

alt text

Getting Started

You can embed into your material app or use it on a Dialog like this:

Future<Color> askedToLead() async => await showDialog(
    context: context,
    child: new SimpleDialog(
      title: const Text('Select color'),
      children: <Widget>[
        new ColorPicker(
          type: MaterialType.transparency,
          onColor: (color) {
            Navigator.pop(context, color);
          },
          currentColor: startColor,
        ),
      ],
    ),
  );
Credit (github url) : https://github.com/long1eu/material_pickers

Next Article : https://flutterappdev.com/2019/02/01/flutter-floating-action-button-with-speed-dial-mobile-app-development/

Leave a Comment