File tree Expand file tree Collapse file tree 6 files changed +33
-9
lines changed Expand file tree Collapse file tree 6 files changed +33
-9
lines changed Original file line number Diff line number Diff line change 1
- ## ** 文档完善中**
1
+ ## ** Icon**
2
+
3
+ >
4
+ 使用IconData中描述的小图标,flutter大概内置了1000+个icon
5
+ ### 构造方法
6
+ ``` dart
7
+ Icon(this.icon, {
8
+ Key key,
9
+ this.size,
10
+ this.color,
11
+ this.semanticLabel,
12
+ this.textDirection,
13
+ })
14
+ ```
15
+
16
+ ### 属性介绍
17
+ * this.icon: IconData对象,必须传入
18
+ * size:图标大小
19
+ * color:图标颜色
20
+ * semanticLabel:图标的语义标签
21
+ * textDirection:渲染图标的文本方向
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import 'package:dio/dio.dart'
3
3
4
4
Dio getDio ([Options options]) {
5
5
Dio dio = new Dio (BaseOptions (
6
- connectTimeout: 5000 ,
7
- receiveTimeout: 5000 ,
6
+ connectTimeout: 30 * 1000 ,
7
+ receiveTimeout: 30 * 1000 ,
8
8
)); // with default Options
9
9
dio.interceptors.add (LogInterceptor (responseBody: true ));
10
10
return dio;
Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ class _IndexState extends State<Index> {
18
18
title: Text ('Icon' ),
19
19
),
20
20
body: Center (
21
- child: Text ('更新中' ),
21
+ child: Icon (
22
+ Icons .android,
23
+ size: 100.0 ,
24
+ color: Theme .of (context).primaryColor,
25
+ ),
22
26
),
23
27
);
24
28
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import 'demo.dart' as Demo;
5
5
class Index extends StatefulWidget {
6
6
static String title = 'IconButton' ;
7
7
static String mdUrl = 'docs/widget/common/iconbutton/index.md' ;
8
- static String originCodeUrl = 'https://docs.flutter.io/flutter/widgets /IconButton-class.html' ;
8
+ static String originCodeUrl = 'https://docs.flutter.io/flutter/material /IconButton-class.html' ;
9
9
10
10
@override
11
11
_IndexState createState () => new _IndexState ();
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ Flutter UI
92
92
│ ├─container 【✔️ v1.0】
93
93
│ ├─divider 【✔️ v1.0】
94
94
│ ├─flatbutton 【✔️ v1.0】
95
- │ ├─icon
95
+ │ ├─icon 【✔️ v1.0】
96
96
│ ├─iconbutton
97
97
│ ├─image
98
98
│ ├─listtile
Original file line number Diff line number Diff line change 1
1
## 开发者如何参与完善控件
2
2
> 开发者可以选择完善喜欢翻译的控件文档,或者增加控件Demo示例
3
3
4
- * fork 一份自己的仓库
5
- * git clone https://github.com/efoxTeam/flutter-ui 拉取项目到本地
4
+ * fork 一份到自己的仓库
5
+ * git clone (您的仓库地址) 拉取项目到本地
6
6
* 打开项目 flutter-ui/lib/config/index.dart,修改里面isPro变量为false,(目的加载本地文件)
7
7
### 完善文档
8
- * 完善控件文档的,您可打开flutter-ui/docs/widget/animate/animationcontroller/index.md,构建AnimationController控件的说明文档,该文档包括但不限于(控件介绍,控件构造方法,控件属性介绍)
8
+ * 完善控件文档的,如要完善Animate下的AnimationController控件的文档, 您可打开flutter-ui/docs/widget/animate/animationcontroller/index.md,构建AnimationController控件的说明文档,该文档包括但不限于(控件介绍,控件构造方法,控件属性介绍)
9
9
10
10
### 增加控件demo
11
11
* 完善控件的,如要完善Animate下的AnimationController控件,打开项目 flutter-ui/lib/widget/animate/animationcontroller/demo.dart,在此文件下构建您的demo运行即可看到效果
You can’t perform that action at this time.
0 commit comments