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 ofRealtimeKitClient
used to perform the leave meeting operation.designToken
: (Optional) An instance ofRtkDesignTokens
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
andwidth
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
