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

View file

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

View file

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

View file

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