当前位置:网站首页>(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
边栏推荐
- ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics
- Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
- DockerMySQL无法被宿主机访问的问题解决
- Designed for decision tree, the National University of Singapore and Tsinghua University jointly proposed a fast and safe federal learning system
- On file uploading of network security
- CRMEB商城系统如何助力营销?
- 面试题:AOF重写机制,redis面试必问!!!
- 存币生息理财dapp系统开发案例演示
- C# 三种方式实现Socket数据接收
- 做国外LEAD2022年下半年几点建议
猜你喜欢
Rust knowledge mind map XMIND
MySQL中正则表达式(REGEXP)使用详解
UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
Improving Multimodal Accuracy Through Modality Pre-training and Attention
金融人士必读书籍系列之六:权益投资(基于cfa考试内容大纲和框架)
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
Config:invalid signature solution and troubleshooting details
Enterprises do not want to replace the old system that has been used for ten years
Thinkphp5 multi table associative query method join queries two database tables, and the query results are spliced and returned
docker中mysql开启日志的实现步骤
随机推荐
Uniapp setting background image effect demo (sorting)
Export MySQL table data in pure mode
ICLR 2022 | pre training language model based on anti self attention mechanism
How to choose indoor LED display? These five considerations must be taken into account
Windows Auzre 微软的云计算产品的后台操作界面
【全网首发】Redis系列3:高可用之主从架构的
POJ 1258 Agri-Net
Redis persistence mechanism
案例推荐丨安擎携手伙伴,保障“智慧法院”更加高效
Jafka source analysis processor
ThreadLocal详解
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
#DAYU200体验官# 首页aito视频&Canvas绘制仪表盘(ets)
BasicVSR_PlusPlus-master测试视频、图片
Precise drag and drop within a contentable
Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
【踩坑合辑】Attempting to deserialize object on CUDA device+buff/cache占用过高+pad_sequence
Cocoscreator+typescripts write an object pool by themselves
Bipartite graph determination
项目复盘模板