Fix spacing on Swap and Send pages [skip ci]

This commit is contained in:
tuxpizza 2024-12-27 11:29:07 -05:00
parent 8b426214d5
commit b5d20d1603
4 changed files with 6 additions and 4 deletions

View file

@ -193,6 +193,7 @@ class ExchangeCardState<T extends Currency> extends State<ExchangeCard<T>> {
width: double.infinity,
color: Colors.transparent,
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[
SizedBox(height: 10),
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
@ -208,6 +209,7 @@ class ExchangeCardState<T extends Currency> extends State<ExchangeCard<T>> {
],
),
CurrencyAmountTextField(
padding: EdgeInsets.zero,
currencyPickerButtonKey: ValueKey('${_cardInstanceName}_currency_picker_button_key'),
selectedCurrencyTextKey: ValueKey('${_cardInstanceName}_selected_currency_text_key'),
selectedCurrencyTagTextKey:
@ -274,7 +276,7 @@ class ExchangeCardState<T extends Currency> extends State<ExchangeCard<T>> {
? FocusTraversalOrder(
order: NumericFocusOrder(2),
child: Padding(
padding: widget.addressRowPadding ?? EdgeInsets.only(top: 0),
padding: widget.addressRowPadding ?? EdgeInsets.only(top: 12),
child: AddressTextField(
addressKey: ValueKey('${_cardInstanceName}_editable_address_textfield_key'),
focusNode: widget.addressFocusNode,

View file

@ -68,7 +68,7 @@ class MobileExchangeCardsSection extends StatelessWidget {
),
),
Padding(
padding: EdgeInsets.only(top: 29, left: 24, right: 24),
padding: EdgeInsets.only(top: 20, left: 24, right: 24),
child: secondExchangeCard,
)
],

View file

@ -139,7 +139,7 @@ class CurrencyAmountTextField extends StatelessWidget {
],
);
return Padding(
padding: padding ?? const EdgeInsets.only(top: 0),
padding: padding ?? const EdgeInsets.only(top: 20),
child: Row(
children: [
isSelected

View file

@ -142,7 +142,7 @@ class SendCardState extends State<SendCard> with AutomaticKeepAliveClientMixin<S
child: Padding(
padding: EdgeInsets.fromLTRB(
24,
responsiveLayoutUtil.shouldRenderMobileUI ? 100 : 55,
responsiveLayoutUtil.shouldRenderMobileUI ? 110 : 55,
24,
responsiveLayoutUtil.shouldRenderMobileUI ? 32 : 0,
),