mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 03:15:14 +08:00
@@ -330,7 +330,9 @@ Widget addWidget(
|
||||
width: 45,
|
||||
height: 45,
|
||||
src: e.cover,
|
||||
radius: 6,
|
||||
borderRadius: const BorderRadius.all(
|
||||
Radius.circular(6),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
],
|
||||
@@ -498,7 +500,9 @@ Widget addWidget(
|
||||
width: 45,
|
||||
height: 45,
|
||||
src: content.cover,
|
||||
radius: 6,
|
||||
borderRadius: const BorderRadius.all(
|
||||
Radius.circular(6),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
],
|
||||
@@ -567,7 +571,7 @@ Widget addWidget(
|
||||
mainAxisSize: .min,
|
||||
children: [
|
||||
NetworkImgLayer(
|
||||
radius: 0,
|
||||
type: .emote,
|
||||
width: 30,
|
||||
height: 30,
|
||||
src: team.pic,
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'package:PiliPlus/common/widgets/badge.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
import 'package:PiliPlus/models/common/badge_type.dart';
|
||||
import 'package:PiliPlus/models/dynamics/result.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
Widget livePanelSub(
|
||||
@@ -58,6 +59,7 @@ Widget livePanelSub(
|
||||
top: 6,
|
||||
child: Image.asset(
|
||||
height: 16,
|
||||
cacheHeight: 16.cacheSize(context),
|
||||
'assets/images/live/live.gif',
|
||||
filterQuality: FilterQuality.low,
|
||||
),
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'package:PiliPlus/common/widgets/badge.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
import 'package:PiliPlus/models/common/badge_type.dart';
|
||||
import 'package:PiliPlus/models/dynamics/result.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
Widget liveRcmdPanel(
|
||||
@@ -52,6 +53,7 @@ Widget liveRcmdPanel(
|
||||
top: 6,
|
||||
child: Image.asset(
|
||||
height: 16,
|
||||
cacheHeight: 16.cacheSize(context),
|
||||
'assets/images/live/live.gif',
|
||||
filterQuality: FilterQuality.low,
|
||||
),
|
||||
|
||||
@@ -224,10 +224,12 @@ Widget module(
|
||||
spacing: 10,
|
||||
children: [
|
||||
NetworkImgLayer(
|
||||
radius: 8,
|
||||
width: 45,
|
||||
height: 45,
|
||||
src: music.cover,
|
||||
borderRadius: const BorderRadius.all(
|
||||
Radius.circular(8),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: Column(
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:PiliPlus/models/dynamics/up.dart';
|
||||
import 'package:PiliPlus/pages/dynamics/controller.dart';
|
||||
import 'package:PiliPlus/pages/live_follow/view.dart';
|
||||
import 'package:PiliPlus/utils/accounts.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:PiliPlus/utils/feed_back.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:PiliPlus/utils/platform_utils.dart';
|
||||
@@ -150,41 +151,64 @@ class _UpPanelState extends State<UpPanel> {
|
||||
|
||||
Widget avatar;
|
||||
if (isAll) {
|
||||
avatar = const CircleAvatar(
|
||||
backgroundColor: Color(0xFF5CB67B),
|
||||
backgroundImage: AssetImage('assets/images/logo/logo.png'),
|
||||
avatar = DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
shape: .circle,
|
||||
border: Border.all(
|
||||
width: 5,
|
||||
color: const Color(0xFF5CB67B),
|
||||
),
|
||||
),
|
||||
child: Image.asset(
|
||||
width: 38,
|
||||
height: 38,
|
||||
cacheWidth: 38.cacheSize(context),
|
||||
'assets/images/logo/logo.png',
|
||||
),
|
||||
);
|
||||
} else {
|
||||
avatar = Stack(
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||
child: NetworkImgLayer(
|
||||
width: 38,
|
||||
height: 38,
|
||||
src: data.face,
|
||||
type: ImageType.avatar,
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
top: isLive && !isTop ? -5 : 0,
|
||||
right: isLive ? -6 : 4,
|
||||
child: Badge(
|
||||
smallSize: 8,
|
||||
label: isLive ? const Text(' Live ') : null,
|
||||
textColor: theme.colorScheme.onSecondaryContainer,
|
||||
alignment: AlignmentDirectional.topStart,
|
||||
isLabelVisible: isLive || (data.hasUpdate ?? false),
|
||||
backgroundColor: isLive
|
||||
? theme.colorScheme.secondaryContainer.withValues(
|
||||
alpha: 0.75,
|
||||
)
|
||||
: theme.colorScheme.primary,
|
||||
),
|
||||
),
|
||||
],
|
||||
avatar = Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||
child: NetworkImgLayer(
|
||||
width: 38,
|
||||
height: 38,
|
||||
src: data.face,
|
||||
type: ImageType.avatar,
|
||||
),
|
||||
);
|
||||
if (isLive) {
|
||||
avatar = Stack(
|
||||
clipBehavior: .none,
|
||||
children: [
|
||||
avatar,
|
||||
Positioned(
|
||||
top: isLive && !isTop ? -5 : 0,
|
||||
right: -6,
|
||||
child: Badge(
|
||||
label: const Text(' Live '),
|
||||
textColor: theme.colorScheme.onSecondaryContainer,
|
||||
backgroundColor: theme.colorScheme.secondaryContainer
|
||||
.withValues(alpha: 0.75),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
} else if (data.hasUpdate ?? false) {
|
||||
avatar = Stack(
|
||||
clipBehavior: .none,
|
||||
children: [
|
||||
avatar,
|
||||
Positioned(
|
||||
top: 0,
|
||||
right: 4,
|
||||
child: Badge(
|
||||
smallSize: 8,
|
||||
backgroundColor: theme.colorScheme.primary,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return SizedBox(
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:PiliPlus/common/widgets/badge.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
import 'package:PiliPlus/models/common/badge_type.dart';
|
||||
import 'package:PiliPlus/models/dynamics/result.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:PiliPlus/utils/num_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -123,6 +124,7 @@ Widget videoSeasonWidget(
|
||||
'assets/images/play.png',
|
||||
width: 50,
|
||||
height: 50,
|
||||
cacheHeight: 50.cacheSize(context),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -339,7 +339,7 @@ class _VotePanelState extends State<VotePanel> {
|
||||
src: opt.imgUrl,
|
||||
width: constraints.maxWidth,
|
||||
height: constraints.maxHeight,
|
||||
radius: 0,
|
||||
type: .emote,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user