mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: lint
mod: tweaks opt: publish page Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -45,7 +45,7 @@ InlineSpan picsNodes(
|
||||
|
||||
Widget _blockedItem(ThemeData theme, ModuleBlocked moduleBlocked) {
|
||||
return Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 13, vertical: 1),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 13, vertical: 1),
|
||||
child: LayoutBuilder(
|
||||
builder: (context, constraints) {
|
||||
return moduleBlockedItem(theme, moduleBlocked, constraints.maxWidth);
|
||||
@@ -66,9 +66,6 @@ Widget forWard(
|
||||
switch (item.type) {
|
||||
// 图文
|
||||
case 'DYNAMIC_TYPE_DRAW':
|
||||
bool hasPics =
|
||||
item.modules.moduleDynamic?.major?.opus?.pics?.isNotEmpty == true;
|
||||
|
||||
TextSpan? richNodes = richNode(theme, item, context);
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
@@ -110,12 +107,12 @@ Widget forWard(
|
||||
? null
|
||||
: TextOverflow.ellipsis,
|
||||
),
|
||||
if (hasPics) ...[
|
||||
if (item.modules.moduleDynamic?.major?.opus?.pics?.isNotEmpty ==
|
||||
true)
|
||||
Text.rich(
|
||||
picsNodes(
|
||||
item.modules.moduleDynamic!.major!.opus!.pics!, callback),
|
||||
),
|
||||
],
|
||||
const SizedBox(height: 4),
|
||||
],
|
||||
Padding(
|
||||
|
||||
Reference in New Issue
Block a user