随笔分类 -  flutter

flutter 常用类型
摘要://数字类型 void _numType() { num num1 = -1.0;//是数字类型的父类 num num2 = 2; //是数字类型的父类 int int1 = 3; //只能是整数 double d1 = 1.68; //双精度, print("num:$num1 num:$num2 int: $int1 double:$d1"); print... 阅读全文
posted @ 2019-08-26 17:58 琴儿Aline 阅读(1105) 评论(0) 推荐(0) 编辑
flutter GridViewWidget
摘要:创建GridView 创建的方式 阅读全文
posted @ 2019-08-26 15:33 琴儿Aline 阅读(195) 评论(0) 推荐(0) 编辑
flutter 常用组件二
摘要:ListViewWidget 列表组件的使用 scrollDirection 属性 AXis.horizontal 横向滚动或者叫水平方向滚动 Axis.vertical 竖向 阅读全文
posted @ 2019-08-26 14:47 琴儿Aline 阅读(212) 评论(0) 推荐(0) 编辑
flutter常用组件
摘要:TextWidget 文本组件 TextWidget 的常用属性 TextAlign: 下面的五种对齐方式 左对齐, 右对齐, 居中对齐, 从开始位置对齐 完整代码 Container 容器组件 == >div padding 内边距 阅读全文
posted @ 2019-08-23 11:47 琴儿Aline 阅读(736) 评论(0) 推荐(0) 编辑
MaterialPageRoute 浅认识
摘要:https://book.flutterchina.club/chapter2/flutter_router.html MaterialPageRoute继承自PageRoute类,PageRoute类是一个抽象类,表示占有整个屏幕空间的一个模态路由页面,它还定义了路由构建及切换时过渡动画的相关接口 阅读全文
posted @ 2019-08-22 16:51 琴儿Aline 阅读(4644) 评论(5) 推荐(0) 编辑
flutter 添加插件
摘要:打開pubspec.yaml > cupertino_icons 下添加插件 阅读全文
posted @ 2019-04-01 10:51 琴儿Aline 阅读(1522) 评论(0) 推荐(0) 编辑
Image Widget 的几种加入形式
摘要:image .asset : 加载资源图片,会使打包时包体过大 image.network :网络资源图片,经常换的或者动态的图片 image file : 本地图片,比如相册 重用属性: fit scale color colorBlendMode repeat child: Container( 阅读全文
posted @ 2019-03-07 10:00 琴儿Aline 阅读(426) 评论(0) 推荐(0) 编辑
Container 组件
摘要:Container 组件 padding: const EdgeInsets.fromLTRB(10, 0, 30, 0),//内边距 margin: const EdgeInsets.all(10),// 外边距 decoration: new BoxDecoration( gradient: c 阅读全文
posted @ 2019-03-07 09:22 琴儿Aline 阅读(169) 评论(0) 推荐(0) 编辑
VSCode 常用的快捷键
摘要:R键:点击后热加载,直接查看预览结果 P键: 在虚拟机中显示网格,常用 O 键:切换iOS 和Android Q键 :退出调试 ctr +~ 打开 终端 阅读全文
posted @ 2019-03-01 17:26 琴儿Aline 阅读(148) 评论(0) 推荐(0) 编辑
有么有人跟我遇到同样的问题。。求解
摘要:运行的这一句的时候 $ brew install --HEAD libimobiledevice checking how to hardcode library paths into programs... immediate ./configure: line 16050: syntax err 阅读全文
posted @ 2019-02-19 09:27 琴儿Aline 阅读(456) 评论(0) 推荐(0) 编辑
初见 fultter for MAC
摘要:第一步:下载flutter https://flutter.io/docs/development/tools/sdk/archive?tab=macos#macos 第二步:(development 本公举自己的文件夹) cd ~/development $ unzip /Users/yangqi 阅读全文
posted @ 2019-02-18 10:50 琴儿Aline 阅读(184) 评论(0) 推荐(0) 编辑

 
点击右上角即可分享
微信分享提示