Skip to content

Commit 1786e5e

Browse files
committed
fix: swipe to change page in details screen
1 parent 80d7a8d commit 1786e5e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/Screens/Detail/MediaScreen.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'dart:ui';
2+
13
import 'package:blur/blur.dart';
24
import 'package:dantotsu/Functions/Extensions.dart';
35
import 'package:dantotsu/Screens/Detail/Tabs/Info/InfoPage.dart';
@@ -88,6 +90,13 @@ class MediaInfoPageState extends State<MediaInfoPage> {
8890
return ExpandablePageView(
8991
controller: pageController,
9092
onPageChanged: (index) => _selectedIndex.value = index,
93+
scrollBehavior: ScrollConfiguration.of(context).copyWith(
94+
dragDevices: {
95+
PointerDeviceKind.touch,
96+
PointerDeviceKind.mouse,
97+
PointerDeviceKind.trackpad
98+
},
99+
),
91100
children: [
92101
loaded
93102
? SingleChildScrollView(child: InfoPage(mediaData: mediaData))

0 commit comments

Comments
 (0)