mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
fix: initialize controller before super (#1827)
This commit is contained in:
@@ -44,11 +44,11 @@ class _PgcPageState extends CommonPageState<PgcPage, PgcController>
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
|
||||||
controller = Get.put(
|
controller = Get.put(
|
||||||
PgcController(tabType: widget.tabType),
|
PgcController(tabType: widget.tabType),
|
||||||
tag: widget.tabType.name,
|
tag: widget.tabType.name,
|
||||||
);
|
);
|
||||||
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -27,11 +27,11 @@ class _ZonePageState extends CommonPageState<ZonePage, ZoneController>
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
|
||||||
controller = Get.put(
|
controller = Get.put(
|
||||||
ZoneController(rid: widget.rid, seasonType: widget.seasonType),
|
ZoneController(rid: widget.rid, seasonType: widget.seasonType),
|
||||||
tag: '${widget.rid}${widget.seasonType}',
|
tag: '${widget.rid}${widget.seasonType}',
|
||||||
);
|
);
|
||||||
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
Reference in New Issue
Block a user