Fix display two line for from email address
This commit is contained in:
+16
-12
@@ -83,18 +83,22 @@ class EmailAddressComposerWidgetBuilder {
|
|||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
style: TextStyle(fontSize: 14, color: AppColor.nameUserColor, fontWeight: FontWeight.w500))),
|
style: TextStyle(fontSize: 14, color: AppColor.nameUserColor, fontWeight: FontWeight.w500))),
|
||||||
Expanded(child: RichText(text: TextSpan(
|
Expanded(
|
||||||
style: TextStyle(fontSize: 14, color: AppColor.nameUserColor),
|
child: Column(
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
if (_userProfile?.getFullName().isNotEmpty == true)
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
TextSpan(
|
children: [
|
||||||
text: '${_userProfile?.getFullName()}',
|
if (_userProfile?.getFullName().isNotEmpty == true)
|
||||||
style: TextStyle(fontWeight: FontWeight.w500, fontSize: 14, color: AppColor.nameUserColor)),
|
Text(
|
||||||
if (_userProfile?.getEmailAddress()?.isNotEmpty == true)
|
'${_userProfile?.getFullName()}',
|
||||||
TextSpan(
|
style: TextStyle(fontWeight: FontWeight.w500, fontSize: 14, color: AppColor.nameUserColor)),
|
||||||
text: '<${_userProfile?.getEmailAddress()}>',
|
if (_userProfile?.getEmailAddress()?.isNotEmpty == true)
|
||||||
style: TextStyle(fontSize: 14, color: AppColor.nameUserColor))
|
Text(
|
||||||
])))
|
'<${_userProfile?.getEmailAddress()}>',
|
||||||
|
style: TextStyle(fontSize: 14, color: AppColor.nameUserColor))
|
||||||
|
],
|
||||||
|
)
|
||||||
|
)
|
||||||
])),
|
])),
|
||||||
_buildEmailAddressWidget(PrefixEmailAddress.to, hasExpandButton: true),
|
_buildEmailAddressWidget(PrefixEmailAddress.to, hasExpandButton: true),
|
||||||
if (_expandMode == ExpandMode.EXPAND) _buildEmailAddressWidget(PrefixEmailAddress.cc),
|
if (_expandMode == ExpandMode.EXPAND) _buildEmailAddressWidget(PrefixEmailAddress.cc),
|
||||||
|
|||||||
Reference in New Issue
Block a user