Skip to content

Animation duration fix#19

Merged
WieFel merged 3 commits intomasterfrom
feature/animation_duration
May 23, 2020
Merged

Animation duration fix#19
WieFel merged 3 commits intomasterfrom
feature/animation_duration

Conversation

@WieFel
Copy link
Collaborator

@WieFel WieFel commented May 19, 2020

Replaced calls of controller.fling() with controller.animateTo() or controller.animateBack().
This way, animation duration + curve is now taken into account by backdrop.

The animation default curve is now set to easeInOut and the duration to 200ms (looks quite the same as before).

Fling uses its own constants for it (see https://stackoverflow.com/questions/45683716/how-to-slow-down-a-fling-animation-in-flutter), therefore the duration property wasn't working before.

Closes #4

@WieFel WieFel requested a review from daadu May 19, 2020 16:13
@WieFel WieFel merged commit bede7ae into master May 23, 2020
@daadu daadu deleted the feature/animation_duration branch May 26, 2020 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manipulating animation duration doesn't affect animation

1 participant