pixel_color_picker

A widget that extracts colors from its childs.

This package lets you basically extract colors from everything in your screen.

pixel_color_picker

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.

GitHub

https://github.com/e200/pixel_color_picker