color_picker_palette 0.1.0

  • Example
  • Installing
  • Versions
  • 60

color_picker_palette #

A color picker palette with custom colors.

Refer color_picker_palette/example for usage.

[0.0.1] - TODO: Add release date.

  • TODO: Describe initial release.


import 'package:flutter/material.dart';
import 'package:color_picker_palette/color_picker_palette.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  State<StatefulWidget> createState() => MyAppState();

class MyAppState extends State<MyApp> {
  ColorPickerPalette colorPickerPalette;
  Color color;
  List<Color> colors = [];

  void initState() {
    color = colors[0];
    colorPickerPalette = new ColorPickerPalette(
      size: 30.0,
      onChange: setColorState,
      colors: colors,
      buttonType: ButtonType.circular,

  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          backgroundColor: color,
          title: Text(
            'Color Picker Palette',
            style: TextStyle(color: Color(color.value - 10010110)),
        body: new Container(
          constraints: BoxConstraints.expand(),
          color: color,
          child: new Column(
            children: <Widget>[
                padding: EdgeInsets.all(16.0),
                child: Text(
                  style: TextStyle(
                    fontSize: 24.0,
                    fontWeight: FontWeight.w400,

  setColorState() {
    setState(() {
      color = colorPickerPalette.color();

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  color_picker_palette: ^0.1.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:color_picker_palette/color_picker_palette.dart';
Version Uploaded Documentation Archive
0.1.3 Sep 26, 2018 Go to the documentation of color_picker_palette 0.1.3 Download color_picker_palette 0.1.3 archive
0.1.2 Sep 26, 2018 Go to the documentation of color_picker_palette 0.1.2 Download color_picker_palette 0.1.2 archive
0.1.1 Sep 26, 2018 Go to the documentation of color_picker_palette 0.1.1 Download color_picker_palette 0.1.1 archive
0.1.0 Sep 26, 2018 Go to the documentation of color_picker_palette 0.1.0 Download color_picker_palette 0.1.0 archive
0.0.2 Sep 20, 2018 Go to the documentation of color_picker_palette 0.0.2 Download color_picker_palette 0.0.2 archive
0.0.1 Sep 19, 2018 Go to the documentation of color_picker_palette 0.0.1 Download color_picker_palette 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jun 18, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.2
  • pana: 0.12.18
  • Flutter: 1.5.4-hotfix.2


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Fix lib/picker_widget.dart. (-5.48 points)

Analysis of lib/picker_widget.dart reported 1 warning, 1 hint:

line 208 col 16: The parameter 'backgroundCursorColor' is required.

line 106 col 3: The class 'Future' was not exported from 'dart:core' until version 2.1, but this code is required to be able to run on earlier versions.

Format lib/color_picker_palette.dart.

Run flutter format to format lib/color_picker_palette.dart.

Format lib/generated/i18n.dart.

Run flutter format to format lib/generated/i18n.dart.

Maintenance issues and suggestions

Support latest dependencies. (-5 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency.

The package description is too short. (-19 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies