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