1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| var _radioGroupValue = '选项1'; Row( children: [ Flexible( child: RadioListTile( title: Text("选项1", style: TextStyle(fontSize: 12),), value: "选项1", onChanged: (value) { _radioGroupValue = value; }, groupValue: _radioGroupValue, subtitle: Text("subTitle", style: TextStyle(fontSize: 10)), controlAffinity: ListTileControlAffinity.platform)), Flexible( child: RadioListTile( title: Text("选项2", style: TextStyle(fontSize: 12)), value: "选项2", groupValue: _radioGroupValue, onChanged: (value) { _radioGroupValue = value; }, subtitle: Text("subTitle", style: TextStyle(fontSize: 10)), controlAffinity: ListTileControlAffinity.platform)), Flexible( child: RadioListTile( title: Text("选项3", style: TextStyle(fontSize: 12)), value: "选项3", subtitle: Text("subTitle", style: TextStyle(fontSize: 10)), groupValue: _radioGroupValue, onChanged: (value) { _radioGroupValue = value; }, controlAffinity: ListTileControlAffinity.platform)) ], )
|