|
|
|
@ -1,4 +1,5 @@ |
|
|
|
import 'package:cached_network_image/cached_network_image.dart'; |
|
|
|
import 'package:dating_touchme_app/controller/global.dart'; |
|
|
|
import 'package:dating_touchme_app/controller/mine/mine_controller.dart'; |
|
|
|
import 'package:dating_touchme_app/extension/ex_widget.dart'; |
|
|
|
import 'package:dating_touchme_app/pages/mine/edit_info_page.dart'; |
|
|
|
@ -30,6 +31,7 @@ class _MinePageState extends State<MinePage> with AutomaticKeepAliveClientMixin{ |
|
|
|
Get.put(MineController()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -37,7 +39,10 @@ class _MinePageState extends State<MinePage> with AutomaticKeepAliveClientMixin{ |
|
|
|
Widget build(BuildContext context) { |
|
|
|
super.build(context); |
|
|
|
return GetBuilder<MineController>( |
|
|
|
init: MineController(), |
|
|
|
builder: (controller) { |
|
|
|
controller.userData.value = GlobalData().userData; |
|
|
|
controller.userId.value = GlobalData().userId; |
|
|
|
return Container( |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 9.w), |
|
|
|
constraints: BoxConstraints(minHeight: ScreenUtil().setHeight(800)), |
|
|
|
@ -70,8 +75,8 @@ class _MinePageState extends State<MinePage> with AutomaticKeepAliveClientMixin{ |
|
|
|
children: [ |
|
|
|
ClipRRect( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(60.w)), |
|
|
|
child: (controller.userData.value?.profilePhoto?.isNotEmpty ?? false) ? Image.network( |
|
|
|
"${controller.userData.value?.profilePhoto ?? ""}", |
|
|
|
child: (controller.userData.value?.profilePhoto?.isNotEmpty ?? false) ? CachedNetworkImage( |
|
|
|
imageUrl: "${controller.userData.value?.profilePhoto ?? ""}?x-oss-process=image/format,webp/resize,w_120", |
|
|
|
width: 60.w, |
|
|
|
height: 60.w, |
|
|
|
fit: BoxFit.cover, |
|
|
|
@ -105,7 +110,7 @@ class _MinePageState extends State<MinePage> with AutomaticKeepAliveClientMixin{ |
|
|
|
), |
|
|
|
SizedBox(height: 11.w,), |
|
|
|
Text( |
|
|
|
"ID:${controller.userData.value?.id ?? ""}", |
|
|
|
"ID:${controller.userId.value ?? ""}", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.w, |
|
|
|
color: const Color.fromRGBO(51, 51, 51, 1), |
|
|
|
|