본문 바로가기
Flutter(dart)

flutter inkwell gesturedetector 이벤트

by janeparker 2022. 11. 16.
728x90
반응형

onTab 시리즈

사용자는 손가락 끝으로 화면을 짧게 터치했습니다.


  • onTapDown— 사용자가 화면과 접촉할 때 트리거되며 탭일 수 있습니다.
  • onTapUp— 사용자가 화면과의 접촉을 중지할 때 트리거됨
  • onTap— 사용자가 화면을 짧게 터치할 때 트리거됨
  • onTapCancelonTapDown— 발생한 이벤트 가 탭이 아닌 경우 트리거 됨

 

탭 제스처의 가능한 응용 프로그램은 다음과 같습니다.

  1. 고르다
  2. 취소
  3. 제출하다
  • onTapDown — triggered when user makes contact with screen, might be a tap
  • onTapUp — triggered when user stops making contact with the screen
  • onTap — triggered when user briefly touches the screen
  • onTapCancel — triggered when the event that fired onTapDown is not a tap
Possible applications for the tap gesture include:
  1. Select
  2. Cancel
  3. Submit

 

더블 탭

사용자가 같은 위치에서 화면을 빠르게 두 번 탭했습니다.


  • onDoubleTapDown— 사용자가 화면과 접촉할 때 트리거되며 두 번 탭할 수 있습니다.
  • onDoubleTap— 사용자가 같은 위치에서 화면을 빠르게 연속으로 두 번 탭하면 트리거됩니다.
  • onDoubleTapCancelonDoubleTapDown— 실행된 이벤트 가 두 번 탭이 아닌 경우 트리거 됨

두 번 누르기 제스처의 가능한 응용 프로그램은 다음과 같습니다.

  1. 좋아요/싫어요
  2. 화면 켜기/끄기
  3. 이미지 크기 조정
  • onDoubleTapDown — triggered when user makes contact with screen, might be a double tap
  • onDoubleTap — triggered when user taps the screen at the same location twice in quick succession
  • onDoubleTapCancel — triggered when the event that fired onDoubleTapDown is not a double tap
Possible applications for the double-tap gesture include:
  1. Like/dislike
  2. Screen on/off
  3. Resize an image

 

 

 

길게 누르기

사용자가 장시간 같은 위치에서 화면을 접촉했습니다.


  • onLongPressDown— 사용자가 화면과 접촉할 때 트리거되며 길게 누를 수 있습니다.
  • onLongPressStart— 길게 누름의 시작이 감지되었을 때 트리거됨
  • onLongPress— 길게 누름이 감지되면 트리거됨
  • onLongPressMoveUpdate— 길게 누름이 감지되고 사용자가 손가락을 드래그하여 움직였을 때 트리거됨
  • onLongPressEnd— 길게 누름의 끝이 감지되었을 때 트리거됨
  • onLongPressUp— 길게 누름의 끝이 감지되면 트리거됩니다. 길게 누르면 연락처가 제거되었습니다.
  • onLongPressCancelonLongPressDown— 실행된 이벤트 가 길게 누르지 않을 때 트리거됨

길게 누르기 제스처의 가능한 응용 프로그램은 다음과 같습니다.

  1. 옵션 더보기
  2. 아이콘 이동
  • onLongPressDown — triggered when user makes contact with screen, might be a long press
  • onLongPressStart — triggered when the start of a long press has been detected
  • onLongPress — triggered when a long press has been detected
  • onLongPressMoveUpdate — triggered when long press has been detected and user has drag-moved finger
  • onLongPressEnd — triggered when the end of a long press has been detected
  • onLongPressUp — triggered when the end of a long press has been detected; contact has been removed after long press
  • onLongPressCancel — triggered when the event that fired onLongPressDown is not a long press
Possible applications for the long-press gesture include:
  1. Show more options
  2. Move an icon
728x90
반응형