Skip to content

Commit ad553aa

Browse files
committed
perf(ActionSheet): click on the ActionSheet and it shuts down
1 parent acd547f commit ad553aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/action_sheet.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class ActionSheet {
2626
text: data.elementAt(i),
2727
onPressed: () {
2828
if (onPress != null) onPress(ActionSheetPressDetails(index: i, text: data.elementAt(i)));
29+
Navigator.of(context).pop();
2930
},
3031
));
3132
if (i != 0) widgets.insert(0, Divider(height: 1 / MediaQuery.of(context).devicePixelRatio));

0 commit comments

Comments
 (0)