mod: 个人中心注释

This commit is contained in:
guozhigq
2023-09-10 14:42:14 +08:00
parent e3c9e8c13b
commit 3665d6a0f6
4 changed files with 181 additions and 257 deletions

View File

@ -76,79 +76,79 @@ Widget profile(ctr, {loadingStatus = false}) {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Padding(
padding: const EdgeInsets.only(left: 10, right: 10),
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
InkWell(
onTap: () {
Get.toNamed(
'/follow?mid=${memberInfo.mid}&name=${memberInfo.name}');
},
child: Column(
children: [
Text(
!loadingStatus
? ctr.userStat!['following'].toString()
: '-',
style: const TextStyle(
fontWeight: FontWeight.bold),
),
Text(
'关注',
style: TextStyle(
fontSize: Theme.of(context)
.textTheme
.labelMedium!
.fontSize),
)
],
),
),
InkWell(
onTap: () {
Get.toNamed(
'/fan?mid=${memberInfo.mid}&name=${memberInfo.name}');
},
child: Column(
children: [
Text(
!loadingStatus
? Utils.numFormat(
ctr.userStat!['follower'],
)
: '-',
style: const TextStyle(
fontWeight: FontWeight.bold)),
Text('粉丝',
style: TextStyle(
fontSize: Theme.of(context)
.textTheme
.labelMedium!
.fontSize))
],
),
),
Column(
children: [
const Text('-',
style: TextStyle(fontWeight: FontWeight.bold)),
Text(
'获赞',
style: TextStyle(
fontSize: Theme.of(context)
.textTheme
.labelMedium!
.fontSize),
)
],
),
],
),
),
const SizedBox(height: 10),
// Padding(
// padding: const EdgeInsets.only(left: 10, right: 10),
// child: Row(
// mainAxisSize: MainAxisSize.max,
// mainAxisAlignment: MainAxisAlignment.spaceAround,
// children: [
// InkWell(
// onTap: () {
// Get.toNamed(
// '/follow?mid=${memberInfo.mid}&name=${memberInfo.name}');
// },
// child: Column(
// children: [
// Text(
// !loadingStatus
// ? ctr.userStat!['following'].toString()
// : '-',
// style: const TextStyle(
// fontWeight: FontWeight.bold),
// ),
// Text(
// '关注',
// style: TextStyle(
// fontSize: Theme.of(context)
// .textTheme
// .labelMedium!
// .fontSize),
// )
// ],
// ),
// ),
// InkWell(
// onTap: () {
// Get.toNamed(
// '/fan?mid=${memberInfo.mid}&name=${memberInfo.name}');
// },
// child: Column(
// children: [
// Text(
// !loadingStatus
// ? Utils.numFormat(
// ctr.userStat!['follower'],
// )
// : '-',
// style: const TextStyle(
// fontWeight: FontWeight.bold)),
// Text('粉丝',
// style: TextStyle(
// fontSize: Theme.of(context)
// .textTheme
// .labelMedium!
// .fontSize))
// ],
// ),
// ),
// Column(
// children: [
// const Text('-',
// style: TextStyle(fontWeight: FontWeight.bold)),
// Text(
// '获赞',
// style: TextStyle(
// fontSize: Theme.of(context)
// .textTheme
// .labelMedium!
// .fontSize),
// )
// ],
// ),
// ],
// ),
// ),
// const SizedBox(height: 10),
if (ctr.ownerMid != ctr.mid) ...[
Row(
children: [