@@ -1342,9 +1342,10 @@ String formatHeaderDate(
13421342final _kMessageTimestampFormat = DateFormat ('h:mm aa' , 'en_US' );
13431343
13441344class _SenderRow extends StatelessWidget {
1345- const _SenderRow ({required this .message});
1345+ const _SenderRow ({required this .message, required this .showTimestamp });
13461346
13471347 final Message message;
1348+ final bool showTimestamp;
13481349
13491350 @override
13501351 Widget build (BuildContext context) {
@@ -1389,14 +1390,16 @@ class _SenderRow extends StatelessWidget {
13891390 ),
13901391 ],
13911392 ]))),
1392- const SizedBox (width: 4 ),
1393- Text (time,
1394- style: TextStyle (
1395- color: messageListTheme.labelTime,
1396- fontSize: 16 ,
1397- height: (18 / 16 ),
1398- fontFeatures: const [FontFeature .enable ('c2sc' ), FontFeature .enable ('smcp' )],
1399- ).merge (weightVariableTextStyle (context))),
1393+ if (showTimestamp) ...[
1394+ const SizedBox (width: 4 ),
1395+ Text (time,
1396+ style: TextStyle (
1397+ color: messageListTheme.labelTime,
1398+ fontSize: 16 ,
1399+ height: (18 / 16 ),
1400+ fontFeatures: const [FontFeature .enable ('c2sc' ), FontFeature .enable ('smcp' )],
1401+ ).merge (weightVariableTextStyle (context))),
1402+ ],
14001403 ]));
14011404 }
14021405}
@@ -1443,7 +1446,7 @@ class MessageWithPossibleSender extends StatelessWidget {
14431446 padding: const EdgeInsets .symmetric (vertical: 4 ),
14441447 child: Column (children: [
14451448 if (item.showSender)
1446- _SenderRow (message: message),
1449+ _SenderRow (message: message, showTimestamp : true ),
14471450 Row (
14481451 crossAxisAlignment: CrossAxisAlignment .baseline,
14491452 textBaseline: localizedTextBaseline (context),
0 commit comments