Closed pascalf22 closed 5 years ago
Hi @pascalf22
I got what you mean, actually, the animations on flutter will lag at the first time the app runs at debug (dev) mode, so you don't see any the transition at this time (both your code and my code have encountered).
The navigation with transition is an animation, so it stuck this issue.
It happens when the second page has a lot of UI need to render, it does not depend on has IntroSlider or not, just depend on how many views need to render (and IntroSlider in this case, actually has many views) so it causes the lag issue.
How to solve
Set timeDilation at second page with value larger than 1 (1.01 still fine).
Or build release to apk and re-test, the transition will work (it still has a little laggy, but it works and you can see the transition)
Link reference https://stackoverflow.com/questions/53774745/flutter-animation-is-not-smooth-at-first-time-render https://github.com/flutter/flutter/issues/31059
Anyway, feel free to keep discussing in this thread, and please don't create the new same issue because it makes others difficult to follow
Hello @duytq94 !
Ho thanks a lot ! i'm happy to read it !! I will test it soon in the next day!
Thanks a lot for your explanation and for your code !! I'll try it soon !
Have a great day !
Thanks again :)
Pascal
Hello @duytq94
Thanks for your solution, it work perfectly for timeDilation = 1.5
Thanks again !
Pascal
Hello again @duytq94
I'm sorry about it, but transition doesn't work... if my second page has a IntroSlider
I will give you more info :
Page 1 (splash screen)
Page #2 Intro-Slider:
So as i explained, is i remove the 'new IntroSlider(.....) the transition works.
I use for transition this package : https://pub.dev/packages/page_transition
I also remove the Container and Scaffold and only try the IntroSlider() in the Return (build)... still the same !!
Do you have any idea of why it's not working ofr me ?
Also, can you provide your code of page one and page 2... it will be nice !
Thank a lot !
Pascal