example app design update & show active speaker
This commit is contained in:
@@ -3,6 +3,7 @@ import 'package:eva_icons_flutter/eva_icons_flutter.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_webrtc/flutter_webrtc.dart';
|
||||
import 'package:livekit_client/livekit_client.dart';
|
||||
import 'package:livekit_example/theme.dart';
|
||||
|
||||
import 'no_video.dart';
|
||||
import 'participant_info.dart';
|
||||
@@ -64,7 +65,17 @@ class _ParticipantWidgetState extends State<ParticipantWidget> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext ctx) => Container(
|
||||
color: Theme.of(ctx).cardColor,
|
||||
foregroundDecoration: BoxDecoration(
|
||||
border: widget.participant.isSpeaking
|
||||
? Border.all(
|
||||
width: 5,
|
||||
color: LKColors.lkBlue,
|
||||
)
|
||||
: null,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(ctx).cardColor,
|
||||
),
|
||||
child: Stack(
|
||||
children: [
|
||||
// Video
|
||||
|
||||
Reference in New Issue
Block a user