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.
安装cuda+cuDNN
2.
GitHub的使用说明
3.
phpDocumentor使用教程【安装PHPDocumentor】
4.
yarn run build报错Component is not found in path “npm/taro-ui/dist/weapp/components/rate/index“
5.
精讲Haproxy搭建Web集群
6.
安全测试基础之MySQL
7.
C/C++编程笔记:C语言中的复杂声明分析,用实例带你完全读懂
8.
Python3教程(1)----搭建Python环境
9.
李宏毅机器学习课程笔记2:Classification、Logistic Regression、Brief Introduction of Deep Learning
10.
阿里云ECS配置速记
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
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
>>更多相关文章<<