mod: widget

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-05 16:22:45 +08:00
parent e098631553
commit 3fc12fcc09
4 changed files with 26 additions and 24 deletions

View File

@@ -79,11 +79,11 @@ class UserInfoCard extends StatelessWidget {
: images.nightImgurl?.http2https) : images.nightImgurl?.http2https)
: images.imgUrl?.http2https; : images.imgUrl?.http2https;
return Hero( return Hero(
tag: imgUrl ?? 'bgTag', tag: imgUrl ?? '',
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () {
context.imageView( context.imageView(
imgList: [SourceModel(url: imgUrl ?? 'bgTag')], imgList: [SourceModel(url: imgUrl ?? '')],
); );
}, },
child: CachedNetworkImage( child: CachedNetworkImage(
@@ -447,7 +447,15 @@ class UserInfoCard extends StatelessWidget {
), ),
); );
_buildAvatar(BuildContext context) => Container( _buildAvatar(BuildContext context) => Hero(
tag: card.face ?? '',
child: GestureDetector(
onTap: () {
context.imageView(
imgList: [SourceModel(url: card.face ?? '')],
);
},
child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border.all( border: Border.all(
width: 2.5, width: 2.5,
@@ -455,14 +463,6 @@ class UserInfoCard extends StatelessWidget {
), ),
shape: BoxShape.circle, shape: BoxShape.circle,
), ),
child: Hero(
tag: card.face ?? 'avatarTag',
child: GestureDetector(
onTap: () {
context.imageView(
imgList: [SourceModel(url: card.face ?? 'avatarTag')],
);
},
child: NetworkImgLayer( child: NetworkImgLayer(
src: card.face, src: card.face,
type: 'avatar', type: 'avatar',

View File

@@ -1962,11 +1962,13 @@ class VideoDetailController extends GetxController
viewPointList.clear(); viewPointList.clear();
// sponsor block // sponsor block
if (enableSponsorBlock) {
positionSubscription?.cancel(); positionSubscription?.cancel();
videoLabel.value = ''; videoLabel.value = '';
segmentList.clear(); segmentList.clear();
_segmentProgressList = null; _segmentProgressList = null;
} }
}
late final showDmChart = GStorage.showDmChart; late final showDmChart = GStorage.showDmChart;
List? dmTrend; List? dmTrend;

View File

@@ -551,7 +551,7 @@ class ReplyItem extends StatelessWidget {
if (replies![i].isUp!) ...[ if (replies![i].isUp!) ...[
const TextSpan(text: ' '), const TextSpan(text: ' '),
const WidgetSpan( const WidgetSpan(
alignment: PlaceholderAlignment.top, alignment: PlaceholderAlignment.middle,
child: PBadge( child: PBadge(
text: 'UP', text: 'UP',
size: 'small', size: 'small',

View File

@@ -585,7 +585,7 @@ class ReplyItemGrpc extends StatelessWidget {
if (replyItem.replies[i].mid == upMid) ...[ if (replyItem.replies[i].mid == upMid) ...[
const TextSpan(text: ' '), const TextSpan(text: ' '),
const WidgetSpan( const WidgetSpan(
alignment: PlaceholderAlignment.top, alignment: PlaceholderAlignment.middle,
child: PBadge( child: PBadge(
text: 'UP', text: 'UP',
size: 'small', size: 'small',