|
|
|
@ -1,9 +1,11 @@ |
|
|
|
import 'package:dating_touchme_app/extension/ex_widget.dart'; |
|
|
|
import 'package:dating_touchme_app/pages/mine/real_name_page.dart'; |
|
|
|
import 'package:flutter/cupertino.dart'; |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:get/get.dart'; |
|
|
|
|
|
|
|
import '../../controller/mine/auth_controller.dart'; |
|
|
|
import 'edit_info_page.dart'; |
|
|
|
|
|
|
|
class AuthCenterPage extends StatelessWidget { |
|
|
|
AuthCenterPage({super.key}); |
|
|
|
@ -92,19 +94,31 @@ class AuthCenterPage extends StatelessWidget { |
|
|
|
Spacer(), |
|
|
|
Row( |
|
|
|
children: [ |
|
|
|
Text('去认证', style: TextStyle(fontSize: 12, color: Colors.grey[500])), |
|
|
|
Text( |
|
|
|
item.authed ? '已认证' : '去认证', |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12, |
|
|
|
color: item.authed ? Color(0xff26C77C) : Colors.grey[500] |
|
|
|
) |
|
|
|
), |
|
|
|
SizedBox(width: 4), |
|
|
|
Icon( |
|
|
|
item.authed ? SizedBox(width: 24) : Icon( |
|
|
|
Icons.navigate_next, // Material Icons |
|
|
|
// size: 128.0, // 设置图标大小 |
|
|
|
color: Colors.grey, // 设置图标颜色 |
|
|
|
) |
|
|
|
// size: 128.0, // 设置图标大小#26C77C |
|
|
|
color: Colors.grey[500] |
|
|
|
), |
|
|
|
], |
|
|
|
) |
|
|
|
], |
|
|
|
), |
|
|
|
).onTap((){ |
|
|
|
print(item.index); |
|
|
|
if(!item.authed){ |
|
|
|
if(item.index == 2){ |
|
|
|
Get.to(() => EditInfoPage()); |
|
|
|
} else if(item.index == 3){ |
|
|
|
Get.to(() => RealNamePage()); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|