mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-08 11:07:41 +08:00
@@ -40,10 +40,16 @@ class PgcPage extends StatefulWidget {
|
||||
class _PgcPageState extends CommonPageState<PgcPage, PgcController>
|
||||
with AutomaticKeepAliveClientMixin {
|
||||
@override
|
||||
late PgcController controller = Get.put(
|
||||
PgcController(tabType: widget.tabType),
|
||||
tag: widget.tabType.name,
|
||||
);
|
||||
late final PgcController controller;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
controller = Get.put(
|
||||
PgcController(tabType: widget.tabType),
|
||||
tag: widget.tabType.name,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
bool get wantKeepAlive => true;
|
||||
|
||||
Reference in New Issue
Block a user