We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If we want to add an additional snap position of the viewport offset, we would typically write code as follows, but it's a bit verbose.
const peekOffset = ViewportOffset.fractional(0.5); controller = ExprollablePageController( initialViewportOffset: peekOffset, maxViewportOffset: peekOffset, snapViewportOffsets: [ ViewportOffset.expanded, ViewportOffset.shrunk, peekOffset, ], );
It would be nice to have a factory constructor of ExprollablePageController for simplicity like:
ExprollablePageController
const peekOffset = ViewportOffset.fractional(0.5); controller = ExprollablePageController.withAdditionalSnapOffsets( initialViewportOffset: peekOffset, additionalSnapViewportOffsets: [ peekOffset ], );
The text was updated successfully, but these errors were encountered:
add convenience constructor (proposed in #21)
369cec8
Close this issue as it has been implemented and will be included in the next release.
Sorry, something went wrong.
fujidaiti
No branches or pull requests
If we want to add an additional snap position of the viewport offset, we would typically write code as follows, but it's a bit verbose.
It would be nice to have a factory constructor of
ExprollablePageController
for simplicity like:The text was updated successfully, but these errors were encountered: