expand_tap_area 1.1.1 expand_tap_area: ^1.1.1 copied to clipboard
Manually expand the tap area of a widget without changing its size or layout. Similar with the hitTest in iOS development.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add expand_tap_area
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
expand_tap_area: ^1.1.1
Alternatively, 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:expand_tap_area/expand_tap_area.dart';