Can you use BlocProvider inside a list? yes, you can. You can inject your bloc inside a list using BlocProvider.
Here we have buildPage() widget, and it returns a screen or a widget based on the given parameter index.
Inside the list you can see that we have two BlocProviders injecting blocs like SearchBlocs and MessageCubits.
In general this BlocProviders in a list is feed to BottomNavigationBar(). You may use for other purpose too.
Since you click on a BottomNavigationBar() and get the index based on the tap and pass the index to above method.