Skip to content

v2.0.3

Latest
Compare
Choose a tag to compare
@Daniel-Ioannou Daniel-Ioannou released this 23 Jan 19:34
· 1 commit to master since this release

In this version:

  • Add useRootNavigator parameter (optional) to set useRootNavigator of showCupertinoModalPopup (Default true) and useRootNavigator of showModalBottomSheet (Default false)
    showAdaptiveActionSheet(
      context: context,
      title: const Text('Title'),
      useRootNavigator: true,
      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
    );
  • Wrap the content of showMaterialBottomSheet with a SafeArea