MenuModal class
MenuModalOptions
- Configuration options for the MenuModal
widget.
backgroundColor
: Background color of the modal. Default isColor(0xFF83C0E9)
.isVisible
: Controls the modal's visibility.onClose
: Callback function triggered when the close icon is tapped.customButtons
: List of custom buttons configured withCustomButtonsOptions
.shareButtons
: Controls the visibility of share buttons. Default istrue
.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 level2
indicating an admin.eventType
: Type of event (fromEventType
).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",
),
);
MenuModal
- Displays a modal with a configurable menu.
This widget can display various options in a modal, including custom buttons, meeting ID and passcode information, and share buttons for social sharing.
Parameters:
options
: Instance ofMenuModalOptions
with configuration settings for the modal.
Widget Structure:
- The modal includes a header with a title and close icon.
- Below the header, it displays custom buttons, the meeting passcode (for admins), the meeting ID, and share buttons.
- Positioned on the screen based on the
position
parameter.
Customization:
- Visibility: Control modal visibility with
isVisible
. - Custom Buttons: Add buttons by specifying
CustomButtonsOptions
. - Share Buttons: Toggle share buttons with
shareButtons
. - Positioning: Adjust modal position with
position
(e.g., 'bottomRight').
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- MenuModal
Constructors
- MenuModal({Key? key, required MenuModalOptions options})
-
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}) → 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