fix: 使用heroTag解决同一页面controller不刷新的问题
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user