mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-10 19:20:12 +08:00
mod: widget
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,22 +447,22 @@ class UserInfoCard extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
_buildAvatar(BuildContext context) => Container(
|
_buildAvatar(BuildContext context) => Hero(
|
||||||
decoration: BoxDecoration(
|
tag: card.face ?? '',
|
||||||
border: Border.all(
|
child: GestureDetector(
|
||||||
width: 2.5,
|
onTap: () {
|
||||||
color: Theme.of(context).colorScheme.surface,
|
context.imageView(
|
||||||
),
|
imgList: [SourceModel(url: card.face ?? '')],
|
||||||
shape: BoxShape.circle,
|
);
|
||||||
),
|
},
|
||||||
child: Hero(
|
child: Container(
|
||||||
tag: card.face ?? 'avatarTag',
|
decoration: BoxDecoration(
|
||||||
child: GestureDetector(
|
border: Border.all(
|
||||||
onTap: () {
|
width: 2.5,
|
||||||
context.imageView(
|
color: Theme.of(context).colorScheme.surface,
|
||||||
imgList: [SourceModel(url: card.face ?? 'avatarTag')],
|
),
|
||||||
);
|
shape: BoxShape.circle,
|
||||||
},
|
),
|
||||||
child: NetworkImgLayer(
|
child: NetworkImgLayer(
|
||||||
src: card.face,
|
src: card.face,
|
||||||
type: 'avatar',
|
type: 'avatar',
|
||||||
|
|||||||
@@ -1962,10 +1962,12 @@ class VideoDetailController extends GetxController
|
|||||||
viewPointList.clear();
|
viewPointList.clear();
|
||||||
|
|
||||||
// sponsor block
|
// sponsor block
|
||||||
positionSubscription?.cancel();
|
if (enableSponsorBlock) {
|
||||||
videoLabel.value = '';
|
positionSubscription?.cancel();
|
||||||
segmentList.clear();
|
videoLabel.value = '';
|
||||||
_segmentProgressList = null;
|
segmentList.clear();
|
||||||
|
_segmentProgressList = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
late final showDmChart = GStorage.showDmChart;
|
late final showDmChart = GStorage.showDmChart;
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user