@@ -314,7 +314,6 @@ class MessageListAppBarTitle extends StatelessWidget {
314
314
315
315
Widget _buildStreamRow (BuildContext context, {
316
316
ZulipStream ? stream,
317
- required String text,
318
317
}) {
319
318
// A null [Icon.icon] makes a blank space.
320
319
final icon = (stream != null ) ? iconDataForStream (stream) : null ;
@@ -325,12 +324,24 @@ class MessageListAppBarTitle extends StatelessWidget {
325
324
// https://github.com/zulip/zulip-flutter/pull/219#discussion_r1281024746
326
325
crossAxisAlignment: CrossAxisAlignment .center,
327
326
children: [
328
- Icon (size: 16 , icon),
329
- const SizedBox (width: 4 ),
330
- Flexible (child: Text (text)),
327
+ Padding (padding: const EdgeInsetsDirectional .only (end: 8.0 ),
328
+ child: Icon (size: 20 , icon)),
329
+ Flexible (child: Text (stream? .name ?? '(unknown stream)' ,
330
+ style: const TextStyle (
331
+ fontSize: 20 ,
332
+ ).merge (weightVariableTextStyle (context)))),
331
333
]);
332
334
}
333
335
336
+ Widget _buildTopicRow (BuildContext context, {
337
+ required ZulipStream ? stream,
338
+ required String topic,
339
+ }) {
340
+ return Text (topic, style: const TextStyle (
341
+ fontSize: 13 ,
342
+ ).merge (weightVariableTextStyle (context)));
343
+ }
344
+
334
345
@override
335
346
Widget build (BuildContext context) {
336
347
final zulipLocalizations = ZulipLocalizations .of (context);
@@ -348,14 +359,17 @@ class MessageListAppBarTitle extends StatelessWidget {
348
359
case ChannelNarrow (: var streamId):
349
360
final store = PerAccountStoreWidget .of (context);
350
361
final stream = store.streams[streamId];
351
- final streamName = stream? .name ?? '(unknown channel)' ;
352
- return _buildStreamRow (context, stream: stream, text: streamName);
362
+ return _buildStreamRow (context, stream: stream);
353
363
354
364
case TopicNarrow (: var streamId, : var topic):
355
365
final store = PerAccountStoreWidget .of (context);
356
366
final stream = store.streams[streamId];
357
- final streamName = stream? .name ?? '(unknown channel)' ;
358
- return _buildStreamRow (context, stream: stream, text: "$streamName > $topic " );
367
+ return Column (
368
+ crossAxisAlignment: CrossAxisAlignment .start,
369
+ children: [
370
+ _buildStreamRow (context, stream: stream),
371
+ _buildTopicRow (context, stream: stream, topic: topic),
372
+ ]);
359
373
360
374
case DmNarrow (: var otherRecipientIds):
361
375
final store = PerAccountStoreWidget .of (context);
0 commit comments