BaseDialogAction class
BaseDialogAction with iOS 26 Liquid Glass Dynamic Material and Material 3 support
Features iOS 26 Liquid Glass Dynamic Material with:
- Transparency with optical clarity zones for dialog actions
- Adaptive interaction states with real-time responsiveness
- Unified design language across platforms
- Enhanced haptic feedback for tactile experience
Material 3 Integration:
- FilledButton, OutlinedButton, and TextButton variants
- Semantic ColorScheme usage with role-based colors
- Modern button styling with enhanced accessibility
- State layer effects for interaction feedback
Cross-platform support:
- CupertinoDialogAction with Liquid Glass enhancement by cupertino
- Material 3 button variants by material *** use cupertino = { forceUseMaterial: true } force use TextButton on cupertino *** use material = { forceUseCupertino: true } force use CupertinoDialogAction on material
Enhanced: 2024.01.20 with iOS 26 Liquid Glass Dynamic Material
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BaseStatelessWidget
- BaseDialogAction
Constructors
- BaseDialogAction({Key? key, VoidCallback? onPressed, bool isDefaultAction = false, bool isDestructiveAction = false, TextStyle? textStyle, Widget? child, Clip clipBehavior = Clip.none, FocusNode? focusNode, bool autofocus = false, ButtonStyle? style, VoidCallback? onLongPress, bool enableLiquidGlass = true, bool adaptiveInteraction = true, bool hapticFeedback = true, BaseDialogActionType buttonType = BaseDialogActionType.text, BaseParam? baseParam})
-
const
Properties
- adaptiveInteraction → bool
-
Enable adaptive interaction with real-time responsiveness
Provides context-aware visual and haptic feedback
final
- autofocus → bool
-
ButtonStyleButton.autofocus
final
- baseParam → BaseParam?
-
Personalization parameters, gets platform parameters first, then mode parameters
finalinherited
-
Material 3 button type for dialog actions
Determines the visual style and importance hierarchy
final
- child → Widget?
-
CupertinoDialogAction.onPressed
or
TextButton.child
final
- clipBehavior → Clip
-
*** cupertino properties end ***
*** material properties start ***
ButtonStyleButton.clipBehavior
final
- enableLiquidGlass → bool
-
*** material properties end ***
*** iOS 26 Liquid Glass Dynamic Material properties start ***
Enable Liquid Glass Dynamic Material optical effects for dialog actions
Provides enhanced visual feedback and interaction states
final
- focusNode → FocusNode?
-
ButtonStyleButton.focusNode
final
- hapticFeedback → bool
-
Enable haptic feedback for enhanced tactile experience
Provides appropriate haptic responses for action interactions
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDefaultAction → bool
-
*** general properties end ***
*** cupertino properties start ***
CupertinoDialogAction.isDefaultAction
final
- isDestructiveAction → bool
-
CupertinoDialogAction.isDestructiveAction
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onLongPress → VoidCallback?
-
ButtonStyleButton.onLongPress
final
- onPressed → VoidCallback?
-
*** general properties start ***
CupertinoDialogAction.onPressed
or
TextButton.onPressed
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → ButtonStyle?
-
ButtonStyleButton.style
final
- textStyle → TextStyle?
-
CupertinoDialogAction.textStyle
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 - *** iOS 26 Liquid Glass Dynamic 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
-
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