Extension builder to make riverpod providers for floor DAOs.
Add to your dev_dependencies
section.
Note: this assumes you are using floor
and riverpod_flutter
. No new dependencies are required, since you'll have them from those dependencies (ex: build_runner
)
- Add to your
pubspec.yaml
in thedev_dependncies
section - Use Floor annotations as normal
- Run build_runner as normal
- Use the providers from the generated
MyDao$Providers
class in the database part file
- Drop-in addition to
Floor
andRiverpod
TODO
- Revisit naming
- Tests