![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Flutter疑难杂症
开发中遇到的问题,记录一下
fyq520521
刚毕业的工作新手
展开
-
Flutter等待多个异步任务都执行结束后才进行一些操作
1原创 2023-01-11 14:55:32 · 901 阅读 · 0 评论 -
Flutter 切换tabbar 视图重新渲染解决方法
>底部tabbar点击page切换时,会重新加载页面,重新请求接口浪费资源,为解决这个尴尬处境,有个简易的办法在bottomtabbar类中,对 return scaffold (body: 加入indexedstack body:IndexedStack( children: <Widget>[ PageOne (); PageTwo () ], ...原创 2022-04-18 11:27:24 · 2761 阅读 · 0 评论 -
android Removing unused resources requires unused code shrinking to be turned on. 错误记录
android studio 3.2版本如图我们在build.gradle定义了release 打包配置,发现如果shrinkResources为true ,minifyEnabled 混淆为false,那么编译不通过,报 android Removing unused resources requires unused code shrinking to be turned on. 错误,即“删除未使用的资源需要打开未使用的代码缩减。” 就是如果我们需要移除项目无用资源,就必须同时打开.转载 2022-04-13 11:25:43 · 1159 阅读 · 0 评论 -
Dio使用
封装时,要传递的参数除了queryParameters外,data参数也需要传,如果服务器需要请求体,那么data参数要转换一下json.encode(queryParameters),diodio是一个强大的Dart Http请求库,支持Restful API、FormData、拦截器、请求取消、Cookie管理、文件上传/下载、超时、自定义适配器等...添加依赖dependencies: dio: ^4.0.0 如果你是dio 3.x 用户,想了解4.0的变.转载 2021-08-04 14:39:30 · 1863 阅读 · 0 评论 -
Flutter踩坑:ListView布局报错,RenderFlex children have non-zero flex but incoming height constraints are...
完整报错信息:RenderFlex children have non-zero flex but incoming height constraints are unbounded.When a column is in a parent that does not provide a finite height constraint, for example if it is in a vertical scrollable, it will try to shrink-wrap its child转载 2021-04-21 15:56:00 · 1107 阅读 · 0 评论 -
Flutter 报错: Insecure HTTP is not allowed by platform 的解决办法
一、升级dio库后,用封装的类,请求时,直接走了Error,没有别的提示=============可以查看是不是android 9.0与iOS里的https请求不支持 修改方法参考这里:https://www.jianshu.com/p/04531025d069原创 2021-03-22 19:47:16 · 288 阅读 · 0 评论 -
Flutter下载库flutter_downloader在Android上初始化失败的问题
完整报错信息:RenderFlex children have non-zero flex but incoming height constraints are unbounded.When a column is in a parent that does not provide a finite height constraint, for example if it is in a vertical scrollable, it will try to shrink-wrap its chi原创 2021-06-22 18:33:29 · 429 阅读 · 1 评论