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