ParticipantTile class
A composable tile that renders a participant's video (or avatar if video is off), with optional name label and mic status overlay.
SDK users can use this standalone to build custom meeting layouts:
ParticipantTile(
attendee: myAttendee,
displayName: 'John',
showNameLabel: true,
showMicIndicator: true,
borderRadius: BorderRadius.circular(8),
)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ParticipantTile
Constructors
- ParticipantTile({Key? key, required Attendee attendee, String? displayName, bool showNameLabel = true, bool showMicIndicator = true, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12)), Color backgroundColor = ChimeColors.surfaceVariant, TextStyle? avatarTextStyle, double avatarSize = 56, bool isActiveSpeaker = false})
-
const
Properties
- attendee → Attendee
-
The attendee to display.
final
- avatarSize → double
-
Size of the avatar circle when video is off. Defaults to 56.
final
- avatarTextStyle → TextStyle?
-
Avatar text style for initials when video is off.
final
- backgroundColor → Color
-
Background color when video is off. Defaults to dark gray.
final
- borderRadius → BorderRadius
-
Border radius for the tile. Defaults to 12px.
final
- displayName → String?
-
Display name shown on the tile. If null, uses externalUserId initials.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isActiveSpeaker → bool
-
When true, a green border ring is drawn to indicate active speaking.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showMicIndicator → bool
-
Whether to show the mic status indicator.
final
- showNameLabel → bool
-
Whether to show the name label at the bottom of the tile.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
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
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited