diff --git a/packages/hms_room_kit/lib/src/hls_viewer/hls_viewer_header.dart b/packages/hms_room_kit/lib/src/hls_viewer/hls_viewer_header.dart index 6f9e42d6b..33d8f8a5f 100644 --- a/packages/hms_room_kit/lib/src/hls_viewer/hls_viewer_header.dart +++ b/packages/hms_room_kit/lib/src/hls_viewer/hls_viewer_header.dart @@ -1,4 +1,5 @@ ///Dart imports +import 'dart:developer'; import 'dart:io'; import 'package:flutter/material.dart'; @@ -44,6 +45,13 @@ class HLSViewerHeader extends StatelessWidget { HMSRoomLayout.roleLayoutData!.logo!.url!) : Image.network( HMSRoomLayout.roleLayoutData!.logo!.url!, + errorBuilder: (context, exception, _) { + log('Error is $exception'); + return const SizedBox( + width: 30, + height: 30, + ); + }, height: 30, width: 30, ), diff --git a/packages/hms_room_kit/lib/src/meeting/meeting_header.dart b/packages/hms_room_kit/lib/src/meeting/meeting_header.dart index 704703cfe..3a2a42abf 100644 --- a/packages/hms_room_kit/lib/src/meeting/meeting_header.dart +++ b/packages/hms_room_kit/lib/src/meeting/meeting_header.dart @@ -1,4 +1,5 @@ ///Dart imports +import 'dart:developer'; import 'dart:io'; ///Package imports @@ -60,6 +61,13 @@ class _MeetingHeaderState extends State { ) : Image.network( HMSRoomLayout.roleLayoutData!.logo!.url!, + errorBuilder: (context, exception, _) { + log('Error is $exception'); + return const SizedBox( + width: 30, + height: 30, + ); + }, height: 30, width: 30, ), diff --git a/packages/hms_room_kit/lib/src/preview/preview_header.dart b/packages/hms_room_kit/lib/src/preview/preview_header.dart index 1d56cc9f1..c4b2650cb 100644 --- a/packages/hms_room_kit/lib/src/preview/preview_header.dart +++ b/packages/hms_room_kit/lib/src/preview/preview_header.dart @@ -1,4 +1,5 @@ ///dart imports +import 'dart:developer'; import 'dart:io'; ///Package imports @@ -69,6 +70,13 @@ class PreviewHeader extends StatelessWidget { ) : Image.network( HMSRoomLayout.roleLayoutData!.logo!.url!, + errorBuilder: (context, exception, _) { + log('Error is $exception'); + return const SizedBox( + width: 30, + height: 30, + ); + }, height: 30, width: 30, ), diff --git a/packages/hms_room_kit/lib/src/preview_for_role/preview_for_role_header.dart b/packages/hms_room_kit/lib/src/preview_for_role/preview_for_role_header.dart index 0b1571cf5..c25deda2e 100644 --- a/packages/hms_room_kit/lib/src/preview_for_role/preview_for_role_header.dart +++ b/packages/hms_room_kit/lib/src/preview_for_role/preview_for_role_header.dart @@ -1,3 +1,6 @@ +///Dart imports +import 'dart:developer'; + ///Package imports import 'package:flutter/cupertino.dart'; import 'package:flutter_svg/flutter_svg.dart'; @@ -37,6 +40,13 @@ class _PreviewForRoleHeaderState extends State { HMSRoomLayout.roleLayoutData!.logo!.url!) : Image.network( HMSRoomLayout.roleLayoutData!.logo!.url!, + errorBuilder: (context, exception, _) { + log('Error is $exception'); + return const SizedBox( + width: 30, + height: 30, + ); + }, height: 30, width: 30, ),