Commit cc3bbe3d02cecaa7b7724ad50be34b3f9cc0f81a
1 parent
cc3b183a
feat:性别编辑页报错解决
Showing
1 changed file
with
20 additions
and
14 deletions
lib/pages/user/modify/modify_user_information_page.dart
| ... | ... | @@ -101,21 +101,27 @@ class ModifyUserInformationPage extends StatelessWidget { |
| 101 | 101 | if (type == ModifyUserInformationType.gender) { |
| 102 | 102 | return Row( |
| 103 | 103 | children: <Widget>[ |
| 104 | - RadioListTile( | |
| 105 | - title: const Text('男'), | |
| 106 | - value: 0, | |
| 107 | - groupValue: type, | |
| 108 | - onChanged: (value) { | |
| 109 | - Log.d('男value = $value'); | |
| 110 | - }, | |
| 104 | + SizedBox( | |
| 105 | + width: 150, | |
| 106 | + child: RadioListTile( | |
| 107 | + title: const Text('男'), | |
| 108 | + value: 0, | |
| 109 | + groupValue: type, | |
| 110 | + onChanged: (value) { | |
| 111 | + Log.d('男value = $value'); | |
| 112 | + }, | |
| 113 | + ), | |
| 111 | 114 | ), |
| 112 | - RadioListTile( | |
| 113 | - title: const Text('女'), | |
| 114 | - value: 1, | |
| 115 | - groupValue: type, | |
| 116 | - onChanged: (value) { | |
| 117 | - Log.d('女value = $value'); | |
| 118 | - }, | |
| 115 | + SizedBox( | |
| 116 | + width: 150, | |
| 117 | + child: RadioListTile( | |
| 118 | + title: const Text('女'), | |
| 119 | + value: 1, | |
| 120 | + groupValue: type, | |
| 121 | + onChanged: (value) { | |
| 122 | + Log.d('女value = $value'); | |
| 123 | + }, | |
| 124 | + ), | |
| 119 | 125 | ), |
| 120 | 126 | ], |
| 121 | 127 | ); | ... | ... |