TF-3407 Enable SelectableText for email display name in EmailAddressDialogBuilder

This commit is contained in:
DatDang
2025-01-08 10:14:24 +07:00
committed by Dat H. Pham
parent 589d221e4f
commit be36476e25
2 changed files with 10 additions and 12 deletions
@@ -99,16 +99,15 @@ class EmailAddressBottomSheetBuilder {
left: 16, left: 16,
right: 16, right: 16,
top: 16), top: 16),
child: Text( child: SelectableText(
_emailAddress.displayName, _emailAddress.displayName,
textAlign: TextAlign.center, textAlign: TextAlign.center,
overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap,
maxLines: 2, maxLines: 2,
style: const TextStyle( style: const TextStyle(
fontSize: 20, overflow: CommonTextStyle.defaultTextOverFlow,
fontWeight: FontWeight.w600, fontSize: 20,
color: AppColor.colorNameEmail), fontWeight: FontWeight.w600,
color: AppColor.colorNameEmail),
)), )),
Material( Material(
color: Colors.transparent, color: Colors.transparent,
@@ -75,16 +75,15 @@ class EmailAddressDialogBuilder extends StatelessWidget {
left: 16, left: 16,
right: 16, right: 16,
top: 16), top: 16),
child: Center(child: Text( child: Center(child: SelectableText(
_emailAddress.displayName, _emailAddress.displayName,
textAlign: TextAlign.center, textAlign: TextAlign.center,
maxLines: 2, maxLines: 2,
overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap,
style: const TextStyle( style: const TextStyle(
fontSize: 20, overflow: CommonTextStyle.defaultTextOverFlow,
fontWeight: FontWeight.w600, fontSize: 20,
color: AppColor.colorNameEmail), fontWeight: FontWeight.w600,
color: AppColor.colorNameEmail),
)) ))
), ),
Material( Material(