mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 04:58:41 +00:00
@@ -54,7 +54,7 @@ class LocalIntroController extends CommonIntroController {
|
||||
final controller = Get.find<DownloadPageController>();
|
||||
final list = <BiliDownloadEntryInfo>[];
|
||||
for (final e in controller.pages) {
|
||||
final items = e.entrys..sort((a, b) => a.sortKey.compareTo(b.sortKey));
|
||||
final items = e.entries..sort((a, b) => a.sortKey.compareTo(b.sortKey));
|
||||
final completed = items.where((e) => e.isCompleted);
|
||||
list.addAllIf(completed.isNotEmpty, completed);
|
||||
if (completed.length == 1) {
|
||||
|
||||
@@ -91,12 +91,12 @@ class _PgcIntroPageState extends State<PgcIntroPage> {
|
||||
),
|
||||
);
|
||||
if (!introController.isPgc) {
|
||||
final breif = _buildBreif(item);
|
||||
if (breif != null) {
|
||||
final brief = _buildBrief(item);
|
||||
if (brief != null) {
|
||||
sliver = SliverMainAxisGroup(
|
||||
slivers: [
|
||||
sliver,
|
||||
breif,
|
||||
brief,
|
||||
],
|
||||
);
|
||||
}
|
||||
@@ -109,7 +109,7 @@ class _PgcIntroPageState extends State<PgcIntroPage> {
|
||||
);
|
||||
}
|
||||
|
||||
Widget? _buildBreif(PgcInfoModel item) {
|
||||
Widget? _buildBrief(PgcInfoModel item) {
|
||||
final img = item.brief?.img;
|
||||
if (img != null && img.isNotEmpty) {
|
||||
final maxWidth = widget.maxWidth - 24;
|
||||
|
||||
@@ -68,11 +68,11 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
bool alwaysExapndIntroPanel = Pref.alwaysExapndIntroPanel;
|
||||
bool alwaysExpandIntroPanel = Pref.alwaysExpandIntroPanel;
|
||||
expandableCtr = ExpandableController(
|
||||
initialExpanded: alwaysExapndIntroPanel,
|
||||
initialExpanded: alwaysExpandIntroPanel,
|
||||
);
|
||||
if (!alwaysExapndIntroPanel && Pref.exapndIntroPanelH) {
|
||||
if (!alwaysExpandIntroPanel && Pref.expandIntroPanelH) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (!expandableCtr.expanded && Get.context!.isLandscape) {
|
||||
expandableCtr.toggle();
|
||||
|
||||
@@ -31,7 +31,7 @@ class PagesPanel extends StatefulWidget {
|
||||
final Function? showEpisodes;
|
||||
final UgcIntroController ugcIntroController;
|
||||
|
||||
final Set<int?>? cidSet;
|
||||
final Set<int>? cidSet;
|
||||
final bool Function(Part part)? onDownload;
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user