mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: mine page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -8,6 +8,7 @@ import 'package:PiliPlus/http/loading_state.dart';
|
|||||||
import 'package:PiliPlus/pages/live/controller.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.dart';
|
||||||
import 'package:PiliPlus/pages/live/widgets/live_item_follow.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:PiliPlus/utils/utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/rendering.dart';
|
import 'package:flutter/rendering.dart';
|
||||||
@@ -230,6 +231,7 @@ class _LivePageState extends State<LivePage>
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
onLongPress: () {
|
onLongPress: () {
|
||||||
|
feedBack();
|
||||||
Get.toNamed(
|
Get.toNamed(
|
||||||
'/member?mid=${loadingState.response[index].uid}',
|
'/member?mid=${loadingState.response[index].uid}',
|
||||||
arguments: {
|
arguments: {
|
||||||
|
|||||||
@@ -126,23 +126,24 @@ class _MinePageState extends State<MinePage> {
|
|||||||
return Column(
|
return Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
GestureDetector(
|
||||||
|
behavior: HitTestBehavior.translucent,
|
||||||
|
onTap: _mineController.onLogin,
|
||||||
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(width: 20),
|
const SizedBox(width: 20),
|
||||||
GestureDetector(
|
ClipOval(
|
||||||
onTap: _mineController.onLogin,
|
|
||||||
child: ClipOval(
|
|
||||||
child: _mineController.userInfo.value.face != null
|
child: _mineController.userInfo.value.face != null
|
||||||
? NetworkImgLayer(
|
? NetworkImgLayer(
|
||||||
src: _mineController.userInfo.value.face,
|
src: _mineController.userInfo.value.face,
|
||||||
semanticsLabel: '头像',
|
semanticsLabel: '头像',
|
||||||
width: 50,
|
width: 55,
|
||||||
height: 50,
|
height: 55,
|
||||||
)
|
)
|
||||||
: Container(
|
: Container(
|
||||||
width: 50,
|
width: 55,
|
||||||
height: 50,
|
height: 55,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
@@ -154,7 +155,6 @@ class _MinePageState extends State<MinePage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
const SizedBox(width: 16),
|
const SizedBox(width: 16),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -199,7 +199,8 @@ class _MinePageState extends State<MinePage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: (_mineController.userInfo.value.money ?? '-')
|
text:
|
||||||
|
(_mineController.userInfo.value.money ?? '-')
|
||||||
.toString(),
|
.toString(),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: Theme.of(context)
|
fontSize: Theme.of(context)
|
||||||
@@ -222,7 +223,8 @@ class _MinePageState extends State<MinePage> {
|
|||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: "${levelInfo?.currentExp ?? '-'}",
|
text: "${levelInfo?.currentExp ?? '-'}",
|
||||||
semanticsLabel: "当前${levelInfo?.currentExp ?? '-'}",
|
semanticsLabel:
|
||||||
|
"当前${levelInfo?.currentExp ?? '-'}",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: Theme.of(context)
|
fontSize: Theme.of(context)
|
||||||
.textTheme
|
.textTheme
|
||||||
@@ -267,6 +269,7 @@ class _MinePageState extends State<MinePage> {
|
|||||||
const SizedBox(width: 20),
|
const SizedBox(width: 20),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 240,
|
width: 240,
|
||||||
|
|||||||
Reference in New Issue
Block a user