fix typos

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-05 11:35:47 +08:00
parent b4a46133be
commit ea52dd4484
51 changed files with 162 additions and 162 deletions

View File

@@ -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) {

View File

@@ -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;

View File

@@ -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();

View File

@@ -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