-
Notifications
You must be signed in to change notification settings - Fork 33
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
Controlled Widget #17
Comments
I agree, many users would like to have a controller. I will try to take some time to add it in a future version. |
I don't mean a controller, I mean a property that will react to changes reactively |
But doesn't a controller would do this job? In Flutter controllers aim to control behaviour of the widget no? |
Yes if that's easier to implement. But controlling the widget with a property through setState(), is the right way for a reactive framework, cause maybe the developer is using a global state container like redux, and doesn't want to expose the entire controller object, which is tightly coupled with the widget itself. Actually TextField should be working like that. |
controller still not added? i need when user change page from drawer,bottombar also changed,so i think adding controller to this package would be good option |
it would be much better if it could be refactored into a controlled widget with a property like currentIndex, where setState() would trigger the animation etc. and not internally through tap
The text was updated successfully, but these errors were encountered: