Improve example for better feature testing (#21)

* fixed

* format

* set track to null

* rearrange

* toggle subscribed

* clean

* `RemoteTrackPublicationMenuWidget` for mute/unmute subscribe/unsubscribe
This commit is contained in:
Hiroshi Horie
2021-10-21 21:11:25 +09:00
committed by GitHub
parent 8cd8edb617
commit 6bba6b4006
3 changed files with 103 additions and 29 deletions
+4 -4
View File
@@ -4,11 +4,11 @@ import 'package:flutter/material.dart';
class ParticipantInfoWidget extends StatelessWidget {
//
final String? title;
final bool muted;
final bool audioAvailable;
const ParticipantInfoWidget({
this.title,
this.muted = true,
this.audioAvailable = true,
Key? key,
}) : super(key: key);
@@ -33,8 +33,8 @@ class ParticipantInfoWidget extends StatelessWidget {
Padding(
padding: const EdgeInsets.only(left: 5),
child: Icon(
!muted ? EvaIcons.mic : EvaIcons.micOff,
color: !muted ? Colors.white : Colors.red,
audioAvailable ? EvaIcons.mic : EvaIcons.micOff,
color: audioAvailable ? Colors.white : Colors.red,
size: 16,
),
),