FLUTTER ECOSYSTEM

tkortekaas/pinch_zoom

फ्लटर के नए इंटरैक्टिव व्यूवर पर आधारित एक विजेट जो छवि पिन्च ज़ूम करता है, और जब छोड़ा जाता है तो अपनी प्रारंभिक आकार और स्थिति में वापस आता है।

pinch_zoom प्रोजेक्ट कवर
Stars
38
Forks
12
अंतिम पुश (UTC)
4 अप्रैल 2025
प्रोजेक्ट स्थिति
सक्रिय
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');},
),