Skip to content

Commit

Permalink
fix: 标题过短时右侧无法点击
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Jan 13, 2025
1 parent 27e40ae commit d3abce8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/common/widgets/video_card_h.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class VideoCardH extends StatelessWidget {
CustomSemanticsAction(label: item.title): item.onTap!,
},
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onLongPress: longPress,
onTap: () async {
if (type == 'ketang') {
Expand Down Expand Up @@ -95,7 +96,8 @@ class VideoCardH extends StatelessWidget {
GestureDetector(
onLongPress: () {
// 弹窗显示封面
MyDialog.show(context, OverlayPop(videoItem: videoItem));
MyDialog.show(context,
OverlayPop(videoItem: videoItem));
},
behavior: HitTestBehavior.translucent,
child: Hero(
Expand Down

0 comments on commit d3abce8

Please sign in to comment.