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