NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #2321 most downloaded on pub.dev
A Flutter package for action bottom sheet that adapts to the platform (Android/iOS).
Latest stable
2.0.4
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 1.5 years
Nearly every release is documented
notes for 19 of 19 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
19 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Replace willpopscope with popscope
Add useRootNavigator parameter (optional) to set useRootNavigator of showCupertinoModalPopup (Default true) and useRootNavigator of showModalBottomShe
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
);
showMaterialBottomSheet with a SafeAreaYour coding agent can read these notes before it upgrades. Set up the MCP server →
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
);Add isDismissible parameter that specifies whether the bottom sheet will be dismissed when user taps outside of the bottom sheet. `Dart showAdaptiveAc
isDismissible parameter that specifies whether the bottom sheet will be dismissed when user taps outside of the bottom sheet.showAdaptiveActionSheet(
context: context,
isDismissible: false,
actions: <BottomSheetAction>[
BottomSheetAction(
title: const Text('Item 1'),
onPressed: () {},
),
BottomSheetAction(
title: const Text('Item 2'),
onPressed: () {},
),
],
cancelAction: CancelAction(title: 'Cancel'),
);
### In this version: - Migrated to null safety
Change title type from String to Widget
title type from String to Widget
<table>
<tr>
<th>Version 1.1.0 or later</th>
<th>Version 1.0.12 or earlier</th>
</tr>
<tr>
<td> BottomSheetAction(
title: const Text(
'Title',
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w500,
),
),
onPressed: () {},
leading: const Icon(Icons.add, size: 25),
),
</td> <td>
BottomSheetAction(
title: 'Title',
textStyle: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w500,
),
onPressed: () {},
leading: const Icon(Icons.add, size: 25),
),
</td> </tr> </table>
Fix issues when trailing or leading widget require a Material widget ancestor.
Add options for leading and trailing widget
showAdaptiveActionSheet(
context: context,
actions: <BottomSheetAction>[
BottomSheetAction(
title: 'Add',
onPressed: () {},
leading: const Icon(
Icons.add,
size: 25,
),
trailing: const Icon(
Icons.delete,
size: 25,
color: Colors.red,
),
textAlign: TextAlign.start,
),
],
cancelAction: CancelAction(title: 'Cancel'),
);
### In this version: - Support web platform
[Android] Fix default material background color.
showCupertinoModalPopup instead of showModalBottomSheet### In this version: - Update documentation - Format project
Add optional textStyle parameter for each action. `Dart showAdaptiveActionSheet( context: context, actions: [ BottomSheetAction( title: 'Item 1', onPr
textStyle parameter for each action.showAdaptiveActionSheet(
context: context,
actions: <BottomSheetAction>[
BottomSheetAction(
title: 'Item 1',
onPressed: () {},
textStyle: const TextStyle(
fontSize: 25,
color: Colors.blueAccent,
),
),
BottomSheetAction(title: 'Item 2', onPressed: () {}),
],
cancelAction: CancelAction(// onPressed parameter is optional by default will dismiss the ActionSheet
title: 'Cancel',
textStyle: const TextStyle(
fontSize: 25,
color: Colors.blueAccent,
),
),
);
Add optional title parameter and will be displayed as title in the action sheet. `Dart showAdaptiveActionSheet( context: context, title: const Text('T
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
);
Add option to customize colors via bottomSheetColor and barrierColor.
bottomSheetColor and barrierColor.Add scroll at material bottom sheet
Add required annotation for all the required parameters
Add options to customize cancel action.
### In this version: - Update documentation.
Initial developers preview release.
One column per quarter.