Allow Swiping Gestures to Switch Column (#246)

It is now possible to switch the column in a deck by swiping to the left
/ right.
This commit is contained in:
Rico Berger
2025-04-19 15:31:57 +02:00
committed by GitHub
parent bf95846e6c
commit 6a3b481219

View File

@@ -125,8 +125,17 @@ class DeckLayoutSmall extends StatelessWidget {
);
}
/// Return the TabBarView. Since it was requested in
/// https://github.com/feeddeck/feeddeck/issues/228 we removed the
/// `physics: const NeverScrollableScrollPhysics()` property, so that a user
/// can switch between tabs by swiping to the left and to the right.
///
/// After testing this didn't conflicted with the other scroll and swipe
/// gestures of the children, so it should be save to activate. In case this
/// doesn't workout well in the long term, we should re-add the `physics`
/// property to the widget.
return TabBarView(
physics: const NeverScrollableScrollPhysics(),
// physics: const NeverScrollableScrollPhysics(),
children: widgets,
);
}