fix: 补充更多的heroTag,直接传入避免问题

This commit is contained in:
orz12
2024-06-02 13:27:39 +08:00
parent 3dd4fef45a
commit 03b97c5f43
7 changed files with 50 additions and 24 deletions

View File

@@ -21,9 +21,11 @@ import 'widgets/intro_detail.dart';
class BangumiIntroPanel extends StatefulWidget {
final int? cid;
final String heroTag;
const BangumiIntroPanel({
Key? key,
this.cid,
required this.heroTag,
}) : super(key: key);
@override
@@ -46,7 +48,8 @@ class _BangumiIntroPanelState extends State<BangumiIntroPanel>
@override
void initState() {
super.initState();
heroTag = Get.arguments['heroTag'];
// heroTag = Get.arguments['heroTag'];
heroTag = widget.heroTag;
cid = widget.cid!;
bangumiIntroController = Get.put(BangumiIntroController(), tag: heroTag);
videoDetailCtr = Get.find<VideoDetailController>(tag: heroTag);