Skip to content

Commit 52fb0af

Browse files
authored
Merge pull request #27 from efoxTeam/test
feat: 合并test分支
2 parents adbd7a4 + 043d180 commit 52fb0af

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1143
-388
lines changed
Loading
Loading
Loading
Loading
Loading
Loading
27.5 KB
Loading

assets/imgs/avatar.png

251 KB
Loading

docs/widget/form/daypicker/index.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,35 @@
1-
## **文档完善中**
1+
## **DatePicker**
2+
3+
>
4+
显示给定月份的日期并允许选择一天
5+
* 日期选择器很少直接使用,请考虑使用 showDatePicker 或者 showTimePicker,它会创建一个日期/时间选择器对话框
6+
7+
### showDatePicker构造方法
8+
``` dart
9+
showDatePicker({
10+
@required BuildContext context,
11+
@required DateTime initialDate,
12+
@required DateTime firstDate,
13+
@required DateTime lastDate,
14+
SelectableDayPredicate selectableDayPredicate,
15+
DatePickerMode initialDatePickerMode = DatePickerMode.day,
16+
Locale locale,
17+
TextDirection textDirection,
18+
TransitionBuilder builder,
19+
})
20+
```
21+
22+
### showTimePicker构造方法
23+
``` dart
24+
showTimePicker({
25+
@required BuildContext context,
26+
@required TimeOfDay initialTime,
27+
TransitionBuilder builder,
28+
})
29+
```
30+
31+
### 属性介绍
32+
* context: 上下文
33+
* initialDate: 初始时间
34+
* firstDate: 设置选择的最早时间
35+
* lastDate: 设置选择的最晚时间

docs/widget/form/radio/index.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,22 @@
1-
## **文档完善中**
1+
## **Radio**
2+
3+
>
4+
单选按钮
5+
6+
### 构造方法
7+
``` dart
8+
Radio({
9+
Key key,
10+
@required this.value,
11+
@required this.groupValue,
12+
@required this.onChanged,
13+
this.activeColor,
14+
this.materialTapTargetSize,
15+
})
16+
```
17+
18+
### 属性介绍
19+
* value:单选按钮的值
20+
* groupValue:此组单选按钮的当前选定值,当value=groupValue时表示该按钮被选中
21+
* onChanged:选择单选按钮时的回调
22+
* activeColor:选中该按钮的颜色

0 commit comments

Comments
 (0)