BaseActionSheetWidget class

BaseActionSheetWidget (Deprecated - Old Widget-based Implementation)

DEPRECATED: This is the old Flutter widget-based implementation. The new BaseActionSheet uses native platform channels for better iOS experience.

This class is kept for backward compatibility but will be removed in a future version. Please migrate to the new BaseActionSheet with CNActionSheetAction.

use CupertinoActionSheet by cupertino with iOS 16+ liquid glass effects *** use cupertino = { forceUseMaterial: true } force use Material 3 BottomSheet on cupertino. use Material 3 BottomSheet by material with modern design patterns *** use material = { forceUseCupertino: true } force use CupertinoActionSheet on material.

iOS 16+ CupertinoActionSheet with liquid glass effects: 2025.08.11 Material 3 BottomSheet with modern design: 2025.08.11 Enhanced accessibility and semantic support: 2025.08.11

Inheritance
Annotations
  • @Deprecated('Use BaseActionSheet with CNActionSheetAction instead')

Constructors

BaseActionSheetWidget({Key? key, Widget? title, Widget? message, List<Widget>? actions, ScrollController? messageScrollController, ScrollController? actionScrollController, Widget? cancelButton, AnimationController? animationController, VoidCallback? onClosing, Color? backgroundColor, bool enableDrag = true, BottomSheetDragStartHandler? onDragStart, BottomSheetDragEndHandler? onDragEnd, double? elevation = 0.0, ShapeBorder? shape, Clip? clipBehavior, BaseParam? baseParam})
const

Properties

actions → List<Widget>?
CupertinoActionSheet.actions
final
actionScrollController → ScrollController?
CupertinoActionSheet.actionScrollController
final
animationController → AnimationController?
*** general properties end *** *** material properties start *** BottomSheet.animationController
final
backgroundColor → Color?
BottomSheet.backgroundColor
final
baseParam → BaseParam?
Personalization parameters, gets platform parameters first, then mode parameters
finalinherited
cancelButton → Widget?
BaseActionSheetAction
final
clipBehavior → Clip?
BottomSheet.clipBehavior
final
elevation → double?
BottomSheet.elevation, default is 0.0
final
enableDrag → bool
BottomSheet.enableDrag
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
message → Widget?
CupertinoActionSheet.message
final
messageScrollController → ScrollController?
CupertinoActionSheet.messageScrollController
final
onClosing → VoidCallback?
BottomSheet.onClosing
final
onDragEnd → BottomSheetDragEndHandler?
BottomSheet.onDragEnd
final
onDragStart → BottomSheetDragStartHandler?
BottomSheet.onDragStart
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape → ShapeBorder?
BottomSheet.shape
final
title → Widget?
CupertinoActionSheet.title
final

Methods

beforeBuild(BuildContext context) → void
Called before build
inherited
beforeBuildByCupertino(BuildContext context) → void
Called before buildByCupertino
inherited
beforeBuildByCupertinoNative(BuildContext context) → void
Called before buildByCupertinoNative (native iOS implementation)
inherited
beforeBuildByMaterial(BuildContext context) → void
Called before buildByMaterial
inherited
build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
inherited
buildByCupertino(BuildContext context) → Widget
*** material properties end ***
buildByCupertinoNative(BuildContext context) → dynamic
build on cupertino mode with native iOS components (cupertino_native package) This is called when baseParam.nativeIOS = true Default implementation falls back to buildByCupertino()
inherited
buildByMaterial(BuildContext context) → Widget
build on material mode
commonBuild(BuildContext context, BaseParam? baseParam) → dynamic
inherited
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
getBuildMode(BaseParam? baseParam) → WidgetBuildMode
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show<T>(BuildContext context, {Color? barrierColor, bool barrierDismissible = true, bool? useRootNavigator, bool? semanticsDismissible, RouteSettings? routeSettings, bool isScrollControlled = false, bool isDismissible = true, bool enableDrag = true, AnimationController? transitionAnimationController}) → Future<T?>
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited
valueOf(String key, dynamic value) → dynamic
inherited
valueOfBaseParam(BaseParam? baseParam, String key, dynamic value) → dynamic
No reflection available in Dart First get value from platform, then from mode, finally from value itself
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited