fix: ctr tag

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-12 09:36:40 +08:00
parent 2a73725455
commit 5f2ac0d59b
10 changed files with 28 additions and 8 deletions

View File

@@ -15,10 +15,12 @@ class NoteListPage extends CommonSlidePage {
const NoteListPage({
super.key,
super.enableSlide,
required this.heroTag,
this.oid,
this.upperMid,
});
final dynamic heroTag;
final dynamic oid;
final dynamic upperMid;
@@ -29,11 +31,12 @@ class NoteListPage extends CommonSlidePage {
class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
late final _controller = Get.put(
NoteListPageCtr(oid: widget.oid, upperMid: widget.upperMid),
tag: widget.heroTag,
);
@override
void dispose() {
Get.delete<NoteListPageCtr>();
Get.delete<NoteListPageCtr>(tag: widget.heroTag);
super.dispose();
}