Skip to content

Commit 211c8a1

Browse files
committed
clean up onDismissed function
1 parent 6f06afa commit 211c8a1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

example/lib/main.dart

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ EventsView renderEventsHandler(List<DataModel> events) {
4747
// key needs to be more unique
4848
key: new ValueKey<int>((events[index] as Event).id),
4949
direction: DismissDirection.horizontal,
50-
onDismissed: (DismissDirection direction) async {
50+
onDismissed: (DismissDirection direction) {
5151
print(direction);
52-
events.removeAt(index);
53-
// await removeEventAction(index);
52+
removeEventAction(index);
5453
print('done removing');
5554
},
5655
onResize: () {

0 commit comments

Comments
 (0)