// PAGE class MyPage extends StatelessWidget { const MyPage({super.key}); static String path = 'my'; @override Widget build(BuildContext context) { return Scaffold( // Inject Bloc(s) body: BlocProvider( create: (context) => MyBloc( dependency: context.read<Dependency>(), )..add(MyDataRequested()), // SWITCHER // MySwitcher, and all its nested child Widgets, will have access to MyBloc child: const MySwitcher(), ), ); } }