MeetingIdComponent class

A stateless widget displaying a read-only meeting/event ID in a styled text field.

Renders a labeled, non-editable text field showing the current meeting ID. Used in MenuModal to display the event identifier for reference or sharing.

Rendering Structure:

Container (margin: 10px top, maxWidth: 300px)
  └─ Column (crossAxisAlignment: start)
     ├─ Text("Event ID:", bold, dark gray)
     ├─ SizedBox(height: 5)
     └─ TextFormField
        ├─ initialValue: meetingID
        ├─ readOnly: true
        ├─ border: OutlineInputBorder(rounded 5px, gray)
        ├─ fillColor: light gray
        └─ padding: 12px vertical, 10px horizontal

Common Use Cases:

  1. Display in Menu Modal:

    MeetingIdComponent(
      options: MeetingIdComponentOptions(
        meetingID: parameters.meetingID,
      ),
    )
    
  2. Custom Styled Display:

    MeetingIdComponent(
      options: MeetingIdComponentOptions(
        meetingID: "MTG-2024-001",
        labelStyle: TextStyle(
          color: Colors.blue[800],
          fontWeight: FontWeight.w600,
          fontSize: 14,
        ),
        inputTextStyle: TextStyle(
          color: Colors.blue[900],
          fontSize: 16,
          letterSpacing: 1.2,
        ),
        inputBackgroundColor: Colors.blue[50],
      ),
    )
    
  3. In Share Dialog:

    Column(
      children: [
        Text("Share this meeting:", style: TextStyle(fontSize: 18)),
        SizedBox(height: 16),
        MeetingIdComponent(
          options: MeetingIdComponentOptions(
            meetingID: currentMeetingId,
          ),
        ),
        SizedBox(height: 16),
        ShareButtonsComponent(...),
      ],
    )
    

Styling Defaults:

  • Label: "Event ID:", bold, Color.fromARGB(255, 58, 58, 58)
  • Input text: Black, default font size
  • Background: Color(0xFFF0F0F0) - light gray
  • Border: Rounded 5px, gray outline
  • Padding: 12px vertical, 10px horizontal
  • Max width: 300px (container constraint)

Field Behavior:

  • Read-only (readOnly: true) - user cannot edit
  • Uses TextFormField for consistent Material Design styling
  • No copy-to-clipboard button (users can still select/copy text)
  • No validation (display-only field)

Typical Usage Context:

  • MenuModal metadata section
  • ShareEventModal meeting information
  • Meeting details dialog
  • Pre-meeting lobby screen
Inheritance

Constructors

MeetingIdComponent({Key? key, required MeetingIdComponentOptions 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 MeetingIdComponentOptions
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