Mar 26, 2023
Hi, i think your bloc good practice example is incorrect : you should avoid instantiating MyBloc everytime you build ypur Stateless widget. Therefore you should instantiate it in create function parameter of BlocProvider, to let bloc library manage the lifecycle of your bloc 😉.