当前位置:网站首页>(flutter2) as import old project error: inheritfromwidgetofexacttype
(flutter2) as import old project error: inheritfromwidgetofexacttype
2022-07-06 22:56:00 【Xiaobai is more than that】
An error is as follows :
Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
resolvent :
1、 Click the blue part with the mouse , Automatically jump to the wrong place .
2、( reason ) Use flutter2
after ,inheritFromWidgetOfExactType
Methods are no longer used , In its place dependOnInheritedWidgetOfExactType
.
// final widget = context.inheritFromWidgetOfExactType(_InheritedProviders);
final widget = context.dependOnInheritedWidgetOfExactType(aspect: _InheritedProviders);
This reference article is as follows :
Use flutter2 after ,inheritFromWidgetOfExactType Wrong handling
The following reference has some problems , But it still helps , ha-ha
Flutter Upgrade update 2.0 Post common error reporting processing
边栏推荐
- mysql查看表结构的三种方法总结
- three. JS gorgeous bubble effect
- Aardio - integrate variable values into a string of text through variable names
- 金融人士必读书籍系列之六:权益投资(基于cfa考试内容大纲和框架)
- 机试刷题1
- Jafka来源分析——Processor
- DockerMySQL无法被宿主机访问的问题解决
- Return keyword
- ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics
- Traversal of a tree in first order, middle order, and then order
猜你喜欢
Motion capture for snake motion analysis and snake robot development
让我们,从头到尾,通透网络I/O模型
Improving Multimodal Accuracy Through Modality Pre-training and Attention
Aardio - does not declare the method of directly passing float values
dockermysql修改root账号密码并赋予权限
Let's see through the network i/o model from beginning to end
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
监控界的最强王者,没有之一!
#DAYU200体验官# 在DAYU200运行基于ArkUI-eTS的智能晾晒系统页面
树的先序中序后序遍历
随机推荐
uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)
Interview question: AOF rewriting mechanism, redis interview must ask!!!
How to confirm the storage mode of the current system by program?
Plafond du tutoriel MySQL, bien collecté, regardez lentement
Aardio - does not declare the method of directly passing float values
让我们,从头到尾,通透网络I/O模型
Project duplicate template
Cloud native technology container knowledge points
MySQL authentication bypass vulnerability (cve-2012-2122)
POJ 1258 Agri-Net
华为云GaussDB(for Redis)揭秘第21期:使用高斯Redis实现二级索引
Is "applet container technology" a gimmick or a new outlet?
Aardio - Method of batch processing attributes and callback functions when encapsulating Libraries
How to choose indoor LED display? These five considerations must be taken into account
【LeetCode】19、 删除链表的倒数第 N 个结点
2014阿里巴巴web前实习生项目分析(1)
memcached
Aardio - integrate variable values into a string of text through variable names
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
Signed and unsigned keywords