mod: 修改样式
This commit is contained in:
@ -140,13 +140,6 @@ class _DynamicsPageState extends State<DynamicsPage>
|
||||
thumbDecoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.background,
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
border: Border.all(
|
||||
width: 1,
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.surfaceVariant
|
||||
.withOpacity(0.7),
|
||||
),
|
||||
),
|
||||
duration: const Duration(milliseconds: 300),
|
||||
curve: Curves.easeInOut,
|
||||
|
||||
@ -13,8 +13,9 @@ final DynamicsController _dynamicsController = Get.put(DynamicsController());
|
||||
Widget liveRcmdPanel(item, context, {floor = 1}) {
|
||||
TextStyle authorStyle =
|
||||
TextStyle(color: Theme.of(context).colorScheme.primary);
|
||||
int liveStatus = item.modules.moduleDynamic.major.liveRcmd.liveStatus;
|
||||
DynamicLiveModel liveRcmd = item.modules.moduleDynamic.major.liveRcmd;
|
||||
int liveStatus = liveRcmd.liveStatus!;
|
||||
Map watchedShow = liveRcmd.watchedShow!;
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
@ -74,6 +75,8 @@ Widget liveRcmdPanel(item, context, {floor = 1}) {
|
||||
src: item.modules.moduleDynamic.major.liveRcmd.cover,
|
||||
),
|
||||
),
|
||||
pBadge(watchedShow['text_large'], context, 6, 56, null, null,
|
||||
type: 'gray'),
|
||||
pBadge(
|
||||
liveStatus == 1 ? '直播中' : '直播结束', context, 6, 6, null, null),
|
||||
Positioned(
|
||||
|
||||
@ -94,7 +94,7 @@ Widget videoSeasonWidget(item, context, type, {floor = 1}) {
|
||||
clipBehavior: Clip.hardEdge,
|
||||
decoration: BoxDecoration(
|
||||
gradient: const LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
begin: Alignment.center,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: <Color>[
|
||||
Colors.transparent,
|
||||
@ -115,7 +115,9 @@ Widget videoSeasonWidget(item, context, type, {floor = 1}) {
|
||||
color: Colors.white),
|
||||
child: Row(
|
||||
children: [
|
||||
Text(content.durationText ?? ''),
|
||||
pBadge(content.durationText ?? '', context, null,
|
||||
null, 0, 0,
|
||||
type: 'gray'),
|
||||
if (content.durationText != null)
|
||||
const SizedBox(width: 10),
|
||||
Text(content.stat.play + '次围观'),
|
||||
|
||||
Reference in New Issue
Block a user