BaseAlertDialog constructor

const BaseAlertDialog({
  1. Key? key,
  2. Widget? title,
  3. Widget? content,
  4. List<Widget> actions = const <Widget>[],
  5. bool enableLiquidGlass = true,
  6. double glassOpacity = 0.8,
  7. double reflectionIntensity = 0.6,
  8. double refractionStrength = 0.4,
  9. bool adaptiveInteraction = true,
  10. bool contentHierarchy = true,
  11. bool hapticFeedback = true,
  12. ScrollController? scrollController,
  13. ScrollController? actionScrollController,
  14. Duration insetAnimationDuration = const Duration(milliseconds: 100),
  15. Curve insetAnimationCurve = Curves.decelerate,
  16. EdgeInsetsGeometry? titlePadding,
  17. TextStyle? titleTextStyle,
  18. EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(24.0, 20.0, 24.0, 24.0),
  19. TextStyle? contentTextStyle,
  20. Color? backgroundColor,
  21. EdgeInsetsGeometry actionsPadding = EdgeInsets.zero,
  22. VerticalDirection? actionsOverflowDirection,
  23. double? actionsOverflowButtonSpacing,
  24. EdgeInsetsGeometry? buttonPadding,
  25. double? elevation,
  26. String? semanticLabel,
  27. EdgeInsets insetPadding = const EdgeInsets.symmetric(horizontal: 40.0, vertical: 24.0),
  28. Clip clipBehavior = Clip.none,
  29. ShapeBorder? shape,
  30. bool scrollable = false,
  31. BaseParam? baseParam,
})

Implementation

const BaseAlertDialog({
  Key? key,
  this.title,
  this.content,
  this.actions = const <Widget>[],

  // iOS 26 Liquid Glass Dynamic Material properties
  this.enableLiquidGlass = true,
  this.glassOpacity = 0.8,
  this.reflectionIntensity = 0.6,
  this.refractionStrength = 0.4,
  this.adaptiveInteraction = true,
  this.contentHierarchy = true,
  this.hapticFeedback = true,

  // cupertino
  this.scrollController,
  this.actionScrollController,
  this.insetAnimationDuration = const Duration(milliseconds: 100),
  this.insetAnimationCurve = Curves.decelerate,

  // material
  this.titlePadding,
  this.titleTextStyle,
  this.contentPadding = const EdgeInsets.fromLTRB(24.0, 20.0, 24.0, 24.0),
  this.contentTextStyle,
  this.backgroundColor,
  this.actionsPadding = EdgeInsets.zero,
  this.actionsOverflowDirection,
  this.actionsOverflowButtonSpacing,
  this.buttonPadding,
  this.elevation,
  this.semanticLabel,
  this.insetPadding = const EdgeInsets.symmetric(horizontal: 40.0, vertical: 24.0),
  this.clipBehavior = Clip.none,
  this.shape,
  this.scrollable = false,
  BaseParam? baseParam,
}) : super(key: key, baseParam: baseParam);