-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
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
Set page transition animation duration #229
Comments
Hi! I think there is a misunderstanding here. /// The I would suggest you to achieve this with WoltModalSheetAnimationStyle example from the ReadMe: WoltModalSheetThemeData(
animationStyle: WoltModalSheetAnimationStyle(
paginationAnimationStyle: WoltModalSheetPaginationAnimationStyle(
mainContentIncomingOpacityCurve: const Interval(
150 / 350,
350 / 350,
curve: Curves.linear,
),
modalSheetHeightTransitionCurve: const Interval(
0 / 350,
300 / 350,
curve: Curves.fastOutSlowIn,
),
incomingSabOpacityCurve: const Interval(
100 / 350,
300 / 350,
curve: Curves.linear,
),
// Define additional pagination animation styles as needed.
),
scrollAnimationStyle: WoltModalSheetScrollAnimationStyle(
heroImageScaleStart: 1.0,
heroImageScaleEnd: 0.9,
topBarTitleTranslationYInPixels: 8.0,
topBarTranslationYInPixels: 4.0,
// Define additional scroll animation styles as needed.
),
),
), |
@ulusoyca I thought the same, but when setting the Also, I tried setting the |
Found out the root cause. Working on the fix 👍🏻 Thanks for reporting 🙇🏻 |
Just to confirm, when you mention the fix, do you mean a fix for being able to control the animation duration only for modal open/close or also for transitions between multi-page modals? |
You can check my PR here and add your comment: |
Bug report
Describe the bug
In the documentation is a video, where you can clearly see a page animation transition, where the old page content fades out and the new page fades in.
I implemented a simple
WoltModalSheet
, but that animation is too fast for me. The fade animation is not even really visible, so I tried setting theanimationDuration
, but no matter to what I set it, nothing changes.Steps to reproduce
Steps to reproduce the behavior:
transitionDuration
inWoltModalSheet
showNext
andshowPrevious
Expected behavior
I would expect that the page animation is as long as I set it inside
transitionDuration
.Additional Context
I would like to achieve the effect as mentioned in the doc under Motion Animation
The text was updated successfully, but these errors were encountered: