Last updated:
0 purchases
pixel color picker
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:
copied to clipboard
Import the package in your code:
import 'package:local_hero/local_hero.dart';
copied to clipboard
Usage #
Wrap the target widget inside PixelColorPicker:
PixelColorPicker(
child: Image.asset('image.png'),
onChanged: (color) {
setState(() {
this.color = color;
});
}
);
copied to clipboard
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].
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.