camera_color_picker

A Flutter widget to pick colors using the camera.

Note: This plugin is still under development.

Installation

First, add camera_color_picker as a dependency in your pubspec.yaml file.

camera_color_picker: ^0.0.1

Demo-Basic

Screenshot

https://github.com/user-attachments/assets/0ddda603-7d17-4e48-aae0-1438765dd77d

Basic Example

Color currentColor = Colors.blueAccent;
CameraColorPicker(
                currentColor: currentColor,
                onColorChanged: (Color color) {
                  currentColor = color;
                  setState(() {});
                },
              ),

##Demo-2

Screenshot

Example-2 (Use the child argument to change the appearance of the button)

Color currentColor = Colors.blueAccent;
 CameraColorPicker(
                currentColor: currentColor,
                onColorChanged: (Color color) {
                  currentColor = color;
                  setState(() {});
                },
              child: Container(
                  child: Icon(
                    Icons.camera_alt,
                    color: currentColor,
                    size: 66,
                  ),
                ),