ExpandableAnimatedCard.menu constructor

const ExpandableAnimatedCard.menu({
  1. Key? key,
  2. required WidgetBuilder collapsedBuilder,
  3. required WidgetBuilder expandedBuilder,
  4. BorderRadiusGeometry? borderRadius = const BorderRadius.all(Radius.circular(16)),
  5. Color? backgroundColor = Colors.white,
  6. double elevation = 8.0,
  7. Color? shadowColor,
  8. double menuWidth = 250.0,
  9. double menuHeight = 300.0,
  10. double menuOffset = 8.0,
  11. Alignment menuAlignment = Alignment.topCenter,
  12. Color overlayBackgroundColor = Colors.black12,
  13. double blurSigma = 0.0,
  14. bool barrierDismissible = true,
  15. bool useRootNavigator = false,
  16. RouteSettings? routeSettings,
  17. String? barrierLabel,
  18. Duration animationDuration = const Duration(milliseconds: 300),
  19. Curve animationCurve = Curves.easeOutCubic,
  20. VoidCallback? onClose,
  21. VoidCallback? onOpened,
  22. VoidCallback? onClosed,
  23. ValueChanged<bool>? onStateChanged,
  24. ExpandableAnimatedCardController? controller,
  25. bool autoOpenOnTap = true,
})

Factory: menu

Implementation

const ExpandableAnimatedCard.menu({
  super.key,
  required this.collapsedBuilder,
  required this.expandedBuilder,
  this.borderRadius = const BorderRadius.all(Radius.circular(16)),
  this.backgroundColor = Colors.white,
  this.elevation = 8.0,
  this.shadowColor,
  double menuWidth = 250.0,
  double menuHeight = 300.0,
  this.menuOffset = 8.0,
  this.menuAlignment = Alignment.topCenter,
  this.overlayBackgroundColor = Colors.black12,
  this.blurSigma = 0.0,
  this.barrierDismissible = true,
  this.useRootNavigator = false,
  this.routeSettings,
  this.barrierLabel,
  this.animationDuration = const Duration(milliseconds: 300),
  this.animationCurve = Curves.easeOutCubic,
  this.onClose,
  this.onOpened,
  this.onClosed,
  this.onStateChanged,
  this.controller,
  this.autoOpenOnTap = true,
}) : _type = CardType.menu,
     fadeInterval = const Interval(0.2, 1.0, curve: Curves.easeOut),
     expandedMargin = const EdgeInsets.all(16),
     expandedPadding = EdgeInsets.zero,
     maxWidth = menuWidth,
     useSafeArea = true,
     backgroundGradient = null,
     borderColor = null,
     borderWidth = 0.0,
     headerMode = HeaderMode.none,
     headerHeight = 0.0,
     headerBuilder = null,
     scrimBuilder = null,
     barrierColor = Colors.transparent,
     enableDragToDismiss = false,
     dragDismissThreshold = 9999.0,
     clipBehavior = Clip.antiAlias,
     _sheetMaxHeight = menuHeight,
     _sheetMaxHeightFraction = null,
     _sheetDragDismissThresholdFraction = null;