ninest / swipeable_card

🂱 [WIP] A Flutter package to implement smooth swipeable playing card like-widgets
https://pub.dev/packages/swipeable_card
BSD 2-Clause "Simplified" License
22 stars 4 forks source link

Add customizable scroll sensitivity #4

Open ninest opened 4 years ago

ninest commented 4 years ago

Sensitivity is the multiplier value for card scrolling.

Something like this:

_childAlign = Alignment(
   _childAlign.x + SENSITIVITY * details.delta.dx / screenWidth,
   _childAlign.y + SENSITIVITY * details.delta.dy / screenHeight,
);