Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-31 13:10:09 +08:00
parent dbc7bcd0dd
commit 8964197b73
68 changed files with 560 additions and 293 deletions

View File

@@ -25,10 +25,16 @@ class PgcIndexPage extends StatefulWidget {
class _PgcIndexPageState extends State<PgcIndexPage>
with AutomaticKeepAliveClientMixin {
late final _ctr = Get.put(
PgcIndexController(widget.indexType),
tag: '${widget.indexType}',
);
late final PgcIndexController _ctr;
@override
void initState() {
super.initState();
_ctr = Get.put(
PgcIndexController(widget.indexType),
tag: widget.indexType.toString(),
);
}
@override
bool get wantKeepAlive => widget.indexType != null;
@@ -141,7 +147,7 @@ class _PgcIndexPageState extends State<PgcIndexPage>
..onReload(),
);
}
throw UnsupportedError(item.runtimeType.toString());
throw UnsupportedError(item.toString());
}
Widget _buildSortsWidget(