diff --git a/lib/widgets/message_list.dart b/lib/widgets/message_list.dart index 67f83c1846..456c70dfb4 100644 --- a/lib/widgets/message_list.dart +++ b/lib/widgets/message_list.dart @@ -785,19 +785,20 @@ class MessageWithPossibleSender extends StatelessWidget { final Widget senderWidget; if (item.showSender) { - senderWidget = Column( - children: [ - const SizedBox(height: 3), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.baseline, - textBaseline: TextBaseline.alphabetic, - children: [ - Flexible( - child: GestureDetector( - onTap: () => Navigator.push(context, - ProfilePage.buildRoute(context: context, - userId: message.senderId)), + senderWidget = Padding( + padding: const EdgeInsets.symmetric(vertical: 2), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.baseline, + textBaseline: TextBaseline.alphabetic, + children: [ + Flexible( + child: GestureDetector( + onTap: () => Navigator.push(context, + ProfilePage.buildRoute(context: context, + userId: message.senderId)), + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 2), child: Row( children: [ Avatar(size: 32, borderRadius: 3, userId: message.senderId), @@ -812,20 +813,18 @@ class MessageWithPossibleSender extends StatelessWidget { wghtIfPlatformRequestsBold: 900)), overflow: TextOverflow.ellipsis), ), - ])), - ), - Text(time, - style: TextStyle( - color: _kMessageTimestampColor, - fontFamily: 'Source Sans 3', - fontSize: 16, - height: (18 / 16), - fontFeatures: const [FontFeature.enable('c2sc'), FontFeature.enable('smcp')], - ).merge(weightVariableTextStyle(context))), - ]), - const SizedBox(height: 4), - ], - ); + ]), + )), + ), + Text(time, + style: TextStyle( + color: _kMessageTimestampColor, + fontFamily: 'Source Sans 3', + fontSize: 16, + height: (18 / 16), + fontFeatures: const [FontFeature.enable('c2sc'), FontFeature.enable('smcp')], + ).merge(weightVariableTextStyle(context))), + ])); } else { senderWidget = const SizedBox.shrink(); }