|
|
|
@ -40,7 +40,7 @@ class AuthCenterPage extends StatelessWidget { |
|
|
|
Widget _buildListItem(AuthCard item) { |
|
|
|
return Container( |
|
|
|
margin: EdgeInsets.only(bottom: 12), |
|
|
|
padding: EdgeInsets.all(24), |
|
|
|
padding: EdgeInsets.only(left: 16, top: 24, bottom: 24, right: 12), |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Colors.white, |
|
|
|
borderRadius: BorderRadius.circular(12), |
|
|
|
@ -93,29 +93,22 @@ class AuthCenterPage extends StatelessWidget { |
|
|
|
item.authed ? '已认证' : '去认证', |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12, |
|
|
|
color: item.authed ? Color(0xff26C77C) : Colors.grey[500] |
|
|
|
color: item.authed ? Color(0xFF7562F9) : Colors.grey[500] |
|
|
|
) |
|
|
|
), |
|
|
|
SizedBox(width: 4), |
|
|
|
item.authed ? SizedBox(width: 24) : Icon( |
|
|
|
Icons.navigate_next, // Material Icons |
|
|
|
// size: 128.0, // 设置图标大小#26C77C |
|
|
|
color: Colors.grey[500] |
|
|
|
), |
|
|
|
Icon(Icons.navigate_next, color: Colors.grey[400]), |
|
|
|
], |
|
|
|
) |
|
|
|
], |
|
|
|
), |
|
|
|
).onTap(() async{ |
|
|
|
if(!item.authed){ |
|
|
|
if(item.index == 2){ |
|
|
|
await Get.to(() => EditInfoPage()); |
|
|
|
if(item.index == 2){ |
|
|
|
await Get.to(() => EditInfoPage()); |
|
|
|
controller.loadInitialData(); |
|
|
|
} else if(item.index == 3){ |
|
|
|
final result = await Get.to(() => RealNamePage()); |
|
|
|
if(result > 0){ |
|
|
|
controller.loadInitialData(); |
|
|
|
} else if(item.index == 3){ |
|
|
|
final result = await Get.to(() => RealNamePage()); |
|
|
|
if(result > 0){ |
|
|
|
controller.loadInitialData(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|