mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user