当前位置:网站首页>(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
边栏推荐
- 【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
- Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
- Volatile keyword
- 「小程序容器技术」,是噱头还是新风口?
- TypeScript获取函数参数类型
- The statement that allows full table scanning does not seem to take effect set odps sql. allow. fullscan=true; I
- Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)
- 【LeetCode】19、 删除链表的倒数第 N 个结点
- Bipartite graph determination
- Is "applet container technology" a gimmick or a new outlet?
猜你喜欢

Aardio - construct a multi button component with customplus library +plus

MATLAB小技巧(27)灰色预测

AdaViT——自适应选择计算结构的动态网络

UE4 blueprint learning chapter (IV) -- process control forloop and whileloop

Bipartite graph determination

CUDA exploration

监控界的最强王者,没有之一!

Rust knowledge mind map XMIND

config:invalid signature 解决办法和问题排查详解

Config:invalid signature solution and troubleshooting details
随机推荐
【编译原理】做了一半的LR(0)分析器
How to choose indoor LED display? These five considerations must be taken into account
Redis 持久化机制
Machine test question 1
Aardio - Method of batch processing attributes and callback functions when encapsulating Libraries
QT signal and slot
How to use flexible arrays?
Const keyword
poj 1094 Sorting It All Out (拓扑排序)
Traversal of a tree in first order, middle order, and then order
[untitled]
What are the specific steps and schedule of IELTS speaking?
儿童睡衣(澳大利亚)AS/NZS 1249:2014办理流程
浅谈网络安全之文件上传
Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)
做国外LEAD2022年下半年几点建议
BasicVSR_ Plusplus master test videos and pictures
Extern keyword
企业不想换掉用了十年的老系统
Matlab tips (27) grey prediction