Great UI and work!
Closed this issue · 0 comments
Hi Mitesh77,
Thank you for the great work and publishing it. I've learned a lot from your work.
Meanwhile, I have 2 questions.
Question1:
The Tween offsets in all views belonging to Introduction animation seems to be relative. Am I right?
To be more specific, I don't understand why _welcomeImageAnimation starts with 4, 0 while _firstHalfAnimation is 1, 0.
(Those are in welcome_view.dart)
I guessed [1.0 to 0.0] for both variables would work fine because it meant both animations started out of the screen and came into the screen. But when I tested it, it didn't work as I thought.
_firstHalfAnimation = Tween<Offset>(begin: Offset(1, 0), end: Offset(0, 0))
_welcomeImageAnimation = Tween<Offset>(begin: Offset(4, 0), end: Offset(0, 0))
Question2:
And when I changed some animations as below, it didn't work, either.
final _firstHalfAnimation =
Tween<Offset>(begin: Offset(1, 0), end: Offset(0, 0)).animate(
CurvedAnimation(
parent: animationController,
curve: Curves.fastOutSlowIn,
// curve: Interval(
// 0.6,
// 0.8,
// curve: Curves.fastOutSlowIn,
// ),
),
);
Any comment or reference will be highly appreciated.
Thank you.