mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: save dyn live cover
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -65,6 +65,18 @@ class DynamicPanel extends StatelessWidget {
|
||||
title: item.modules.moduleDynamic.major.pgc.title,
|
||||
cover: item.modules.moduleDynamic.major.pgc.cover,
|
||||
);
|
||||
} else if (item.type == 'DYNAMIC_TYPE_LIVE_RCMD') {
|
||||
imageSaveDialog(
|
||||
context: context,
|
||||
title: item.modules.moduleDynamic.major.liveRcmd.title,
|
||||
cover: item.modules.moduleDynamic.major.liveRcmd.cover,
|
||||
);
|
||||
} else if (item.type == 'DYNAMIC_TYPE_LIVE') {
|
||||
imageSaveDialog(
|
||||
context: context,
|
||||
title: item.modules.moduleDynamic.major.live.title,
|
||||
cover: item.modules.moduleDynamic.major.live.cover,
|
||||
);
|
||||
}
|
||||
},
|
||||
child: Column(
|
||||
|
||||
@@ -166,6 +166,18 @@ Widget forWard(item, context, source, callback, {floor = 1}) {
|
||||
title: item.orig.modules.moduleDynamic.major.pgc.title,
|
||||
cover: item.orig.modules.moduleDynamic.major.pgc.cover,
|
||||
);
|
||||
} else if (item.type == 'DYNAMIC_TYPE_LIVE_RCMD') {
|
||||
imageSaveDialog(
|
||||
context: context,
|
||||
title: item.modules.moduleDynamic.major.liveRcmd.title,
|
||||
cover: item.modules.moduleDynamic.major.liveRcmd.cover,
|
||||
);
|
||||
} else if (item.type == 'DYNAMIC_TYPE_LIVE') {
|
||||
imageSaveDialog(
|
||||
context: context,
|
||||
title: item.modules.moduleDynamic.major.live.title,
|
||||
cover: item.modules.moduleDynamic.major.live.cover,
|
||||
);
|
||||
}
|
||||
},
|
||||
child: Container(
|
||||
|
||||
@@ -151,7 +151,6 @@ class _UpPanelState extends State<UpPanel> {
|
||||
}
|
||||
},
|
||||
onLongPress: () {
|
||||
feedBack();
|
||||
if (data.mid == -1) {
|
||||
return;
|
||||
}
|
||||
@@ -187,7 +186,7 @@ class _UpPanelState extends State<UpPanel> {
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
top: 0,
|
||||
top: data.type == 'live' ? -5 : 0,
|
||||
right: data.type == 'live' ? -6 : 4,
|
||||
child: Badge(
|
||||
smallSize: 8,
|
||||
@@ -198,7 +197,10 @@ class _UpPanelState extends State<UpPanel> {
|
||||
isLabelVisible: data.type == 'live' ||
|
||||
(data.type == 'up' && (data.hasUpdate ?? false)),
|
||||
backgroundColor: data.type == 'live'
|
||||
? Theme.of(context).colorScheme.secondaryContainer
|
||||
? Theme.of(context)
|
||||
.colorScheme
|
||||
.secondaryContainer
|
||||
.withOpacity(0.75)
|
||||
: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user