StreamCallParticipantThemeData class

Defines default property values for StreamCallParticipant widgets.

Mixed-in types
Annotations

Constructors

StreamCallParticipantThemeData({VideoFit videoFit = VideoFit.cover, Color backgroundColor = const Color(0xffB4B7BB), BorderRadius borderRadius = BorderRadius.zero, StreamUserAvatarThemeData userAvatarTheme = const StreamUserAvatarThemeData(constraints: BoxConstraints.tightFor(height: 100, width: 100), borderRadius: BorderRadius.all(Radius.circular(50)), initialsTextStyle: TextStyle(fontSize: 32, fontWeight: FontWeight.bold, color: Colors.white)), bool showSpeakerBorder = true, double speakerBorderThickness = 4, Color speakerBorderColor = const Color(0xff005FFF), bool showParticipantLabel = true, TextStyle participantLabelTextStyle = const TextStyle(fontSize: 12, color: Colors.white), AlignmentGeometry participantLabelAlignment = Alignment.bottomLeft, Color audioLevelIndicatorColor = const Color(0xff005FFF), Color enabledMicrophoneColor = Colors.white, Color disabledMicrophoneColor = const Color(0xffFF3842), bool showConnectionQualityIndicator = true, Color connectionLevelActiveColor = const Color(0xff005FFF), Color connectionLevelInactiveColor = Colors.white, AlignmentGeometry connectionLevelAlignment = Alignment.bottomRight, EdgeInsets participantsGridPadding = const EdgeInsets.all(8), double participantsGridMainAxisSpacing = 8, double participantsGridCrossAxisSpacing = 8})
Creates a new instance of StreamCallParticipantThemeData.
const

Properties

audioLevelIndicatorColor Color
The color of an audio level indicator.
final
backgroundColor Color
The background color of the call participant.
final
borderRadius BorderRadius
The border radius of the call participant.
final
connectionLevelActiveColor Color
The color of an active connection quality level.
final
connectionLevelAlignment AlignmentGeometry
Alignment for the connection level.
final
connectionLevelInactiveColor Color
The color of an inactive connection quality level.
final
disabledMicrophoneColor Color
The color of a disabled microphone icon.
final
enabledMicrophoneColor Color
The color of an enabled microphone icon.
final
hashCode int
The hash code for this object.
no setteroverride
participantLabelAlignment AlignmentGeometry
Alignment for the participant label.
final
participantLabelTextStyle TextStyle
Text style for the participant label.
final
participantsGridCrossAxisSpacing double
Cross axis spacing between the participants in the grid layout.
final
participantsGridMainAxisSpacing double
Main axis spacing between the participants in the grid layout.
final
participantsGridPadding EdgeInsets
The padding between the participants in the grid layout.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showConnectionQualityIndicator bool
Whether to show the connection quality indicator.
final
showParticipantLabel bool
Whether to show the label with participant name and mute status.
final
showSpeakerBorder bool
Whether to highlight the participant when he/she is speaking.
final
speakerBorderColor Color
The color of the speaker border.
final
speakerBorderThickness double
The thickness of the speaker border.
final
userAvatarTheme StreamUserAvatarThemeData
The theme for the avatar.
final
videoFit VideoFit
The fit of the VideoRenderer widget
final

Methods

copyWith({VideoFit? videoFit, Color? backgroundColor, BorderRadius? borderRadius, StreamUserAvatarThemeData? userAvatarTheme, bool? showDominantSpeakerBorder, double? dominantSpeakerBorderThickness, Color? dominantSpeakerBorderColor, bool? showParticipantLabel, TextStyle? participantLabelTextStyle, AlignmentGeometry? participantLabelAlignment, Color? audioLevelIndicatorColor, Color? enabledMicrophoneColor, Color? disabledMicrophoneColor, bool? showConnectionQualityIndicator, Color? connectionLevelActiveColor, Color? connectionLevelInactiveColor, AlignmentGeometry? connectionLevelAlignment, EdgeInsets? participantsGridPadding, double? participantsGridMainAxisSpacing, double? participantsGridCrossAxisSpacing}) StreamCallParticipantThemeData
Creates a copy of this object with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
lerp(StreamCallParticipantThemeData other, double t) StreamCallParticipantThemeData
Linearly interpolate between two StreamCallParticipantThemeData themes.
merge(StreamCallParticipantThemeData? other) StreamCallParticipantThemeData
Merges one StreamCallParticipantThemeData with the another.
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override