You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in my project have many providers (>100) organized into folders. Each one uses Riverpod generator and currently places the generated file in the same folder as the provider. My folder structure is as follows:
Instead of placing the file in the same folder as the provider, I would like to place it in lib/providers/generated. Ideally, the generated folder would have the same folder structure as the providers folder, like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What I want
Hi, in my project have many providers (>100) organized into folders. Each one uses Riverpod generator and currently places the generated file in the same folder as the provider. My folder structure is as follows:
Instead of placing the file in the same folder as the provider, I would like to place it in
lib/providers/generated
. Ideally, the generated folder would have the same folder structure as the providers folder, like this:But it would also be acceptable if all of the generated files were placed in the generated folder directly.
What I've tried
Using
provider_1.dart
as an example, I've tried this:With this in my
build.yaml
file:This works, however, I would like to use an absolute path in the part directive, instead of a relative one. Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions