mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
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