
Flutter
曼联是信仰
这个作者很懒,什么都没留下…
展开
-
FLutter tabbar样式
TabBar( onTap: (index) { // print(index); }, indicatorPadding: EdgeInsets.symmetric( horizontal: ScreenUtil().setWidth(30), vertical: ScreenUtil().setWidth(15)),原创 2020-10-17 14:35:56 · 1161 阅读 · 0 评论 -
Flutter 安卓添加启动图 设置无效
1.问题参照网上的教程 按照launch_background.xml 里注释的格式修改了<item>的内容之后发现启动页设置无效<item android:drawable="@mipmap/splash"></item>解决成功的实现方案是使用下面一种设置方式注:将splash.png放入mipmap文件夹中 也可以使用同一分辨率的图片...原创 2020-03-20 11:28:32 · 2651 阅读 · 0 评论 -
执行pod install 报错 [!] CDN: trunk Repo update failed - 25 error(s):
控制台报错[!] CDN: trunk Repo update failed - 25 error(s):CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/8/f/f/AMapFoundation/1.0.0/AMapFoundation.p...原创 2020-02-11 13:37:10 · 1758 阅读 · 0 评论 -
Flutter Navigator返回上上级页面
比如:当返回的页面是tab的子页面时,用绑定路由名的方法返回的话,会出现显示不全的问题,所以无法使用路由名返回,此时便可通过Navigator连续跳两级的方法返回Navigator.of(context)..pop()..pop();参考blog:https://www.jianshu.com/p/224388e0f54d...转载 2020-01-13 11:18:16 · 4457 阅读 · 0 评论 -
Flutter IconButton点击阴影效果去除
IconButton 长按时会有一层类似evelotion的阴影效果 但是IconButton并没有evelotion这个参数我们可以通过设置splashColor: Colors.transparent,highlightColor: Colors.transparent,这两个参数达到消除”阴影的效果“...原创 2020-01-11 15:44:26 · 6293 阅读 · 0 评论 -
Flutter Dialog内部content不刷新的问题
问题背景:页面点击事件后弹出dialog组件,内部使用了stateful的组件,发现dialog内容并没有刷新。我重新定义了一个state状态赋给dialog组件,部分代码如下图void ShowDialog(BuildContext context, Map r) { showDialog<void>( context: context, ...原创 2020-01-09 20:22:33 · 2091 阅读 · 0 评论 -
Flutter 问题整理
文章目录1. 使用路由跳转时报错 Navigator operation requested with a context that does not include a Navigator.2.pub get failed (69) -- attempting retry 4 in 8 seconds...1. 使用路由跳转时报错 Navigator operation request...原创 2019-12-03 18:27:58 · 764 阅读 · 0 评论 -
Flutter初理解
1.Flutter官方文档https://flutter.dev/docs2.Flutter文档中文版https://flutterchina.club/docs/3.Flutter技术Bloghttps://www.jianshu.com/p/533b5b8d2f714.Flutter中国https://flutter.cn/5.Dart官方文档https://dart.dev...原创 2019-11-27 17:56:54 · 302 阅读 · 0 评论