Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class MyWidget extends StatelessWidget {
  2. @override
  3. Widget build(BuildContext context) {
  4. return BlocProvider<BlocA>(
  5. builder: (BuildContext context) => BlocA(),
  6. child: BlocProvider<BlocB>(
  7. builder: (BuildContext context) => BlocB(),
  8. child: BlocProvider<BlocC>(
  9. builder: (BuildContext context) => BlocC(),
  10. child: ChildA(),
  11. )
  12. ),
  13. );
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement