diff --git a/packages/hms_room_kit/lib/src/widgets/common_widgets/message_container.dart b/packages/hms_room_kit/lib/src/widgets/common_widgets/message_container.dart index d3753bba5..86c44e56c 100644 --- a/packages/hms_room_kit/lib/src/widgets/common_widgets/message_container.dart +++ b/packages/hms_room_kit/lib/src/widgets/common_widgets/message_container.dart @@ -97,7 +97,9 @@ class MessageContainer extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.end, children: [ HMSSubtitleText( - text: formatter.format(message.time), + text: message.time == null + ? "" + : formatter.format(message.time!), textColor: HMSThemeColors.onSurfaceMediumEmphasis, ), const SizedBox(