Skip to content

Commit

Permalink
fixup! TF-2196 Update controller with 'From'
Browse files Browse the repository at this point in the history
  • Loading branch information
hieutbui committed Nov 6, 2023
1 parent 1f9bc92 commit 35ae28b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class FromComposerMobileWidgetStyle {
static const double space = 8.0;
static const double identityButtonHeight = 32.0;
static const double identityButtonWidthMobileLandscape = 421.0;
static const double identityButtonWidthMobilePortrait = 300.0;

static const EdgeInsetsGeometry identityButtonInkWellPadding = EdgeInsets.symmetric(vertical: 8.0);
static const EdgeInsetsGeometry identityButtonPadding = EdgeInsets.only(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,19 @@ class FromComposerMobileWidget extends StatelessWidget {
),
),
const SizedBox(width: FromComposerMobileWidgetStyle.space),
Expanded(
IntrinsicWidth(
child: Container(
padding: FromComposerMobileWidgetStyle.identityButtonInkWellPadding,
constraints: BoxConstraints(
maxWidth: responsiveUtils.isLandscapeMobile(context)
? FromComposerMobileWidgetStyle.identityButtonWidthMobileLandscape
: FromComposerMobileWidgetStyle.identityButtonWidthMobilePortrait
),
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(
Expand Down

0 comments on commit 35ae28b

Please sign in to comment.