appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
187 stars 214 forks source link

appinio_swiper 1.1.1 - detect slide #69

Closed Junesui closed 1 year ago

Junesui commented 1 year ago

How to detect whether the sliding is completed, or cancel the left and right sliding

khanmujeeb687 commented 1 year ago

Hey @Junesui , You can use onSwipe callback to know when the swipe is completed. AppinioSwiper( unlimitedUnswipe: true, controller: controller, unswipe: _unswipe, cards: cards, onSwipe: _swipe, padding: const EdgeInsets.only( left: 25, right: 25, top: 50, bottom: 40, ), ),

khanmujeeb687 commented 1 year ago

or cancel the left and right sliding Do you mean how can we restrict the horizontal sliding??