当前位置:网站首页>(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
边栏推荐
- Some suggestions for foreign lead2022 in the second half of the year
- Interview question: AOF rewriting mechanism, redis interview must ask!!!
- 【编译原理】做了一半的LR(0)分析器
- Slide the uniapp to a certain height and fix an element to the top effect demo (organize)
- poj 1094 Sorting It All Out (拓扑排序)
- Dayu200 experience officer homepage AITO video & Canvas drawing dashboard (ETS)
- MySQL教程的天花板,收藏好,慢慢看
- How to achieve text animation effect
- 专为决策树打造,新加坡国立大学&清华大学联合提出快速安全的联邦学习新系统
- How to use flexible arrays?
猜你喜欢

Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)

Case recommendation: An Qing works with partners to ensure that the "smart court" is more efficient

室内LED显示屏应该怎么选择?这5点注意事项必须考虑在内

Hard core observation 545 50 years ago, Apollo 15 made a feather landing experiment on the moon

云原生技术--- 容器知识点

Machine test question 1
![[compilation principle] LR (0) analyzer half done](/img/ec/b13913b5d5c5a63980293f219639a4.png)
[compilation principle] LR (0) analyzer half done

Method of canceling automatic watermarking of uploaded pictures by CSDN

ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型

ICLR 2022 | pre training language model based on anti self attention mechanism
随机推荐
关于声子和热输运计算中BORN电荷和non-analytic修正的问题
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
ThreadLocal详解
2022-07-04 the high-performance database engine stonedb of MySQL is compiled and run in centos7.9
UDP programming
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
欧洲生物信息研究所2021亮点报告发布:采用AlphaFold已预测出近1百万个蛋白质
UVa 11732 – strcmp() Anyone?
Word2vec (skip gram and cbow) - pytorch
dockermysql修改root账号密码并赋予权限
npm无法安装sharp
The application of machine learning in software testing
POJ 1258 Agri-Net
Method of canceling automatic watermarking of uploaded pictures by CSDN
Jafka来源分析——Processor
config:invalid signature 解决办法和问题排查详解
docker中mysql开启日志的实现步骤
MySQL中正则表达式(REGEXP)使用详解
NPM cannot install sharp
Comparison between variable and "zero value"