mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: reply page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -48,7 +48,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
|||||||
with AutomaticKeepAliveClientMixin, TickerProviderStateMixin {
|
with AutomaticKeepAliveClientMixin, TickerProviderStateMixin {
|
||||||
late VideoReplyController _videoReplyController;
|
late VideoReplyController _videoReplyController;
|
||||||
|
|
||||||
late String heroTag;
|
String get heroTag => widget.heroTag;
|
||||||
|
|
||||||
// 添加页面缓存
|
// 添加页面缓存
|
||||||
@override
|
@override
|
||||||
@@ -57,19 +57,12 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
// int oid = widget.bvid != null ? IdUtils.bv2av(widget.bvid!) : 0;
|
|
||||||
// heroTag = Get.arguments['heroTag'];
|
|
||||||
heroTag = widget.heroTag;
|
|
||||||
_videoReplyController = Get.find<VideoReplyController>(tag: heroTag);
|
_videoReplyController = Get.find<VideoReplyController>(tag: heroTag);
|
||||||
|
|
||||||
if (widget.needController != false) {
|
|
||||||
_videoReplyController.scrollController.addListener(listener);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void didUpdateWidget(VideoReplyPanel oldWidget) {
|
void didChangeDependencies() {
|
||||||
super.didUpdateWidget(oldWidget);
|
super.didChangeDependencies();
|
||||||
_videoReplyController.showFab();
|
_videoReplyController.showFab();
|
||||||
if (widget.needController != false) {
|
if (widget.needController != false) {
|
||||||
_videoReplyController.scrollController.addListener(listener);
|
_videoReplyController.scrollController.addListener(listener);
|
||||||
|
|||||||
Reference in New Issue
Block a user