riverpod architecture/design pattern advice #1137
-
Hello, I have an app made with Overall I feel
Packages I am using with
Figure 1: This is my current folder structure.
Figure 2: Since I am using
I think this is okay overall but not really following any specifically named design pattern. Like Thanks for making this amazing package ❤️ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This is a bit weird. I don't see the purpose of this code. Maybe you wanted to do Other than that, your code looks alright. As for testing your code, I'd suggest looking at the testing cookbook or some of Riverpod's tests. |
Beta Was this translation helpful? Give feedback.
This is a bit weird. I don't see the purpose of this code. Maybe you wanted to do
state = AsyncError(...)
?Other than that, your code looks alright.
Riverpod is a pattern on its own. You're not using "Riverpod + ". Riverpod is the pattern, since it's fairly strict in what you can and can't do
As for testing your code, I'd suggest looking at the testing cookbook or some of Riverpod's tests.