@@ -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 (
@@ -1119,11 +1122,15 @@ class StreamMessageRecipientHeader extends StatelessWidget {
1119
1122
child: Row (
1120
1123
children: [
1121
1124
Flexible (
1122
- child: Text (topic.displayName,
1125
+ // ignore: dead_null_aware_expression // null topic names soon to be enabled
1126
+ child: Text (topic.displayName ?? store.realmEmptyTopicDisplayName,
1123
1127
// TODO: Give a way to see the whole topic (maybe a
1124
1128
// long-press interaction?)
1125
1129
overflow: TextOverflow .ellipsis,
1126
- style: recipientHeaderTextStyle (context))),
1130
+ style: recipientHeaderTextStyle (context).copyWith (
1131
+ // ignore: unnecessary_null_comparison // null topic names soon to be enabled
1132
+ fontStyle: topic.displayName == null ? FontStyle .italic : null ,
1133
+ ))),
1127
1134
const SizedBox (width: 4 ),
1128
1135
// TODO(design) copies the recipient header in web; is there a better color?
1129
1136
Icon (size: 14 , color: designVariables.colorMessageHeaderIconInteractive,
0 commit comments