@@ -861,51 +861,47 @@ class MessageWithPossibleSender extends StatelessWidget {
861
861
child: Padding (
862
862
padding: const EdgeInsets .only (top: 2 , bottom: 3 , left: 8 , right: 8 ),
863
863
child: Row (crossAxisAlignment: CrossAxisAlignment .start, children: [
864
- item.showSender
865
- ? Padding (
866
- padding: const EdgeInsets .fromLTRB (3 , 6 , 11 , 0 ),
867
- child: GestureDetector (
868
- onTap: () => Navigator .push (context,
869
- ProfilePage .buildRoute (context: context,
870
- userId: message.senderId)),
871
- child: Avatar (size: 35 , borderRadius: 4 ,
872
- userId: message.senderId)))
873
- : const SizedBox (width: 3 + 35 + 11 ),
864
+ const SizedBox (width: 3 + 35 + 11 ),
874
865
Expanded (
875
866
child: Column (
876
867
crossAxisAlignment: CrossAxisAlignment .stretch,
877
868
children: [
878
869
if (item.showSender) ...[
879
870
const SizedBox (height: 3 ),
880
- GestureDetector (
881
- onTap: () => Navigator .push (context,
882
- ProfilePage .buildRoute (context: context,
883
- userId: message.senderId)),
884
- child: Text (message.senderFullName, // TODO get from user data
885
- style: const TextStyle (
886
- fontFamily: 'Source Sans 3' ,
887
- fontSize: 18 ,
888
- height: (22 / 18 ),
889
- ).merge (weightVariableTextStyle (context, wght: 600 ,
890
- wghtIfPlatformRequestsBold: 900 )))),
871
+ Row (
872
+ children: [
873
+ GestureDetector (
874
+ onTap: () => Navigator .push (context,
875
+ ProfilePage .buildRoute (context: context,
876
+ userId: message.senderId)),
877
+ child: Row (
878
+ children: [
879
+ Avatar (size: 35 , borderRadius: 4 ,
880
+ userId: message.senderId),
881
+ Text (message.senderFullName, // TODO get from user data
882
+ style: const TextStyle (
883
+ fontFamily: 'Source Sans 3' ,
884
+ fontSize: 18 ,
885
+ height: (22 / 18 ),
886
+ ).merge (weightVariableTextStyle (context, wght: 600 ,
887
+ wghtIfPlatformRequestsBold: 900 ))),
888
+ ])),
889
+ Text (time,
890
+ style: TextStyle (
891
+ color: _kMessageTimestampColor,
892
+ fontFamily: 'Source Sans 3' ,
893
+ fontSize: 16 ,
894
+ height: (18 / 16 ),
895
+ fontFeatures: const [FontFeature .enable ('c2sc' ), FontFeature .enable ('smcp' )],
896
+ ).merge (weightVariableTextStyle (context))),
897
+ ]),
891
898
const SizedBox (height: 4 ),
892
899
],
893
900
MessageContent (message: message, content: item.content),
894
901
if ((message.reactions? .total ?? 0 ) > 0 )
895
902
ReactionChipsList (messageId: message.id, reactions: message.reactions! )
896
903
])),
897
- Container (
898
- width: 80 ,
899
- padding: const EdgeInsets .only (top: 4 , right: 16 - 8 ),
900
- alignment: Alignment .topRight,
901
- child: Text (time,
902
- style: TextStyle (
903
- color: _kMessageTimestampColor,
904
- fontFamily: 'Source Sans 3' ,
905
- fontSize: 16 ,
906
- height: (18 / 16 ),
907
- fontFeatures: const [FontFeature .enable ('c2sc' ), FontFeature .enable ('smcp' )],
908
- ).merge (weightVariableTextStyle (context)))),
904
+ const SizedBox (width: 80 ),
909
905
])));
910
906
}
911
907
}
0 commit comments