@@ -1354,32 +1354,37 @@ class MessageWithPossibleSender extends StatelessWidget {
13541354 if (senderRow != null )
13551355 Padding (padding: const EdgeInsets .fromLTRB (16 , 2 , 16 , 0 ),
13561356 child: senderRow),
1357- Row (
1358- crossAxisAlignment: CrossAxisAlignment .baseline,
1359- textBaseline: localizedTextBaseline (context),
1357+ Stack (
13601358 children: [
1361- const SizedBox (width: 16 ),
1362- Expanded (child: Column (
1363- crossAxisAlignment: CrossAxisAlignment .stretch,
1364- children: [
1365- MessageContent (message: message, content: item.content),
1366- if ((message.reactions? .total ?? 0 ) > 0 )
1367- ReactionChipsList (messageId: message.id, reactions: message.reactions! ),
1368- if (editStateText != null )
1369- Text (editStateText,
1370- textAlign: TextAlign .end,
1371- style: TextStyle (
1372- color: designVariables.labelEdited,
1373- fontSize: 12 ,
1374- height: (12 / 12 ),
1375- letterSpacing: proportionalLetterSpacing (
1376- context, 0.05 , baseFontSize: 12 ))),
1377- ])),
1378- SizedBox (width: 16 ,
1379- child: message.flags.contains (MessageFlag .starred)
1380- ? Icon (ZulipIcons .star_filled, size: 16 , color: designVariables.star)
1381- : null ),
1382- ]),
1359+ Padding (
1360+ padding: const EdgeInsets .symmetric (horizontal: 16 ),
1361+ child: Column (
1362+ crossAxisAlignment: CrossAxisAlignment .stretch,
1363+ children: [
1364+ MessageContent (message: message, content: item.content),
1365+ if ((message.reactions? .total ?? 0 ) > 0 )
1366+ ReactionChipsList (messageId: message.id, reactions: message.reactions! ),
1367+ if (editStateText != null )
1368+ Text (editStateText,
1369+ textAlign: TextAlign .end,
1370+ style: TextStyle (
1371+ color: designVariables.labelEdited,
1372+ fontSize: 12 ,
1373+ height: (12 / 12 ),
1374+ letterSpacing: proportionalLetterSpacing (
1375+ context, 0.05 , baseFontSize: 12 ))),
1376+ ])),
1377+ if (message.flags.contains (MessageFlag .starred))
1378+ Positioned (
1379+ top: 4 ,
1380+ right: 2 ,
1381+ child: Icon (
1382+ ZulipIcons .star_filled,
1383+ size: 16 ,
1384+ color: designVariables.star,
1385+ ),
1386+ ),
1387+ ])
13831388 ])));
13841389 }
13851390}
0 commit comments