Skip to main content

RtkLeaveButton

A specialized button widget for leaving a RealtimeKit meeting. This widget is designed in accordance with the RealtimeKit UI Kit and facilitates a seamless exit process from a meeting environment.

Usage

Here is how you can use the RtkLeaveButton in your Flutter application:

RtkLeaveButton(
meeting: yourMeetingInstance,
height: 50.0,
width: 50.0,
)

Properties

  • meeting: (Required) An instance of RealtimeKitClient used to perform the leave meeting operation.
  • designToken: (Optional) An instance of RtkDesignTokens for customizing the appearance according to the RealtimeKit Design System. If not specified, the widget will default to the global design tokens.
  • height: (Optional) The height of the button. If not specified, it defaults to a predefined size based on the design tokens.
  • width: (Optional) The width of the button. If not specified, it defaults to a predefined size based on the design tokens.

Features

  • Customizable Size: The size of the button can be adjusted using the height and width properties.
  • Consistent Styling: Adheres to the RealtimeKit Design System for visual consistency across the RealtimeKit UI Kit.
  • Leave Dialog: Upon pressing the button, a confirmation dialog is displayed to the user to prevent accidental meeting exits.

Screenshot