1. ios对Flutter有如下依赖 Flutter.framework: Flutter engine等; APP.framework:业务代码, 由dart代码生成。App.framework也包含了kDartVmSnapshotData,kDartVmSnapshotInstructions ...
分类:
移动开发 时间:
2019-12-12 13:19:08
阅读次数:
288
添加依赖:(注意,作者一直更新维护,请以最新的版本添加) 代码实现: misc.dart pageloading.dart 效果: ...
分类:
其他好文 时间:
2019-12-07 19:32:12
阅读次数:
1284
import 'package:flutter/material.dart'; import 'res/listData.dart'; void main() { runApp(MaterialApp( title: "demo", home: MyApp(), )); } class MyApp ...
分类:
其他好文 时间:
2019-12-06 13:21:26
阅读次数:
631
最近大部分时间再写dart,突然用到js,发现js不能直接声明一个枚举。搜索发现还是有实现的方式,于是总结一下。 目录 "枚举特点" "Object.freeze()" ) "Symbol" 实现 "体现不可更改" "体现值的唯一性" "需要注意的地方" 枚举特点 枚举值不能重复 不能被修改 swi ...
分类:
Web程序 时间:
2019-12-05 19:17:42
阅读次数:
443
Expanded组件可以结合Row和Column布局组件使用。 Expanded组件的常用属性 属性 说明 flex 元素占整个父Row/Column的比例 child 子元素 import 'package:flutter/material.dart'; void main() { runApp( ...
分类:
其他好文 时间:
2019-12-05 19:02:00
阅读次数:
159
数据类型 声明示例 String String a = "你好"; var a = "你好"; int int b = 1; var b = 1; double double c = 3.14; var c = 3.14; bool bool d = true; List var e = ["1", ...
分类:
其他好文 时间:
2019-12-01 22:45:31
阅读次数:
134
1 import 'package:flutter/material.dart'; 2 3 void main() => runApp( 4 new MaterialApp( 5 title: 'Center居中布局', 6 home: new LayoutDemo(), 7 ), 8 ); 9 1... ...
分类:
移动开发 时间:
2019-11-27 12:39:02
阅读次数:
94
1 import 'package:flutter/cupertino.dart'; 2 import 'package:flutter/material.dart'; 3 4 void main() =>runApp( 5 new MaterialApp( 6 title: 'Container布... ...
分类:
移动开发 时间:
2019-11-27 12:07:14
阅读次数:
83
1 import 'package:flutter/cupertino.dart'; 2 import 'package:flutter/material.dart'; 3 4 void main(){ 5 runApp(new MyApp()); 6 } 7 8 class MyApp exten... ...
分类:
移动开发 时间:
2019-11-26 11:59:05
阅读次数:
331