opt: custom scroll for better scroll and add trackpad support

This commit is contained in:
Kingtous
2022-09-19 21:09:54 +08:00
parent e1ab01a97f
commit df5a2ab556
5 changed files with 16 additions and 5 deletions

View File

@@ -852,7 +852,9 @@ class _PeerTabbedPageState extends State<_PeerTabbedPage>
Widget _createTabBarView() {
return Expanded(
child: PageView(
controller: _pageController, children: super.widget.children)
physics: NeverScrollableScrollPhysics(),
controller: _pageController,
children: super.widget.children)
.marginSymmetric(vertical: 12));
}