You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I fond that AlwaysFillViewportPageView widget can be replaced with the original PageView with OverflowBox as follows. It's much more simpler than the current implementation and doesn't require copying and pasting the original source code of PageView. It should be also possible to rewrite the logic of overshoot effect using OverflowBox.
Basically it works, but there is a hit test problem where even if the size of an overflowbox is larger than its parent, the clickable area of the box is clipped at the parent's boundary. This is an issue when creating the box that overflows the page boundary for the overshoot effect.
I fond that
AlwaysFillViewportPageView
widget can be replaced with the originalPageView
withOverflowBox
as follows. It's much more simpler than the current implementation and doesn't require copying and pasting the original source code of PageView. It should be also possible to rewrite the logic of overshoot effect usingOverflowBox
.https://api.flutter.dev/flutter/widgets/OverflowBox-class.html
The result:
The text was updated successfully, but these errors were encountered: