diff --git a/example/lib/pages/room.dart b/example/lib/pages/room.dart index 34f30412..858f9277 100644 --- a/example/lib/pages/room.dart +++ b/example/lib/pages/room.dart @@ -76,13 +76,9 @@ class _RoomPageState extends State with WidgetsBindingObserver { super.dispose(); } - AppLifecycleState? _notification; - @override void didChangeAppLifecycleState(AppLifecycleState state) { - setState(() { - _notification = state; - }); + setState(() {}); if (autoSubscribe) return; if (state == AppLifecycleState.resumed) { for (var p in participantTracks) { diff --git a/example/lib/widgets/participant_grid_tile.dart b/example/lib/widgets/participant_grid_tile.dart index 1175db70..171d00c4 100644 --- a/example/lib/widgets/participant_grid_tile.dart +++ b/example/lib/widgets/participant_grid_tile.dart @@ -71,7 +71,7 @@ class _ParticipantGridTile extends State { if (lkPlatformIsMobile()) { Fluttertoast.showToast( msg: - 'participant.isCameraEnabled() = ${widget.participant.isCameraEnabled()}', + 'participant.isCameraEnabled() = ${widget.participant.isCameraEnabled()}, hasVideo = $hasVideo', toastLength: Toast.LENGTH_SHORT, gravity: ToastGravity.BOTTOM, timeInSecForIosWeb: 1, @@ -80,7 +80,7 @@ class _ParticipantGridTile extends State { fontSize: 16.0); } else { print( - 'participant.isCameraEnabled() = ${widget.participant.isCameraEnabled()}'); + 'participant.isCameraEnabled() = ${widget.participant.isCameraEnabled()}, hasVideo = $hasVideo'); } }, child: Container(