We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
onDismissed
1 parent 6f06afa commit 211c8a1Copy full SHA for 211c8a1
example/lib/main.dart
@@ -47,10 +47,9 @@ EventsView renderEventsHandler(List<DataModel> events) {
47
// key needs to be more unique
48
key: new ValueKey<int>((events[index] as Event).id),
49
direction: DismissDirection.horizontal,
50
- onDismissed: (DismissDirection direction) async {
+ onDismissed: (DismissDirection direction) {
51
print(direction);
52
- events.removeAt(index);
53
- // await removeEventAction(index);
+ removeEventAction(index);
54
print('done removing');
55
},
56
onResize: () {
0 commit comments