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

@@ -1615,18 +1615,20 @@ class VideoDetailController extends GetxController
child: NoteListPage(
oid: oid.value,
enableSlide: false,
heroTag: heroTag,
),
)
: NoteListPage(
oid: oid.value,
enableSlide: false,
heroTag: heroTag,
),
isFullScreen: () => plPlayerController.isFullScreen.value,
);
} else {
childKey.currentState?.showBottomSheet(
backgroundColor: Colors.transparent,
(context) => NoteListPage(oid: oid.value),
(context) => NoteListPage(oid: oid.value, heroTag: heroTag),
);
}
}

View File

@@ -8,6 +8,7 @@ import 'package:PiliPlus/common/widgets/stat/danmu.dart';
import 'package:PiliPlus/common/widgets/stat/view.dart';
import 'package:PiliPlus/utils/utils.dart';
@Deprecated('deprecated')
class IntroDetail extends StatelessWidget {
const IntroDetail({
super.key,

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

View File

@@ -12,6 +12,7 @@ import 'package:get/get_rx/src/rx_workers/utils/debouncer.dart';
import 'toolbar_icon_button.dart';
@Deprecated('Use ReplyPage instead')
class VideoReplyNewDialog extends StatefulWidget {
final int? oid;
final int? root;