03 2020 档案
摘要: 查看Widget 的源码 就能发现Widget 视视图更新时候的判断机制 缓存现象多出现在数据遍历生成Widget的情况下 oldWidget.runtimeType == newWidget.runtimeType 官方默认用runtimeType 编译时间来判断 明显不好 官方的建议是不能用
阅读全文
摘要:官方维护的一些 loading 插件(官方的有些插件某些有坑 也可以自己封装) https://pub.flutter-io.cn/packages/flutter_spinkit https://www.ctolib.com/huangjianke-flutter_easyloading.html
阅读全文
摘要:在前端js 中,有些应用场景需要一次性调用多个接口或者进行多个事件同时执行 可以用promse.all 来操作 在flutter 中有类似Future.wait的用法 demo1(){ return true; } demo2(){ return true; } demo3(){ return fa
阅读全文