I am currently using Consumer6<A,B,C,D,E,F>
with the library Provider
for my Flutter app, and I need to add a couple of ChangeNotifier
s more (G
,H
) for a hypothetical Consumer8<A,B,C,D,E,F,G,H>
but I just realised that the limit is actually 6. Is there anyway to workaround this limitation?
Asked
Active
Viewed 228 times
1

Randomize
- 8,651
- 18
- 78
- 133
-
2How about switching to riverpod ? – Md. Yeasin Sheikh Jul 23 '22 at 18:38
-
I had a quick look to it. Would it be a painful conversion? Syntax like looks similar – Randomize Jul 24 '22 at 04:09
-
Nope, It is similar, simple, easier and created by same auther. *Riverpod is inspired by Provider but solves some of it's key issues such as supporting multiple providers of the same type;* you can check [here](https://riverpod.dev/) – Md. Yeasin Sheikh Jul 24 '22 at 08:04
-
ok thank you, I have opened a new question here https://stackoverflow.com/questions/73097374/how-to-migrate-a-consumern-from-provider-to-riverpod-in-flutter as I have some doubts about how to do that migration – Randomize Jul 24 '22 at 10:31