@@ -366,8 +366,11 @@ class MessageListAppBarTitle extends StatelessWidget {
366
366
return Row (
367
367
mainAxisSize: MainAxisSize .min,
368
368
children: [
369
- Flexible (child: Text (topic.displayName, style: const TextStyle (
369
+ // ignore: dead_null_aware_expression // null topic names soon to be enabled
370
+ Flexible (child: Text (topic.displayName ?? store.realmEmptyTopicDisplayName, style: TextStyle (
370
371
fontSize: 13 ,
372
+ // ignore: unnecessary_null_comparison // null topic names soon to be enabled
373
+ fontStyle: topic.displayName == null ? FontStyle .italic : null ,
371
374
).merge (weightVariableTextStyle (context)))),
372
375
if (icon != null )
373
376
Padding (
@@ -1116,11 +1119,15 @@ class StreamMessageRecipientHeader extends StatelessWidget {
1116
1119
child: Row (
1117
1120
children: [
1118
1121
Flexible (
1119
- child: Text (topic.displayName,
1122
+ // ignore: dead_null_aware_expression // null topic names soon to be enabled
1123
+ child: Text (topic.displayName ?? store.realmEmptyTopicDisplayName,
1120
1124
// TODO: Give a way to see the whole topic (maybe a
1121
1125
// long-press interaction?)
1122
1126
overflow: TextOverflow .ellipsis,
1123
- style: recipientHeaderTextStyle (context))),
1127
+ style: recipientHeaderTextStyle (context).copyWith (
1128
+ // ignore: unnecessary_null_comparison // null topic names soon to be enabled
1129
+ fontStyle: topic.displayName == null ? FontStyle .italic : null ,
1130
+ ))),
1124
1131
const SizedBox (width: 4 ),
1125
1132
// TODO(design) copies the recipient header in web; is there a better color?
1126
1133
Icon (size: 14 , color: designVariables.colorMessageHeaderIconInteractive,
0 commit comments