mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: article blocked item
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -356,30 +356,33 @@ Widget moduleBlockedItem(
|
|||||||
|
|
||||||
if (moduleBlocked.blockedType == 1) {
|
if (moduleBlocked.blockedType == 1) {
|
||||||
maxWidth = maxWidth <= 255 ? maxWidth : min(400, maxWidth * 0.8);
|
maxWidth = maxWidth <= 255 ? maxWidth : min(400, maxWidth * 0.8);
|
||||||
return Container(
|
return UnconstrainedBox(
|
||||||
width: maxWidth,
|
alignment: Alignment.centerLeft,
|
||||||
height: maxWidth,
|
child: Container(
|
||||||
decoration: bgImg(),
|
width: maxWidth,
|
||||||
padding: const EdgeInsets.all(12),
|
height: maxWidth,
|
||||||
child: Column(
|
decoration: bgImg(),
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
padding: const EdgeInsets.all(12),
|
||||||
children: [
|
child: Column(
|
||||||
if (moduleBlocked.icon != null) icon(max(40, maxWidth / 7)),
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
if (moduleBlocked.hintMessage != null) ...[
|
children: [
|
||||||
const SizedBox(height: 5),
|
if (moduleBlocked.icon != null) icon(max(40, maxWidth / 7)),
|
||||||
Text(
|
if (moduleBlocked.hintMessage != null) ...[
|
||||||
moduleBlocked.hintMessage!,
|
const SizedBox(height: 5),
|
||||||
textAlign: TextAlign.center,
|
Text(
|
||||||
style: TextStyle(color: theme.colorScheme.outline),
|
moduleBlocked.hintMessage!,
|
||||||
),
|
textAlign: TextAlign.center,
|
||||||
|
style: TextStyle(color: theme.colorScheme.outline),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
if (moduleBlocked.button != null) ...[
|
||||||
|
const SizedBox(height: 8),
|
||||||
|
btn(
|
||||||
|
visualDensity: const VisualDensity(vertical: -2.5),
|
||||||
|
),
|
||||||
|
],
|
||||||
],
|
],
|
||||||
if (moduleBlocked.button != null) ...[
|
),
|
||||||
const SizedBox(height: 8),
|
|
||||||
btn(
|
|
||||||
visualDensity: const VisualDensity(vertical: -2.5),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ Widget forWard(
|
|||||||
: item.modules.moduleDynamic?.major?.blocked != null
|
: item.modules.moduleDynamic?.major?.blocked != null
|
||||||
? _blockedItem(
|
? _blockedItem(
|
||||||
theme, item.modules.moduleDynamic!.major!.blocked!)
|
theme, item.modules.moduleDynamic!.major!.blocked!)
|
||||||
: const SizedBox(height: 0);
|
: const SizedBox.shrink();
|
||||||
case 'DYNAMIC_TYPE_PGC':
|
case 'DYNAMIC_TYPE_PGC':
|
||||||
return videoSeasonWidget(theme, source, item, context, 'pgc',
|
return videoSeasonWidget(theme, source, item, context, 'pgc',
|
||||||
floor: floor);
|
floor: floor);
|
||||||
|
|||||||
Reference in New Issue
Block a user