ez_animation icon indicating copy to clipboard operation
ez_animation copied to clipboard

Use ezanimation for Transitions

Open melwinlobo18 opened this issue 5 years ago • 1 comments

Thanks for this awesome package.

Can we use this for Transitions too?

EzAnimation ezAnimation = EzAnimation.tween(
        Tween(begin: 0.0, end: 1.0), Duration(seconds: 2),
        context: context);

FadeTransition(
            opacity: ezAnimation, //Error
            child: Container()
)

When I try this I get Type Ezanimation can't be assigned to parameter type Animation<double>. Is this not possible using Ezanimation package or am I doing something wrong?

melwinlobo18 avatar Jul 06 '20 05:07 melwinlobo18

This has a couple of solutions, I'll test a bit more and push out the best in the next version. Thanks for the issue!

d3xvn avatar Jul 06 '20 08:07 d3xvn