mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 补充更多的heroTag,直接传入避免问题
This commit is contained in:
@@ -10,8 +10,8 @@ import '../../../../utils/grid.dart';
|
||||
import './controller.dart';
|
||||
|
||||
class RelatedVideoPanel extends StatefulWidget {
|
||||
const RelatedVideoPanel({super.key});
|
||||
|
||||
const RelatedVideoPanel({super.key, required this.heroTag});
|
||||
final String heroTag;
|
||||
@override
|
||||
State<RelatedVideoPanel> createState() => _RelatedVideoPanelState();
|
||||
}
|
||||
@@ -27,8 +27,7 @@ class _RelatedVideoPanelState extends State<RelatedVideoPanel>
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_releatedController =
|
||||
Get.put(ReleatedController(), tag: Get.arguments?['heroTag']);
|
||||
_releatedController = Get.put(ReleatedController(), tag: widget.heroTag);
|
||||
_futureBuilder = _releatedController.queryRelatedVideo();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user