TF-1679: Support responsive for a long text in identity

(cherry picked from commit 74eeaf55e7a174941a498fa35710452e1f93c505)
This commit is contained in:
HuyNguyen
2023-04-05 11:49:19 +07:00
committed by Dat Vu
parent 28347bb7c1
commit 758c14fb72
@@ -366,13 +366,16 @@ class IdentityCreatorView extends GetWidget<IdentityCreatorController> {
onTap: () => controller.closeView(context)),
),
Padding(
padding: const EdgeInsets.only(top: 14),
padding: const EdgeInsets.only(top: 14, right: 40, left: 40),
child: Align(
alignment: Alignment.center,
child: Obx(() {
return Text(controller.actionType.value == IdentityActionType.create
? AppLocalizations.of(context).createNewIdentity.inCaps
: AppLocalizations.of(context).edit_identity.inCaps,
maxLines: 1,
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 20, color: Colors.black));
}),
),