摘要: build_runner的使用 1、在根目录运行 2、一次性创建.g.dart文件 使用build 此时目录内不能有.g.dart文件 3、watch是监听 有model类的文件创建 自动创建.g.dart文件 flutter packages pub run build_runner build 阅读全文
posted @ 2019-01-15 20:57 星辰之力 阅读(3416) 评论(0) 推荐(0) 编辑
摘要: 解决:在row层中的text层加一个expend flutter Row里面元素居中显示 new Expanded( flex: 5, child: new Row( children: <Widget>[ Expanded( child: new Container( alignment: Ali 阅读全文
posted @ 2019-01-15 18:52 星辰之力 阅读(3503) 评论(0) 推荐(0) 编辑
摘要: 运行: 阅读全文
posted @ 2019-01-15 16:03 星辰之力 阅读(1395) 评论(0) 推荐(0) 编辑
摘要: 1、安装 从VScode官网下载Mac系统适用的VScode安装包,下载完成后,将zip安装包解压到桌面即可。 2、插件安装 实现 C/Cpp 代码自动补全,函数跳转。 打开VScode后,按下组合键“⇧⌘X”,打开扩展,输入“C/C++”,安装“C/C++”、“C/C++ Clang Comman 阅读全文
posted @ 2019-01-15 14:42 星辰之力 阅读(25764) 评论(0) 推荐(0) 编辑
摘要: 引用 JSON 支持int, double, String, bool, null, List, Map (with string keys) UTF-8 阅读全文
posted @ 2019-01-15 10:07 星辰之力 阅读(2641) 评论(0) 推荐(0) 编辑
摘要: 如果系统中有一些配置文件在服务器上做了配置修改,然后后续开发又新添加一些配置项的时候, 在发布这个配置文件的时候,会发生代码冲突: error: Your local changes to the following files would be overwritten by merge: prot 阅读全文
posted @ 2019-01-15 09:32 星辰之力 阅读(2145) 评论(0) 推荐(0) 编辑