@@ -855,6 +855,21 @@ class MessageWithPossibleSender extends StatelessWidget {
855
855
final time = _kMessageTimestampFormat
856
856
.format (DateTime .fromMillisecondsSinceEpoch (1000 * message.timestamp));
857
857
858
+ Widget ? senderRow;
859
+ if (item.showSender) {
860
+ senderRow = GestureDetector (
861
+ onTap: () => Navigator .push (context,
862
+ ProfilePage .buildRoute (context: context,
863
+ userId: message.senderId)),
864
+ child: Text (message.senderFullName, // TODO get from user data
865
+ style: const TextStyle (
866
+ fontFamily: 'Source Sans 3' ,
867
+ fontSize: 18 ,
868
+ height: (22 / 18 ),
869
+ ).merge (weightVariableTextStyle (context, wght: 600 ,
870
+ wghtIfPlatformRequestsBold: 900 ))));
871
+ }
872
+
858
873
return GestureDetector (
859
874
behavior: HitTestBehavior .translucent,
860
875
onLongPress: () => showMessageActionSheet (context: context, message: message),
@@ -877,17 +892,7 @@ class MessageWithPossibleSender extends StatelessWidget {
877
892
children: [
878
893
if (item.showSender) ...[
879
894
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 )))),
895
+ senderRow! ,
891
896
const SizedBox (height: 4 ),
892
897
],
893
898
MessageContent (message: message, content: item.content),
0 commit comments