transparent_tap 0.1.0
transparent_tap: ^0.1.0 copied to clipboard
A Flutter widget that lets taps pass through the transparent pixels of an image, so only the visible (opaque) part of it is tappable.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add transparent_tapThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
transparent_tap: ^0.1.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:transparent_tap/transparent_tap.dart';