Replies: 1 comment
-
Instead of
|
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 Flutter UI that includes a very complex custom list/grid widget that I want to use in multiple different app situations.
For example, I have four different pages where I want to use this complex UI widget. Each of these four pages (e.g. Page1, Page2 etc) has their own RiverPod StateNotifierProvider (e.g. PageProvider1, PageProvider2 etc)
Inside the complex custom list/grid I want to:
But the problem is how do I pass a reference to the custom list/grid about what RiverPod provider to call?
What I am trying to avoid is a set of 'switch' statements in the UI widget, like:
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions