TF-2196 Update controller with 'From'

(cherry picked from commit 4f0854a762631ded27cc197a9cce18c5de0ed97a)
This commit is contained in:
hieubt
2023-11-03 16:08:36 +07:00
committed by Dat Vu
parent 38a2c0ddf1
commit 64171603bb
3 changed files with 73 additions and 25 deletions
@@ -46,26 +46,24 @@ class FromComposerMobileWidget extends StatelessWidget {
),
),
const SizedBox(width: FromComposerMobileWidgetStyle.space),
Expanded(
child: Container(
Flexible(
child: Padding(
padding: FromComposerMobileWidgetStyle.identityButtonInkWellPadding,
child: InkWell(
borderRadius: FromComposerMobileWidgetStyle.identityButtonInkWellBorderRadius,
onTap: onTap,
child: Container(
height: FromComposerMobileWidgetStyle.identityButtonHeight,
width: responsiveUtils.isLandscapeMobile(context)
? FromComposerMobileWidgetStyle.identityButtonWidthMobileLandscape
: 0,
padding: FromComposerMobileWidgetStyle.identityButtonPadding,
decoration: FromComposerMobileWidgetStyle.identityButtonDecoration,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
if (selectedIdentity != null)
Expanded(
Flexible(
child: RichText(
maxLines: 1,
softWrap: CommonTextStyle.defaultSoftWrap,
softWrap: false,
overflow: CommonTextStyle.defaultTextOverFlow,
text: TextSpan(
children: [
@@ -82,11 +80,11 @@ class FromComposerMobileWidget extends StatelessWidget {
)
]
),
)
),
)
else
const SizedBox.shrink(),
SvgPicture.asset(imagePaths.icDropDown)
SvgPicture.asset(imagePaths.icDropDown),
],
),
),