New to flare and flutter so I might be using it wrong. But what I'm trying to do is create a simple Stateless widget that renders a background with a flare animation with a callback on completing animation. However, once the callback is set it will get called even when instantiated with a new callback (or null).
The animation parameter does what's expected when called with a new animation string, but some reason the callback still references the previous one even if loggedIn is true. It completely ignored my doSomethingElse callback and invokes showLoginCard.
Hi,
New to flare and flutter so I might be using it wrong. But what I'm trying to do is create a simple Stateless widget that renders a background with a flare animation with a callback on completing animation. However, once the callback is set it will get called even when instantiated with a new callback (or null).
And from a stateful widget I'm instantiating it like so
LoginHeader(loggedIn ? doSomethingElse : showLoginCard, animation)
The animation parameter does what's expected when called with a new animation string, but some reason the callback still references the previous one even if loggedIn is true. It completely ignored my doSomethingElse callback and invokes showLoginCard.
Any help would be really appreciated.