BlocProvider.of() called with a context that does not contain a Bloc/Cubit of type MyBloc

前端 未结 0 1381
礼貌的吻别
礼貌的吻别 2021-01-22 06:18

I tried to add MyBloc using BlocProvider, but I encountered context issue.

class BlocAddPage extends StatefulWidget {
      BlocAddPage({Key key}) : super(key: ke         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题