You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Any help would be really appreciated.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: