Skip to content

Commit be36476

Browse files
tddang-linagorahoangdat
authored andcommitted
TF-3407 Enable SelectableText for email display name in EmailAddressDialogBuilder
1 parent 589d221 commit be36476

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

lib/features/email/presentation/widgets/email_address_bottom_sheet_builder.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,15 @@ class EmailAddressBottomSheetBuilder {
9999
left: 16,
100100
right: 16,
101101
top: 16),
102-
child: Text(
102+
child: SelectableText(
103103
_emailAddress.displayName,
104104
textAlign: TextAlign.center,
105-
overflow: CommonTextStyle.defaultTextOverFlow,
106-
softWrap: CommonTextStyle.defaultSoftWrap,
107105
maxLines: 2,
108106
style: const TextStyle(
109-
fontSize: 20,
110-
fontWeight: FontWeight.w600,
111-
color: AppColor.colorNameEmail),
107+
overflow: CommonTextStyle.defaultTextOverFlow,
108+
fontSize: 20,
109+
fontWeight: FontWeight.w600,
110+
color: AppColor.colorNameEmail),
112111
)),
113112
Material(
114113
color: Colors.transparent,

lib/features/email/presentation/widgets/email_address_dialog_builder.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,15 @@ class EmailAddressDialogBuilder extends StatelessWidget {
7575
left: 16,
7676
right: 16,
7777
top: 16),
78-
child: Center(child: Text(
78+
child: Center(child: SelectableText(
7979
_emailAddress.displayName,
8080
textAlign: TextAlign.center,
8181
maxLines: 2,
82-
overflow: CommonTextStyle.defaultTextOverFlow,
83-
softWrap: CommonTextStyle.defaultSoftWrap,
8482
style: const TextStyle(
85-
fontSize: 20,
86-
fontWeight: FontWeight.w600,
87-
color: AppColor.colorNameEmail),
83+
overflow: CommonTextStyle.defaultTextOverFlow,
84+
fontSize: 20,
85+
fontWeight: FontWeight.w600,
86+
color: AppColor.colorNameEmail),
8887
))
8988
),
9089
Material(

0 commit comments

Comments
 (0)