Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It should be stateless #3

Open
ghost opened this issue Dec 26, 2019 · 5 comments
Open

It should be stateless #3

ghost opened this issue Dec 26, 2019 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 26, 2019

Since this is a generic widget, it should be stateless.

@georgiani
Copy link

Apparently you can't add SingleTickerProviderStateMixin to StatelessWidget.
image

@ghost
Copy link
Author

ghost commented May 15, 2020

Dont

@georgiani
Copy link

It's needed for the animation to work. Is there any alternative?

@ghost
Copy link
Author

ghost commented May 15, 2020

Sucks that Animation needs it. But there must be another way. This is a flaw.

@georgiani
Copy link

It is an explicit animation and it works like that, because the animation should be notified at every tick of the Ticker that is mixed with the widget. Another way I think it could work is by using one of the Implicit Animations widget, such as AnimatedAlign and using a scoped model or something else. But there is another problem. If you try an animatedAlign it won't seem animated because the Text widgets just appear out of nowhere, so.. to do that I would have to rewrite nearly everything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant