MenuModal class

MenuModalOptions - Configuration options for the MenuModal widget.

  • backgroundColor: Background color of the modal. Default is Color(0xFF83C0E9).
  • isVisible: Controls the modal's visibility.
  • onClose: Callback function triggered when the close icon is tapped.
  • customButtons: List of custom buttons configured with CustomButtonsOptions.
  • shareButtons: Controls the visibility of share buttons. Default is true.
  • position: Position of the modal on the screen (e.g., 'bottomRight').
  • roomName: Meeting room name or ID.
  • adminPasscode: Passcode for the meeting, visible only to admins.
  • islevel: User level, with level 2 indicating an admin.
  • eventType: Type of event (from EventType).
  • localLink: Local link for Community Edition servers.

Example usage:

MenuModal(
  options: MenuModalOptions(
    isVisible: true,
    onClose: () => print("Modal closed"),
    customButtons: [
      CustomButtonsOptions(
        action: () => print("Action 1"),
        text: "First Button",
        backgroundColor: Colors.blue,
        icon: Icons.settings,
      ),
    ],
    roomName: "123-456-789",
    adminPasscode: "adminPass123",
    islevel: "2",
    eventType: EventType.conference,
    localLink: "http://localhost:3000",
  ),
);

Quick-action menu modal surfacing meeting metadata and custom commands.

  • Displays MeetingIdComponent (shareable room name), optional MeetingPasscodeComponent (admin-only when islevel == '2'), and ShareButtonsComponent for social sharing.
  • Renders CustomButtons from the options, enabling you to inject branded actions, debug tools, or CRM shortcuts.
  • Positions itself via getModalPosition using the position string.
  • Hides gracefully when isVisible is false.

Override this component via MediasfuUICustomOverrides.menuModal to inject alternative share channels, custom metadata displays, or additional quick actions.

Inheritance

Constructors

const

Properties

hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
options MenuModalOptions
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
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
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

Operators

operator ==(Object other) bool
The equality operator.
inherited