Skip to content

Commit b55e90d

Browse files
authored
Merge pull request #158 from carlogrisetti/set_caller_icon_for_self
Set a different greyed out icon to easily identify self when testing
2 parents 04e25dc + 33f168f commit b55e90d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

lib/src/call_sample/call_sample.dart

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,24 @@ class _CallSampleState extends State<CallSample> {
136136
mainAxisAlignment: MainAxisAlignment.spaceBetween,
137137
children: <Widget>[
138138
IconButton(
139-
icon: const Icon(Icons.videocam),
139+
icon: Icon(self
140+
? Icons.close
141+
: Icons.videocam,
142+
color: self
143+
? Colors.grey
144+
: Colors.black
145+
),
140146
onPressed: () => _invitePeer(context, peer['id'], false),
141147
tooltip: 'Video calling',
142148
),
143149
IconButton(
144-
icon: const Icon(Icons.screen_share),
150+
icon: Icon(self
151+
? Icons.close
152+
: Icons.screen_share,
153+
color: self
154+
? Colors.grey
155+
: Colors.black
156+
),
145157
onPressed: () => _invitePeer(context, peer['id'], true),
146158
tooltip: 'Screen sharing',
147159
)

0 commit comments

Comments
 (0)