swipeable
swipeable copied to clipboard
A widget that emits events when swiped past a threshold
- feature: added `direction` prop that allows restricting the swipe to a specific direction - feature: adds `onPastThreshold`, `onPastThresholdStart`, `onPastThresholdReleased` and `onPastThresholdEnd` callbacks - feature: adds callbacks from https://github.com/johnpryan/swipeable/pull/4 -...
Added support for null safety and minor updates
Simple conversion to Null Safety. Let me know if you'd like something done differently. Feel free to do whatever with this! :)
Set ``` Container( decoration: BoxDecoration( borderRadius: BorderRadius.all( Radius.circular(8.0), ), color: Colors.white), child: ListTile( title: Text('text'), ), ), ``` And everything works fine with SwipeDirection.startToEnd. Changing it to SwipeDirectionEndToStart makes this...
This pull request extends the functionality by providing two seperate backgrounds depending on the swipe direction. Also the background will be now filled to the whole tile and be clipped...