pixel_color_picker 1.0.0 copy "pixel_color_picker: ^1.0.0" to clipboard
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.

Screenshot

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].

5
likes
110
points
53
downloads

Publisher

unverified uploader

Weekly Downloads

2024.07.04 - 2025.01.16

A new Flutter package project.

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter, image

More

Packages that depend on pixel_color_picker