mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-07-15 03:04:25 +08:00
refactor(conflict):
This commit is contained in:
@ -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){
|
||||
|
@ -18,7 +18,6 @@ Radio widget 代表表单中的单选按钮, 当groupValue = value时代表组
|
||||
|
||||
在表单中, 单选按钮是表示一组互斥选项按钮中的一个。当一个按钮被选中,之前选中的按钮就变为非选中的。
|
||||
|
||||
|
||||
### **基本用法**
|
||||
以下是Radio的属性主产明
|
||||
- activeColor → Color - 激活时的颜色。
|
||||
|
@ -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'),
|
||||
|
@ -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',
|
||||
|
Reference in New Issue
Block a user