Skip to content

Commit 0f9c4af

Browse files
committed
Merge branch 'test'
2 parents 9d040bd + 88839fe commit 0f9c4af

File tree

6 files changed

+33
-9
lines changed

6 files changed

+33
-9
lines changed

docs/widget/common/icon/index.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
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:渲染图标的文本方向

lib/store/http.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import 'package:dio/dio.dart'
33

44
Dio getDio([Options options]) {
55
Dio dio = new Dio(BaseOptions(
6-
connectTimeout: 5000,
7-
receiveTimeout: 5000,
6+
connectTimeout: 30 * 1000,
7+
receiveTimeout: 30 * 1000,
88
)); // with default Options
99
dio.interceptors.add(LogInterceptor(responseBody: true));
1010
return dio;

lib/widget/common/icon/demo.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ class _IndexState extends State<Index> {
1818
title: Text('Icon'),
1919
),
2020
body: Center(
21-
child: Text('更新中'),
21+
child: Icon(
22+
Icons.android,
23+
size: 100.0,
24+
color: Theme.of(context).primaryColor,
25+
),
2226
),
2327
);
2428
}

lib/widget/common/iconbutton/index.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'demo.dart' as Demo;
55
class Index extends StatefulWidget {
66
static String title = 'IconButton';
77
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';
99

1010
@override
1111
_IndexState createState() => new _IndexState();

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Flutter UI
9292
│ ├─container 【✔️ v1.0】
9393
│ ├─divider 【✔️ v1.0】
9494
│ ├─flatbutton 【✔️ v1.0】
95-
│ ├─icon
95+
│ ├─icon 【✔️ v1.0】
9696
│ ├─iconbutton
9797
│ ├─image
9898
│ ├─listtile

readme/pr.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## 开发者如何参与完善控件
22
> 开发者可以选择完善喜欢翻译的控件文档,或者增加控件Demo示例
33
4-
* fork 一份自己的仓库
5-
* git clone https://github.com/efoxTeam/flutter-ui 拉取项目到本地
4+
* fork 一份到自己的仓库
5+
* git clone (您的仓库地址) 拉取项目到本地
66
* 打开项目 flutter-ui/lib/config/index.dart,修改里面isPro变量为false,(目的加载本地文件)
77
### 完善文档
8-
* 完善控件文档的,您可打开flutter-ui/docs/widget/animate/animationcontroller/index.md,构建AnimationController控件的说明文档,该文档包括但不限于(控件介绍,控件构造方法,控件属性介绍)
8+
* 完善控件文档的,如要完善Animate下的AnimationController控件的文档,您可打开flutter-ui/docs/widget/animate/animationcontroller/index.md,构建AnimationController控件的说明文档,该文档包括但不限于(控件介绍,控件构造方法,控件属性介绍)
99

1010
### 增加控件demo
1111
* 完善控件的,如要完善Animate下的AnimationController控件,打开项目 flutter-ui/lib/widget/animate/animationcontroller/demo.dart,在此文件下构建您的demo运行即可看到效果

0 commit comments

Comments
 (0)