@@ -1537,7 +1537,7 @@ class MessageWithPossibleSender extends StatelessWidget {
1537
1537
behavior: HitTestBehavior .translucent,
1538
1538
onLongPress: () => showMessageActionSheet (context: context, message: message),
1539
1539
child: Padding (
1540
- padding: const EdgeInsets .symmetric (vertical : 4 ),
1540
+ padding: const EdgeInsets .only (top : 4 ),
1541
1541
child: Column (children: [
1542
1542
if (item.showSender)
1543
1543
_SenderRow (message: message, showTimestamp: true ),
@@ -1555,14 +1555,18 @@ class MessageWithPossibleSender extends StatelessWidget {
1555
1555
if (editMessageErrorStatus != null )
1556
1556
_EditMessageStatusRow (messageId: message.id, status: editMessageErrorStatus)
1557
1557
else if (editStateText != null )
1558
- Text (editStateText,
1559
- textAlign: TextAlign .end,
1560
- style: TextStyle (
1561
- color: designVariables.labelEdited,
1562
- fontSize: 12 ,
1563
- height: (12 / 12 ),
1564
- letterSpacing: proportionalLetterSpacing (
1565
- context, 0.05 , baseFontSize: 12 ))),
1558
+ Padding (
1559
+ padding: const EdgeInsets .only (bottom: 4 ),
1560
+ child: Text (editStateText,
1561
+ textAlign: TextAlign .end,
1562
+ style: TextStyle (
1563
+ color: designVariables.labelEdited,
1564
+ fontSize: 12 ,
1565
+ height: (12 / 12 ),
1566
+ letterSpacing: proportionalLetterSpacing (context,
1567
+ 0.05 , baseFontSize: 12 ))))
1568
+ else
1569
+ Padding (padding: const EdgeInsets .only (bottom: 4 ))
1566
1570
])),
1567
1571
SizedBox (width: 16 ,
1568
1572
child: star),
@@ -1593,30 +1597,34 @@ class _EditMessageStatusRow extends StatelessWidget {
1593
1597
1594
1598
return switch (status) {
1595
1599
// TODO parse markdown and show new content as local echo?
1596
- false => Column (
1597
- crossAxisAlignment: CrossAxisAlignment .stretch,
1598
- spacing: 1.5 ,
1599
- children: [
1600
- Text (
1600
+ false => Padding (
1601
+ padding: const EdgeInsets .only (bottom: 4 ),
1602
+ child: Column (
1603
+ crossAxisAlignment: CrossAxisAlignment .stretch,
1604
+ spacing: 1.5 ,
1605
+ children: [
1606
+ Text (
1607
+ style: baseTextStyle
1608
+ .copyWith (color: designVariables.btnLabelAttLowIntInfo),
1609
+ textAlign: TextAlign .end,
1610
+ zulipLocalizations.savingMessageEditLabel),
1611
+ // TODO instead place within bottom outer padding:
1612
+ // https://github.com/zulip/zulip-flutter/pull/1498#discussion_r2087576108
1613
+ LinearProgressIndicator (
1614
+ minHeight: 2 ,
1615
+ color: designVariables.foreground.withValues (alpha: 0.5 ),
1616
+ backgroundColor: designVariables.foreground.withValues (alpha: 0.2 ),
1617
+ ),
1618
+ ])),
1619
+ true => Padding (
1620
+ padding: const EdgeInsets .only (bottom: 4 ),
1621
+ child: _RestoreEditMessageGestureDetector (
1622
+ messageId: messageId,
1623
+ child: Text (
1601
1624
style: baseTextStyle
1602
- .copyWith (color: designVariables.btnLabelAttLowIntInfo ),
1625
+ .copyWith (color: designVariables.btnLabelAttLowIntDanger ),
1603
1626
textAlign: TextAlign .end,
1604
- zulipLocalizations.savingMessageEditLabel),
1605
- // TODO instead place within bottom outer padding:
1606
- // https://github.com/zulip/zulip-flutter/pull/1498#discussion_r2087576108
1607
- LinearProgressIndicator (
1608
- minHeight: 2 ,
1609
- color: designVariables.foreground.withValues (alpha: 0.5 ),
1610
- backgroundColor: designVariables.foreground.withValues (alpha: 0.2 ),
1611
- ),
1612
- ]),
1613
- true => _RestoreEditMessageGestureDetector (
1614
- messageId: messageId,
1615
- child: Text (
1616
- style: baseTextStyle
1617
- .copyWith (color: designVariables.btnLabelAttLowIntDanger),
1618
- textAlign: TextAlign .end,
1619
- zulipLocalizations.savingMessageEditFailedLabel)),
1627
+ zulipLocalizations.savingMessageEditFailedLabel))),
1620
1628
};
1621
1629
}
1622
1630
}
0 commit comments