adaptive_action_sheet
2.0.4, released 2 years ago by an unverified publisher
An action bottom sheet that adapts to the platform between Android and iOS.
What it does
Provides a platform-adaptive action bottom sheet widget that renders as a Material bottom sheet on Android and a Cupertino action sheet on iOS. Allows passing actions with leading and trailing widgets, a cancel action, a title, and styling options.
AI-written summary of version 2.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display action sheets that follow platform conventions on both Android and iOS.
- You want to replace standard modal bottom sheets with a structured action list and optional cancel button.
Skip it when
- You require a completely custom non-native bottom sheet design across all platforms.
- You need complex multi-page bottom sheet flows.
Strengths
- Automatically adapts UI to Android and iOS platform conventions.
- Supports leading and trailing widgets for action items.
- Easy integration with standard Flutter context and builder functions.
Weaknesses
- Limited to bottom sheet action use cases.
- Styling customization is constrained by native platform design patterns.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
showAdaptiveActionSheet(
context: context,
title: const Text('Title'),
androidBorderRadius: 30,
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')),
);Alternatives
Packages that do the same job and could replace adaptive_action_sheet.
- adaptive_dialog
If you need platform-adaptive dialogs in addition to bottom sheets.
93Compare - adaptive_platform_ui
If you are looking for a broader set of platform-adaptive UI components.
81Compare