Skip to content

dev-ltk/flutter_gallery_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages