|
|
@ -4,6 +4,7 @@ import 'package:dating_touchme_app/controller/mine/my_friend_controller.dart'; |
|
|
import 'package:dating_touchme_app/extension/ex_widget.dart'; |
|
|
import 'package:dating_touchme_app/extension/ex_widget.dart'; |
|
|
import 'package:dating_touchme_app/generated/assets.dart'; |
|
|
import 'package:dating_touchme_app/generated/assets.dart'; |
|
|
import 'package:dating_touchme_app/model/mine/friend_data.dart'; |
|
|
import 'package:dating_touchme_app/model/mine/friend_data.dart'; |
|
|
|
|
|
import 'package:dating_touchme_app/pages/home/user_information_page.dart'; |
|
|
import 'package:easy_refresh/easy_refresh.dart'; |
|
|
import 'package:easy_refresh/easy_refresh.dart'; |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
@ -283,7 +284,9 @@ class _UserItemState extends State<UserItem> { |
|
|
) |
|
|
) |
|
|
], |
|
|
], |
|
|
), |
|
|
), |
|
|
); |
|
|
|
|
|
|
|
|
).onTap((){ |
|
|
|
|
|
Get.to(() => UserInformationPage(miId: widget.item.miId ?? "", userId: widget.item.userId ?? "")); |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -311,7 +314,7 @@ class _AddUserItemState extends State<AddUserItem> { |
|
|
ClipRRect( |
|
|
ClipRRect( |
|
|
borderRadius: BorderRadius.all(Radius.circular(45.w)), |
|
|
borderRadius: BorderRadius.all(Radius.circular(45.w)), |
|
|
child: CachedNetworkImage( |
|
|
child: CachedNetworkImage( |
|
|
imageUrl: "${widget.item.toProfilePhoto ?? ""}?x-oss-process=image/format,webp/resize,w_170", |
|
|
|
|
|
|
|
|
imageUrl: "${widget.item.fromProfilePhoto ?? ""}?x-oss-process=image/format,webp/resize,w_170", |
|
|
width: 45.w, |
|
|
width: 45.w, |
|
|
height: 45.w, |
|
|
height: 45.w, |
|
|
fit: BoxFit.cover, |
|
|
fit: BoxFit.cover, |
|
|
@ -324,7 +327,7 @@ class _AddUserItemState extends State<AddUserItem> { |
|
|
Row( |
|
|
Row( |
|
|
children: [ |
|
|
children: [ |
|
|
Text( |
|
|
Text( |
|
|
"${widget.item.toNickName}", |
|
|
|
|
|
|
|
|
"${widget.item.fromNickName}", |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 14.w, |
|
|
fontSize: 14.w, |
|
|
fontWeight: FontWeight.w500 |
|
|
fontWeight: FontWeight.w500 |
|
|
@ -336,11 +339,11 @@ class _AddUserItemState extends State<AddUserItem> { |
|
|
height: 12.w, |
|
|
height: 12.w, |
|
|
decoration: BoxDecoration( |
|
|
decoration: BoxDecoration( |
|
|
borderRadius: BorderRadius.all(Radius.circular(12.w)), |
|
|
borderRadius: BorderRadius.all(Radius.circular(12.w)), |
|
|
color: widget.item.toGenderCode == 0 ? const Color.fromRGBO(237, 245, 255, 1) : const Color.fromRGBO(255, 237, 255, 1) |
|
|
|
|
|
|
|
|
color: widget.item.fromGenderCode == 0 ? const Color.fromRGBO(237, 245, 255, 1) : const Color.fromRGBO(255, 237, 255, 1) |
|
|
), |
|
|
), |
|
|
child: Center( |
|
|
child: Center( |
|
|
child: Image.asset( |
|
|
child: Image.asset( |
|
|
widget.item.toGenderCode == 0 ? Assets.imagesMale : Assets.imagesFemale, |
|
|
|
|
|
|
|
|
widget.item.fromGenderCode == 0 ? Assets.imagesMale : Assets.imagesFemale, |
|
|
width: 7.w, |
|
|
width: 7.w, |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
@ -449,6 +452,8 @@ class _AddUserItemState extends State<AddUserItem> { |
|
|
}) |
|
|
}) |
|
|
], |
|
|
], |
|
|
), |
|
|
), |
|
|
); |
|
|
|
|
|
|
|
|
).onTap((){ |
|
|
|
|
|
Get.to(() => UserInformationPage(miId: widget.item.fromMiId ?? "", userId: widget.item.fromUserId ?? "")); |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |