@@ -1342,9 +1342,10 @@ String formatHeaderDate(
1342
1342
final _kMessageTimestampFormat = DateFormat ('h:mm aa' , 'en_US' );
1343
1343
1344
1344
class _SenderRow extends StatelessWidget {
1345
- const _SenderRow ({required this .message});
1345
+ const _SenderRow ({required this .message, required this .showTimestamp });
1346
1346
1347
1347
final Message message;
1348
+ final bool showTimestamp;
1348
1349
1349
1350
@override
1350
1351
Widget build (BuildContext context) {
@@ -1389,14 +1390,16 @@ class _SenderRow extends StatelessWidget {
1389
1390
),
1390
1391
],
1391
1392
]))),
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
+ ],
1400
1403
]));
1401
1404
}
1402
1405
}
@@ -1443,7 +1446,7 @@ class MessageWithPossibleSender extends StatelessWidget {
1443
1446
padding: const EdgeInsets .symmetric (vertical: 4 ),
1444
1447
child: Column (children: [
1445
1448
if (item.showSender)
1446
- _SenderRow (message: message),
1449
+ _SenderRow (message: message, showTimestamp : true ),
1447
1450
Row (
1448
1451
crossAxisAlignment: CrossAxisAlignment .baseline,
1449
1452
textBaseline: localizedTextBaseline (context),
0 commit comments