fix: 使用heroTag解决同一页面controller不刷新的问题

This commit is contained in:
guozhigq
2023-04-21 23:56:28 +08:00
parent d668da67b9
commit 572d2a4139
4 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ class VideoDetailPage extends StatefulWidget {
class _VideoDetailPageState extends State<VideoDetailPage> {
final VideoDetailController videoDetailController =
Get.put(VideoDetailController());
Get.put(VideoDetailController(), tag: Get.arguments['heroTag']);
@override
Widget build(BuildContext context) {