Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. class MyWidget extends StatelessWidget {
  2. @override
  3. Widget build(BuildContext context) {
  4. return MultiRepositoryProvider(
  5. providers: [
  6. RepositoryProvider<RepositoryA>(
  7. builder: (context) => RepositoryA(),
  8. ),
  9. RepositoryProvider<RepositoryB>(
  10. builder: (context) => RepositoryB(),
  11. ),
  12. RepositoryProvider<RepositoryC>(
  13. builder: (context) => RepositoryC(),
  14. ),
  15. ],
  16. child: ChildA(),
  17. );
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement