Fix recipient tag padding

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 404f773bfc6843a58d6b598ec312f6d829ce541f)
This commit is contained in:
dab246
2023-12-05 17:45:34 +07:00
committed by Dat H. Pham
parent 0b9da034b3
commit 5c45a8e729
@@ -72,6 +72,7 @@ class RecipientTagItemWidget extends StatelessWidget {
horizontal: 4, horizontal: 4,
vertical: DirectionUtils.isDirectionRTLByHasAnyRtl(currentEmailAddress.asString()) ? 0 : 2 vertical: DirectionUtils.isDirectionRTLByHasAnyRtl(currentEmailAddress.asString()) ? 0 : 2
), ),
padding: EdgeInsets.zero,
label: Text( label: Text(
currentEmailAddress.asString(), currentEmailAddress.asString(),
maxLines: 1, maxLines: 1,
@@ -117,6 +118,7 @@ class RecipientTagItemWidget extends StatelessWidget {
overflow: CommonTextStyle.defaultTextOverFlow, overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap, softWrap: CommonTextStyle.defaultSoftWrap,
), ),
padding: EdgeInsets.zero,
deleteIcon: SvgPicture.asset(_imagePaths.icClose, fit: BoxFit.fill), deleteIcon: SvgPicture.asset(_imagePaths.icClose, fit: BoxFit.fill),
labelStyle: RecipientTagItemWidgetStyle.labelTextStyle, labelStyle: RecipientTagItemWidgetStyle.labelTextStyle,
backgroundColor: _getTagBackgroundColor(), backgroundColor: _getTagBackgroundColor(),