How to detect swipe in flutter

Use GestureDetector.onPanUpdate: GestureDetector( onPanUpdate: (details) { // Swiping in right direction. if (details.delta.dx > 0) {} // Swiping in left direction. if (details.delta.dx < 0) {} }, child: YourWidget(), ) To cover all the area (passing the parent constraints to the widget), you can include SizedBox.expand. SizedBox.expand( child: GestureDetector( onPanUpdate: (details) { // Swiping in … Read more

Swipe to Delete and the “More” button (like in Mail app on iOS 7)

How to Implement It looks like iOS 8 opens up this API. Hints of such functionality are present in Beta 2. To get something working, implement the following two methods on your UITableView’s delegate to get the desired effect (see gist for an example). – tableView:editActionsForRowAtIndexPath: – tableView:commitEditingStyle:forRowAtIndexPath: Known Issues The documentation says tableView:commitEditingStyle:forRowAtIndexPath is: … Read more