fix two finger scroll

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2022-12-24 14:29:32 +08:00
parent 54ce0a9775
commit a5643a6b59
2 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,7 @@ class _DesktopSettingPageState extends State<DesktopSettingPage>
scrollController: controller,
child: PageView(
controller: controller,
physics: NeverScrollableScrollPhysics(),
children: const [
_General(),
_Safety(),

View File

@ -331,6 +331,7 @@ class DesktopTab extends StatelessWidget {
return _buildBlock(
child: Obx(() => PageView(
controller: state.value.pageController,
physics: NeverScrollableScrollPhysics(),
children: state.value.tabs
.map((tab) => tab.page)
.toList(growable: false))));