ChatContextMenuWrapper constructor
const
ChatContextMenuWrapper({
- Key? key,
- required ContextMenuWidgetBuilder widgetBuilder,
- Color barrierColor = Colors.transparent,
- Color? backgroundColor,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8)),
- EdgeInsets padding = const EdgeInsets.all(8),
- bool requestFocus = false,
- List<
BoxShadow> ? shadows, - double arrowHeight = 8.0,
- double arrowWidth = 12.0,
- double spacing = 6.0,
- Widget? transitionsBuilder()?,
- Duration transitionDurations = const Duration(milliseconds: 150),
- void onClose(
- dynamic result
- double horizontalMargin = 10.0,
- BoxConstraints? layoutConstraints,
- Axis axis = Axis.vertical,
- double topPadding = kToolbarHeight,
- bool excludeAnchorFromBarrier = false,
- EdgeInsets barrierAnchorPadding = EdgeInsets.zero,
- BorderRadius? barrierAnchorBorderRadius,
Implementation
const ChatContextMenuWrapper({
super.key,
required this.widgetBuilder,
required this.menuBuilder,
this.barrierColor = Colors.transparent,
this.backgroundColor,
this.borderRadius = const BorderRadius.all(Radius.circular(8)),
this.padding = const EdgeInsets.all(8),
this.requestFocus = false,
this.shadows,
this.arrowHeight = 8.0,
this.arrowWidth = 12.0,
this.spacing = 6.0,
this.transitionsBuilder,
this.transitionDurations = const Duration(milliseconds: 150),
this.onClose,
this.horizontalMargin = 10.0,
this.menuConstraints,
this.layoutConstraints,
this.axis = Axis.vertical,
this.topPadding = kToolbarHeight,
this.excludeAnchorFromBarrier = false,
this.barrierAnchorPadding = EdgeInsets.zero,
this.barrierAnchorBorderRadius,
});