03 2019 档案

Dart 的function
摘要:方法的定义 返回类型 方法名 (参数1 ,参数2 ,...){ 方法体 返回值 } => 的使用 阅读全文
posted @ 2019-03-12 11:23 琴儿Aline 阅读(667) 评论(0) 推荐(0) 编辑
Dart 中dynamic 关键字的使用
摘要:dynamic 》》》直接翻译过来可以是动态的 void main() //dynamic } 阅读全文
posted @ 2019-03-11 10:21 琴儿Aline 阅读(4585) 评论(1) 推荐(1) 编辑
Dart 创建Map
摘要:Map的常用操作 1. [] , length 获取值和长度 2. isEmpty (),isNoEmpty () 是否为空 3.Keys ,values 获取所有的键 和值 4. containsKey(), containsValue() 是否包含某个key 是否包含某个值 5.remove ( 阅读全文
posted @ 2019-03-11 10:13 琴儿Aline 阅读(1893) 评论(0) 推荐(0) 编辑
Dart 创建List
摘要:list的常用的操作 1. [] ,length 获取元素,和数组长度 2. add(), insert ()添加元素 3. remove(),clear() 删除元素 4.indexOf (), lastIndexOf () 获取元素中的位置 5.sort (), sublist () 排序和获取 阅读全文
posted @ 2019-03-11 09:54 琴儿Aline 阅读(2469) 评论(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) 编辑
UITableviewCell 高度自适应
摘要:self.deviceTable.estimatedRowHeight=44; self.deviceTable.rowHeight=UITableViewAutomaticDimension; -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPa... 阅读全文
posted @ 2019-03-04 09:49 琴儿Aline 阅读(1380) 评论(0) 推荐(0) 编辑
VSCode 常用的快捷键
摘要:R键:点击后热加载,直接查看预览结果 P键: 在虚拟机中显示网格,常用 O 键:切换iOS 和Android Q键 :退出调试 ctr +~ 打开 终端 阅读全文
posted @ 2019-03-01 17:26 琴儿Aline 阅读(148) 评论(0) 推荐(0) 编辑

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