v1.1.1expand_tap_area
Erweitern Sie manuell den Berührungsbereich eines Widgets, ohne dessen Größe oder Layout zu ändern. Ähnlich wie bei hitTest in der iOS-Entwicklung.
60Likes 31.50030-Tage-Downloads140Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Erweitern Sie manuell den Berührungsbereich eines Widgets, ohne dessen Größe oder Layout zu ändern. Ähnlich wie bei hitTest in der iOS-Entwicklung.
{"sdk":"flutter"}{"sdk":"flutter"}Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
Manually expand the tap area of a widget without changing its size or layout. Similar with the hitTest in iOS development.
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.
Inspired by issue
ExpandTapWidget(
onTap: () {},
tapPadding: EdgeInsets.all(25.0),
child: smallWidget(),
),
| https://raw.githubusercontent.com/malikwang/expand_tap_area/master/images/1.png | https://raw.githubusercontent.com/malikwang/expand_tap_area/master/images/2.png |