0 purchases
camera color picker
camera_color_picker #
A Flutter widget to pick colors using the camera.
Installation #
First, add camera_color_picker as a dependency in your pubspec.yaml file.
camera_color_picker: ^0.0.1
copied to clipboard
Basic Example #
Color currentColor = Colors.blueAccent;
copied to clipboard
CameraColorPicker(
currentColor: currentColor,
onColorChanged: (Color color) {
currentColor = color;
setState(() {});
},
),
copied to clipboard
Example-2 (Use the child argument to change the appearance of the button) #
Color currentColor = Colors.blueAccent;
copied to clipboard
CameraColorPicker(
currentColor: currentColor,
onColorChanged: (Color color) {
currentColor = color;
setState(() {});
},
child: Icon(
Icons.icecream_sharp,
color: currentColor,
),
),
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.