@@ -362,8 +362,11 @@ class MessageListAppBarTitle extends StatelessWidget {
362
362
return Row (
363
363
mainAxisSize: MainAxisSize .min,
364
364
children: [
365
- Flexible (child: Text (topic.displayName, style: const TextStyle (
365
+ // ignore: dead_null_aware_expression // null topic names soon to be enabled
366
+ Flexible (child: Text (topic.displayName ?? store.realmEmptyTopicDisplayName, style: TextStyle (
366
367
fontSize: 13 ,
368
+ // ignore: unnecessary_null_comparison // null topic names soon to be enabled
369
+ fontStyle: (topic.displayName == null ) ? null : FontStyle .italic,
367
370
).merge (weightVariableTextStyle (context)))),
368
371
if (icon != null )
369
372
Padding (
@@ -1095,11 +1098,15 @@ class StreamMessageRecipientHeader extends StatelessWidget {
1095
1098
child: Row (
1096
1099
children: [
1097
1100
Flexible (
1098
- child: Text (topic.displayName,
1101
+ // ignore: dead_null_aware_expression // null topic names soon to be enabled
1102
+ child: Text (topic.displayName ?? store.realmEmptyTopicDisplayName,
1099
1103
// TODO: Give a way to see the whole topic (maybe a
1100
1104
// long-press interaction?)
1101
1105
overflow: TextOverflow .ellipsis,
1102
- style: recipientHeaderTextStyle (context))),
1106
+ style: recipientHeaderTextStyle (context).copyWith (
1107
+ // ignore: unnecessary_null_comparison // null topic names soon to be enabled
1108
+ fontStyle: (topic.displayName == null ) ? null : FontStyle .italic,
1109
+ ))),
1103
1110
const SizedBox (width: 4 ),
1104
1111
// TODO(design) copies the recipient header in web; is there a better color?
1105
1112
Icon (size: 14 , color: designVariables.colorMessageHeaderIconInteractive,
0 commit comments