opt init recognizer

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-09 09:44:41 +08:00
parent 0cb07aef1c
commit 32cd3209d0
11 changed files with 28 additions and 27 deletions

View File

@@ -97,12 +97,8 @@ class _IntroDetailState extends State<PgcIntroPanel>
return TabBarView<TabBarDragGestureRecognizer>(
controller: _tabController,
physics: const CustomTabBarViewScrollPhysics(),
horizontalDragGestureRecognizer: TabBarDragGestureRecognizer(
isDxAllowed: (double dx) => enableSlide
? dx > CommonSlideMixin.offset &&
dx < maxWidth - CommonSlideMixin.offset
: true,
),
horizontalDragGestureRecognizer: () =>
TabBarDragGestureRecognizer(isDxAllowed: isDxAllowed),
children: [
KeepAliveWrapper(builder: (context) => _buildInfo(theme)),
PgcReviewPage(