refactor(conflict):

This commit is contained in:
sanfan.hx
2019-02-01 12:54:05 +08:00
189 changed files with 2675 additions and 964 deletions

View File

@ -22,27 +22,27 @@ class _Demo extends State<RadioADemo> {
}
Widget build(BuildContext context) {
return (
new Container(
Container(
alignment: Alignment.centerLeft,
child: new Column(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
new Radio(
Radio(
value: 1,
groupValue: groupValue,//当value和groupValue一致的时候则选中
onChanged: (T){
onChange(T);
}
),
new Radio(
Radio(
value: 2,
groupValue: groupValue,
onChanged: (T){
onChange(T);
}
),
new Radio(
Radio(
value: 3,
groupValue: groupValue,
onChanged: (T){

View File

@ -18,7 +18,6 @@ Radio widget 代表表单中的单选按钮, 当groupValue = value时代表组
在表单中, 单选按钮是表示一组互斥选项按钮中的一个。当一个按钮被选中,之前选中的按钮就变为非选中的。
### **基本用法**
以下是Radio的属性主产明
- activeColor → Color - 激活时的颜色。

View File

@ -24,7 +24,7 @@ class _Demo extends State<DemoA> {
}
Widget build(BuildContext context) {
return new Column(
return Column(
children: <Widget>[
RadioListTile<String>(
title: const Text('A'),

View File

@ -33,6 +33,7 @@ class _DemoState extends State<Demo> {
contentList: [
content1,
new DemoA()
],
title: 'RadioListTile',
docUrl: 'https://docs.flutter.io/flutter/material/RadioListTile-class.html',