diff --git a/lib/features/chat/presentation/pages/chat_screen.dart b/lib/features/chat/presentation/pages/chat_screen.dart index f5f37438..8d02a68a 100644 --- a/lib/features/chat/presentation/pages/chat_screen.dart +++ b/lib/features/chat/presentation/pages/chat_screen.dart @@ -217,19 +217,31 @@ class _ChatScreenState extends State { ), ), const SizedBox(width: 16), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text(state.chatRoom.users.receiver.name, style: CustomTextStyles.titleSmallBold.copyWith(color: PrimaryColors().black)), - AnimatedCrossFade( - firstChild: Text('Печатает...', style: CustomTextStyles.bodySmallMulishPrimary), - firstCurve: Curves.easeIn, - secondCurve: Curves.easeOut, - secondChild: const SizedBox.shrink(), - crossFadeState: state.isTyping ? CrossFadeState.showFirst : CrossFadeState.showSecond, - duration: const Duration(milliseconds: 150), - ), - ], + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + state.chatRoom.users.receiver.name, + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: CustomTextStyles.titleSmallBold.copyWith(color: PrimaryColors().black), + ), + AnimatedCrossFade( + firstChild: Text( + 'Печатает...', + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: CustomTextStyles.bodySmallMulishPrimary, + ), + firstCurve: Curves.easeIn, + secondCurve: Curves.easeOut, + secondChild: const SizedBox.shrink(), + crossFadeState: state.isTyping ? CrossFadeState.showFirst : CrossFadeState.showSecond, + duration: const Duration(milliseconds: 150), + ), + ], + ), ), ], ),