pixel_color_picker 1.0.0 pixel_color_picker: ^1.0.0 copied to clipboard
A new Flutter package project.
pixel_color_picker #
A widget that extracts colors from its childs.
This package lets you basically extract colors from everything in your screen.
Getting Started #
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
...
pixel_color_picker:
Import the package in your code:
import 'package:local_hero/local_hero.dart';
Usage #
Wrap the target widget inside PixelColorPicker
:
PixelColorPicker(
child: Image.asset('image.png'),
onChanged: (color) {
setState(() {
this.color = color;
});
}
);
And whenever the user taps the child, the onChanged
event will give the color of the pixel on that position.
It's still under development, but you can already play with it.
Contributions #
Any contribution to this project is welcome.
If you find a bug or want a feature, but don't know how to fix/implement it, please fill an [issue][issue]. If you fixed a bug or implemented a feature, please send a [pull request][pr].