Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1 KB

README.md

File metadata and controls

13 lines (8 loc) · 1 KB

flutter_gallery_demo

Demonstration of coupling InteractiveViewer and PagaView in Flutter.

It can achieve a behaviour which the user's single tap actions are recognized as pan action on a zoomed in page. Once the zoomed in page reached its boundaries, the users can swipe to other pages by a horizontal swipe.

Limitations

  1. The action must stop once at the page boundary before it can swipe to other pages. Beyond the stop, any successive horizontal swipe is recognized as a swipe to other pages but not a pan inside the page until the user cancels the swipe. If the successive action beyond the stop is a gesture zoom while keeping the page at the boundary, the next horizontal swipe is still recognized as a swipe to other pages.
  2. If the user cancelled the swipe, there is a 'deadlock' period that the action can be re-recognized as a pan inside the page instead of a horizontal swipe to other pages.

Demo

demo.mp4