exprollable_page_view
exprollable_page_view copied to clipboard
How to tap inset to dismiss and tap region to expand?
Is it possible to
- dismiss by tapping the top inset
- enlarge(expand) the card by tapping the card
using ModalExprollableRouteBuilder.
Navigator.of(context).push( ModalExprollableRouteBuilder( pageBuilder: (context, _, __) => ExprollablePageView(...), ), );
I try to set barrierDismissible to true, but not working. ModalExprollableRouteBuilder( barrierDismissible: true, pageBuilder: (context, _, __) => const CustomView(),),
Thanks.
enlarge(expand) the card by tapping the card
You can use ExprollablePageController. animateViewportInsetTo
to enlarge your card with animation. An example code is available here.
I try to set barrierDismissible to true, but not working.
Can you post a minimal code to reproduce your problem? Since barrierDismissible
is enabled by default, the dialog should close if you touch the barrier without explicitly setting it to true
.