diff --git a/lib/pages/video/detail/widgets/header_control.dart b/lib/pages/video/detail/widgets/header_control.dart index 74b67e9f1..bbeff577a 100644 --- a/lib/pages/video/detail/widgets/header_control.dart +++ b/lib/pages/video/detail/widgets/header_control.dart @@ -2278,7 +2278,8 @@ class _HeaderControlState extends State { FontAwesomeIcons.shareFromSquare, color: Colors.white, ), - onTap: videoIntroController.actionShareVideo, + onTap: () => videoIntroController + .actionShareVideo(context), semanticsLabel: '分享', ), ), @@ -2381,7 +2382,8 @@ class _HeaderControlState extends State { FontAwesomeIcons.shareFromSquare, color: Colors.white, ), - onTap: bangumiIntroController.actionShareVideo, + onTap: () => bangumiIntroController + .actionShareVideo(context), semanticsLabel: '转发', ), ),