pixel_color_image 1.1.0 copy "pixel_color_image: ^1.1.0" to clipboard
pixel_color_image: ^1.1.0 copied to clipboard

outdated

Pick the pixel color of a image. Super simple and Easy to use.

Pixel Color Image #

https://pub.dev/packages/pixel_color_image



Usage #

1. Create widget (asset image) #

  • use asset image
const pixelColorImage = PixelColor.assetImage(
  path: 'images/xxx.png',
  onHover: onHover,
  onTap: onTap,
);
  • use url image
const pixelColorImage = PixelColor.networkImage(
  url: 'https://example.com/xxx.png',
  onHover: onHover,
  onTap: onTap,
);

2. these functions are called #

/// Called while Hoverring
void onHover(int x, int y, Color color) async {
  debugPrint('Hover x: $x, y: $y, color: $color');
}

/// Called when tap
void onTap(int x, int y, Color color) async {
  debugPrint('Tap x: $x, y: $y, color: $color');
}

🎉 any issues, requests, contributions are welcomed!


8
likes
0
pub points
61%
popularity

Publisher

verified publisherflut.rbdog.biz

Pick the pixel color of a image. Super simple and Easy to use.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, image

More

Packages that depend on pixel_color_image