Skip to content

v2.0.2

Compare
Choose a tag to compare
@Daniel-Ioannou Daniel-Ioannou released this 17 Jul 17:51
· 13 commits to master since this release
2ec38f6

In this version:

  • Add context to 'onPressed' for BottomSheetAction.
    showAdaptiveActionSheet(
      context: context,
      title: const Text('Title'),
      actions: <BottomSheetAction>[
      BottomSheetAction(title: const Text('Item 1'), onPressed: (context) {}),
      BottomSheetAction(title: const Text('Item 2'), onPressed: (context) {}),
      BottomSheetAction(title: const Text('Item 3'), onPressed: (context) {}),
      ],
      cancelAction: CancelAction(title: const Text('Cancel')),// onPressed parameter is optional by default will dismiss the ActionSheet
    );