Skip to content

RtkSelfVideoToggleButton

A toggle button widget for controlling video state during a meeting. Allows users to turn their video on or off.

Properties

PropertyTypeRequiredDefaultDescription
meetingRealtimekitClient-Meeting client instance
individualDesignTokenRtkDesignTokens?Global design tokensDesign tokens for customization
onVideoToggleVoidCallback?-Callback invoked when video is toggled
iconSizedouble?-Size of the icon
iconColorColor?-Color of the icon
showLabelboolfalseWhether to show label text

Usage Examples

Basic Usage

Dart
import 'package:realtimekit_ui/realtimekit_ui.dart';
RtkSelfVideoToggleButton(
meeting: yourMeetingInstance,
)

With Properties

Dart
import 'package:realtimekit_ui/realtimekit_ui.dart';
RtkSelfVideoToggleButton(
meeting: yourMeetingInstance,
onVideoToggle: () {
// Handle video toggle
},
iconSize: 24.0,
iconColor: Colors.red,
showLabel: true,
)