Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-14 12:35:52 +08:00
parent 34e9afd7ad
commit 6ff256637a
18 changed files with 583 additions and 436 deletions

View File

@@ -3,13 +3,13 @@ import 'package:PiliPlus/pages/article/widgets/opus_content.dart'
show moduleBlockedItem;
import 'package:flutter/material.dart';
Widget blockedItem(ThemeData theme, ModuleBlocked moduleBlocked) {
Widget blockedItem(
ThemeData theme,
ModuleBlocked moduleBlocked, {
required double maxWidth,
}) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 13, vertical: 1),
child: LayoutBuilder(
builder: (context, constraints) {
return moduleBlockedItem(theme, moduleBlocked, constraints.maxWidth);
},
),
child: moduleBlockedItem(theme, moduleBlocked, maxWidth - 26),
);
}