JavaShuo
栏目
标签
flutter BlocProvider context that does not contain a Cubit of type #### 错误
时间 2021-01-07
标签
flutter
随笔
繁體版
原文
原文链接
BlocProvider.of() called with a context that does not contain a Cubit of type ####. 从字面翻译 可以看到 Cubit 没有context 上下文调用BlocProvider.of() 官方解决 之后看文档发现少了个返回值。加个return 就好了 如果还是不行的话,可以尝试在子类的外面在套个Builder 这样的话
>>阅读原文<<
相关文章
1.
Flutter :MediaQuery.of() called with a context that does not contain a MediaQuery 报错
2.
flutter Material示例与MediaQuery.of(context) called with a context that does not contain a MediaQuery.
3.
MediaQuery.of() called with a context that does not contain a MediaQuery.
4.
editor does not contain a main type
5.
editor does not contain a main type Maven项目
6.
eclipse 中 editor does not contain a main type错误
7.
Flutter Navigator operation requested with a context that does not include a Navigat
8.
‘string’ does not name a type 错误解析
9.
** a bean of type ‘javax.servlet.Filter‘ that could not be found
10.
xcodebuild does not contain a scheme named
更多相关文章...
•
PHP PDO 错误与错误处理
-
PHP参考手册
•
错误处理
-
RUST 教程
•
Kotlin学习(一)基本语法
•
Tomcat学习笔记(史上最全tomcat学习笔记)
相关标签/搜索
contain
context
错误
type
flutter
a'+'a
does&nb
逻辑错误
无错误
PHP 7 新特性
Thymeleaf 教程
Spring教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
子类对象实例化全过程
2.
【Unity2DMobileGame_PirateBomb09】—— 设置基本敌人
3.
SSIS安装以及安装好找不到商业智能各种坑
4.
关于 win10 安装好的字体为什么不能用 WebStrom找不到自己的字体 IDE找不到自己字体 vs找不到自己字体 等问题
5.
2019版本mac电脑pr安装教程
6.
使用JacpFX和JavaFX2构建富客户端
7.
MySQL用户管理
8.
Unity区域光(Area Light) 看不见光线
9.
Java对象定位
10.
2019-9-2-用自动机的思想说明光速
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Flutter :MediaQuery.of() called with a context that does not contain a MediaQuery 报错
2.
flutter Material示例与MediaQuery.of(context) called with a context that does not contain a MediaQuery.
3.
MediaQuery.of() called with a context that does not contain a MediaQuery.
4.
editor does not contain a main type
5.
editor does not contain a main type Maven项目
6.
eclipse 中 editor does not contain a main type错误
7.
Flutter Navigator operation requested with a context that does not include a Navigat
8.
‘string’ does not name a type 错误解析
9.
** a bean of type ‘javax.servlet.Filter‘ that could not be found
10.
xcodebuild does not contain a scheme named
>>更多相关文章<<