Skip to content

Commit 03e38d3

Browse files
committed
禁用项目页to-do轮播栏手势滑动事件
1 parent 57d0ea4 commit 03e38d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/page/home/project/project_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ class _ProjectSubPageState extends State<ProjectSubPage>
420420
height: pt(35),
421421
alignment: Alignment.center,
422422
padding: EdgeInsets.symmetric(horizontal: pt(16)),
423-
//目前Swiper不能禁止掉手势滑动,实际这里禁用掉用户体验会更好。
424423
child: Swiper(
424+
physics: NeverScrollableScrollPhysics(),
425425
onTap: (index) {
426426
Navigator.pushNamed(context, TodoPage.ROUTER_NAME);
427427
},

0 commit comments

Comments
 (0)