update example (no casting)

This commit is contained in:
Hiroshi Horie
2021-12-02 14:21:41 +07:00
parent a409ed0aca
commit 64a243a312
2 changed files with 121 additions and 47 deletions
+2 -3
View File
@@ -133,7 +133,7 @@ class _RoomPageState extends State<RoomPage> {
children: [
Expanded(
child: participants.isNotEmpty
? ParticipantWidget(participants.first)
? ParticipantWidget.widgetFor(participants.first)
: Container()),
SizedBox(
height: 100,
@@ -143,8 +143,7 @@ class _RoomPageState extends State<RoomPage> {
itemBuilder: (BuildContext context, int index) => SizedBox(
width: 100,
height: 100,
child: ParticipantWidget(participants[index + 1],
quality: VideoQuality.LOW),
child: ParticipantWidget.widgetFor(participants[index + 1]),
),
),
),