opt: mine page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-10 23:36:33 +08:00
parent c29db2bc4f
commit 6a5faba5fd
2 changed files with 120 additions and 115 deletions

View File

@@ -8,6 +8,7 @@ import 'package:PiliPlus/http/loading_state.dart';
import 'package:PiliPlus/pages/live/controller.dart';
import 'package:PiliPlus/pages/live/widgets/live_item.dart';
import 'package:PiliPlus/pages/live/widgets/live_item_follow.dart';
import 'package:PiliPlus/utils/feed_back.dart';
import 'package:PiliPlus/utils/utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
@@ -230,6 +231,7 @@ class _LivePageState extends State<LivePage>
);
},
onLongPress: () {
feedBack();
Get.toNamed(
'/member?mid=${loadingState.response[index].uid}',
arguments: {

View File

@@ -126,23 +126,24 @@ class _MinePageState extends State<MinePage> {
return Column(
mainAxisSize: MainAxisSize.min,
children: [
Row(
GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: _mineController.onLogin,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
const SizedBox(width: 20),
GestureDetector(
onTap: _mineController.onLogin,
child: ClipOval(
ClipOval(
child: _mineController.userInfo.value.face != null
? NetworkImgLayer(
src: _mineController.userInfo.value.face,
semanticsLabel: '头像',
width: 50,
height: 50,
width: 55,
height: 55,
)
: Container(
width: 50,
height: 50,
width: 55,
height: 55,
alignment: Alignment.center,
decoration: BoxDecoration(
shape: BoxShape.circle,
@@ -154,7 +155,6 @@ class _MinePageState extends State<MinePage> {
),
),
),
),
const SizedBox(width: 16),
Expanded(
child: Column(
@@ -199,7 +199,8 @@ class _MinePageState extends State<MinePage> {
),
),
TextSpan(
text: (_mineController.userInfo.value.money ?? '-')
text:
(_mineController.userInfo.value.money ?? '-')
.toString(),
style: TextStyle(
fontSize: Theme.of(context)
@@ -222,7 +223,8 @@ class _MinePageState extends State<MinePage> {
),
TextSpan(
text: "${levelInfo?.currentExp ?? '-'}",
semanticsLabel: "当前${levelInfo?.currentExp ?? '-'}",
semanticsLabel:
"当前${levelInfo?.currentExp ?? '-'}",
style: TextStyle(
fontSize: Theme.of(context)
.textTheme
@@ -267,6 +269,7 @@ class _MinePageState extends State<MinePage> {
const SizedBox(width: 20),
],
),
),
const SizedBox(height: 10),
SizedBox(
width: 240,