QuickRTCThemeData constructor
const
QuickRTCThemeData({
- Color containerBackgroundColor = const Color(0xFF2D2D2D),
- BorderRadius containerBorderRadius = const BorderRadius.all(Radius.circular(12)),
- BoxDecoration? containerDecoration,
- Color placeholderBackgroundColor = const Color(0xFF424242),
- Color placeholderIconColor = Colors.white,
- double placeholderAvatarRadius = 40,
- TextStyle placeholderTextStyle = const TextStyle(fontSize: 32, color: Colors.white, fontWeight: FontWeight.w500),
- IconData audioOnIcon = Icons.mic,
- IconData audioOffIcon = Icons.mic_off,
- Color audioOnColor = Colors.green,
- Color audioOffColor = Colors.red,
- IconData videoOnIcon = Icons.videocam,
- IconData videoOffIcon = Icons.videocam_off,
- Color videoOnColor = Colors.green,
- Color videoOffColor = Colors.red,
- double indicatorIconSize = 14,
- EdgeInsets indicatorPadding = const EdgeInsets.all(4),
- BorderRadius indicatorBorderRadius = const BorderRadius.all(Radius.circular(4)),
- double indicatorBackgroundOpacity = 0.8,
- TextStyle nameTextStyle = const TextStyle(color: Colors.white, fontWeight: FontWeight.w500, fontSize: 14),
- EdgeInsets namePadding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
- Gradient? nameBackgroundGradient,
- Widget? loadingWidget,
- Color loadingIndicatorColor = Colors.white,
- OverlayPosition defaultAudioPosition = OverlayPosition.bottomRight,
- OverlayPosition defaultVideoPosition = OverlayPosition.topRight,
- OverlayPosition defaultNamePosition = OverlayPosition.bottomLeft,
Implementation
const QuickRTCThemeData({
// Container
this.containerBackgroundColor = const Color(0xFF2D2D2D),
this.containerBorderRadius = const BorderRadius.all(Radius.circular(12)),
this.containerDecoration,
// Placeholder
this.placeholderBackgroundColor = const Color(0xFF424242),
this.placeholderIconColor = Colors.white,
this.placeholderAvatarRadius = 40,
this.placeholderTextStyle = const TextStyle(
fontSize: 32,
color: Colors.white,
fontWeight: FontWeight.w500,
),
// Audio indicator
this.audioOnIcon = Icons.mic,
this.audioOffIcon = Icons.mic_off,
this.audioOnColor = Colors.green,
this.audioOffColor = Colors.red,
// Video indicator
this.videoOnIcon = Icons.videocam,
this.videoOffIcon = Icons.videocam_off,
this.videoOnColor = Colors.green,
this.videoOffColor = Colors.red,
// Indicator common
this.indicatorIconSize = 14,
this.indicatorPadding = const EdgeInsets.all(4),
this.indicatorBorderRadius = const BorderRadius.all(Radius.circular(4)),
this.indicatorBackgroundOpacity = 0.8,
// Name overlay
this.nameTextStyle = const TextStyle(
color: Colors.white,
fontWeight: FontWeight.w500,
fontSize: 14,
),
this.namePadding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
this.nameBackgroundGradient,
// Loading
this.loadingWidget,
this.loadingIndicatorColor = Colors.white,
// Default positions
this.defaultAudioPosition = OverlayPosition.bottomRight,
this.defaultVideoPosition = OverlayPosition.topRight,
this.defaultNamePosition = OverlayPosition.bottomLeft,
});