diff --git a/example/lib/main.dart b/example/lib/main.dart index 0e6a524..361a97a 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -81,14 +81,6 @@ class _ExamplePageState extends State { int? currentIndex, CardSwiperDirection direction, ) { - if (currentIndex?.isEven == true && direction == CardSwiperDirection.left || - currentIndex?.isOdd == true && direction == CardSwiperDirection.right) { - debugPrint( - 'the card $currentIndex was swiped to the: ${direction.name}; Oh, and also your action got canceled', - ); - return false; - } - debugPrint( 'the card $previousIndex was swiped to the ${direction.name}. Now the card $currentIndex is on top', );