eye_dropper 0.0.2
eye_dropper: ^0.0.2 copied to clipboard
Pick colors from your application anywhere easily and conveniently
eye_dropper #
Pick colors from your application anywhere easily and
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