Last updated:
0 purchases
eye dropper
eye_dropper #
Pick colors from your application anywhere easily and
Web Example
Features #
Pick color from your application screen
How to use it #
Add the dependency:
$ flutter pub add eye_dropper
copied to clipboard
Import the package:
import 'package:eye_dropper/eye_dropper.dart';
copied to clipboard
Wrap MaterialApp.builder or WidgetsApp.builder with EyeDropper:
MaterialApp(
home: const MyHomePage(title: 'Flutter Color Picker Demo'),
builder: (context, child) => EyeDropper(child: child!),
),
copied to clipboard
Anywhere you want to use, call EyeDropper.enableEyeDropper() method:
EyeDropper.enableEyeDropper(context, (color) {
// handle the action you want after getting the color
});
copied to clipboard
Screenshots #
Android and Ios
Web
For testing in web, click here
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.