creo_color_picker 0.0.4 copy "creo_color_picker: ^0.0.4" to clipboard
creo_color_picker: ^0.0.4 copied to clipboard

Simple Flutter color picker widgets with alpha channel and popup view.

example/lib/main.dart

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

void main() => runApp(const _App());

class _App extends StatelessWidget {
  const _App();
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) =>
      const MaterialApp(title: 'Flutter Demo', home: ColorPickerExamplePage());
}

class ColorPickerExamplePage extends StatefulWidget {
  const ColorPickerExamplePage();

  @override
  _ColorPickerExamplePageState createState() => _ColorPickerExamplePageState();
}

class _ColorPickerExamplePageState extends State<ColorPickerExamplePage> {
  @override
  Widget build(BuildContext context) => Scaffold(
        appBar: AppBar(title: Text('ColorPicker sample app')),
        body: Center(
          child: Row(
            mainAxisSize: MainAxisSize.min,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Column(
                mainAxisSize: MainAxisSize.min,
                crossAxisAlignment: CrossAxisAlignment.start,
                children: [
                  Text('Color Picker',
                      style:
                          const TextStyle(color: Colors.grey, fontSize: 20.0)),
                  const SizedBox(height: 16.0),
                  SizedBox(width: 300, height: 400, child: ColorPicker()),
                ],
              ),
              const SizedBox(width: 64),
              SizedBox(
                  width: 300,
                  child: ColorPickerCombo(title: 'Color Picker Combo')),
            ],
          ),
        ),
      );
}
1
likes
40
pub points
22%
popularity

Publisher

unverified uploader

Simple Flutter color picker widgets with alpha channel and popup view.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

combos, flutter

More

Packages that depend on creo_color_picker