ExpandableAnimatedCard.menu constructor
const
ExpandableAnimatedCard.menu({
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;