FLUTTER ECOSYSTEM

malikwang/expand_tap_area

크기나 레이아웃을 변경하지 않고 위젯의 탭 영역을 수동으로 확장합니다. iOS 개발에서의 hitTest와 유사합니다.

expand_tap_area 프로젝트 이미지
Stars
38
Forks
6
최근 푸시(UTC)
2024. 5. 1.
프로젝트 상태
활성
malikwang GitHub avatar
GITHUB User

malikwang ↗

언어DartObjective-CRubyJavaSwiftKotlin

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

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.

Inspired by issue

Usage

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

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 boundary of the Parent Box. You can set debugPaintExpandAreaEnabled = true to display the actual expanded area.