DRY implementation #114
momshaddinury
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
@dinurymomshad I'm not that familiar with riverpods, mostly use Provider. So I don't know if this would be possible in riverpods, but in most of my project we use a custom widget called ProviderWidget, this provides all the things necessary for that page like theme and viewmodel (which is the controller in our case). That widget would look something like this:
Are you thinking about something similar? Or do you mean something else with a BaseView. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
DRY development
In current implementation things like Theme provider, Network status checker are breaking DRY. Looking for suggestions to implement them using BaseView. The challenge here is that we need access to riverpod as well.
Beta Was this translation helpful? Give feedback.
All reactions