expand_tap_area 0.0.1 copy "expand_tap_area: ^0.0.1" to clipboard
expand_tap_area: ^0.0.1 copied to clipboard

outdated

Manually expand the tap area of a widget without changing its size or layout. Similar with the hitTest in iOS development.

ExpandTapArea #

Manually expand the tap area of a widget without changing its size or layout. Similar with the hitTest in iOS development.

Context #

In the Human Interface Guidelines, Apple recommends a minimum target size of 44 x 44 px. In the Android Material Design Guidelines, it’s suggested that touch targets should be at least 48 x 48 dp.

Usage #

ExpandTapWidget(
  onTap: () {},
  tapPadding: EdgeInsets.all(25.0),
  child: smallWidget(),
),

More details see Demo.

Attention #

  1. ExpandTapWidget can be wrapped inside/outside GestureDetector: To avoid the conflict of gesture, it is better to apply on the innermost/smallest widget.
  2. The expanded area wouldn't exceed the size of the Parent Box.
56
likes
40
points
26.2k
downloads

Publisher

verified publishermalikwang.com

Weekly Downloads

Manually expand the tap area of a widget without changing its size or layout. Similar with the hitTest in iOS development.

Repository (GitHub)

License

MIT (license)

Dependencies

flutter

More

Packages that depend on expand_tap_area