FLUTTER ECOSYSTEM

tkortekaas/pinch_zoom

Flutter의 새로운 Interactive Viewer를 기반으로 한 위젯으로, 이미지의 핀치 줌을 가능하게 하며 해제 시 초기 크기와 위치로 돌아갑니다.

pinch_zoom 프로젝트 이미지
Stars
38
Forks
12
최근 푸시(UTC)
2025. 4. 4.
프로젝트 상태
활성
Teun Kortekaas GitHub avatar
언어DartSwiftKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

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

원본 README

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

README 펼치기 / 접기

pinch_zoom

A widget based on Flutter's Interactive Viewer that makes picture pinch zoom, and return to its initial size and position when released.

This package offers Instagram based pinch zooming that feels more responsive than other similar packages.

The package is designed for zooming in on images; however, it can also be used to zoom in on a video.

Example one Example two

Installation

Add this to your pubspec.yaml dependencies:

pinch_zoom: ^2.0.1

How to use

Add the widget to your app like this (It automatically takes the size of the image you pass to it):

PinchZoom(
    child: Image.network('https://placecats.com/640/360'),
    maxScale: 2.5,
    onZoomStart: (){print('Start zooming');},
    onZoomEnd: (){print('Stop zooming');},
),