Any way to use bindings with TabController? #1917
elemental21
started this conversation in
Show and tell
Replies: 1 comment
-
I came up with this and it seems to work. Does anyone see any issues with this code? Is there a better way to hook into the tab changes? Thanks for any input
Here's the view code:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project where I'm making use of the GetX CLI to generate pages. It automatically creates bindings and named routing. I was curious if it was possible to make use of the binding classes when navigating with a TabController. I've created a tab state class based on the accepted answer here: https://stackoverflow.com/questions/63924491/how-to-build-a-tabview-using-flutter-getx. So is there any way to run those binding "puts" when a tab change is happening?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions