fix: 使用heroTag解决同一页面controller不刷新的问题
This commit is contained in:
@ -11,7 +11,8 @@ class RelatedVideoPanel extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _RelatedVideoPanelState extends State<RelatedVideoPanel> {
|
||||
final ReleatedController _releatedController = Get.put(ReleatedController());
|
||||
final ReleatedController _releatedController =
|
||||
Get.put(ReleatedController(), tag: Get.arguments['heroTag']);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user