A action bottom sheet that adapts to the platform (Android/iOS).
title
parameter and will be displayed as title in the action sheet.
showAdaptiveActionSheet(
context: context,
title: const Text('Title'),
actions: <BottomSheetAction>[
BottomSheetAction(title: 'Item 1', onPressed: () {}),
BottomSheetAction(title: 'Item 2', onPressed: () {}),
],
cancelAction: CancelAction(title: 'Cancel'),// onPressed parameter is optional by default will dismiss the ActionSheet
);