【发布时间】:2021-06-10 18:21:21
【问题描述】:
我正在尝试路由我的 TaharatPage,但我遇到了此类错误
在构建 TaharatGeneralPage(dirty) 时抛出了以下断言: 使用不包含 TaharatBloc 类型的 Bloc 的上下文调用 BlocProvider.of()。
No ancestor could be found starting from the context that was passed to BlocProvider.of<TaharatBloc>().
【问题讨论】: