Fix spacing in Swap and Send pages

This commit is contained in:
tuxpizza 2024-12-26 21:21:09 -05:00
parent 5434de4f07
commit d8f4e44dc9
3 changed files with 5 additions and 4 deletions

View file

@ -188,11 +188,11 @@ class ExchangeCardState<T extends Currency> extends State<ExchangeCard<T>> {
height: 16,
width: 16,
color: Theme.of(context).extension<SendPageTheme>()!.estimatedFeeColor);
return Container(
width: double.infinity,
color: Colors.transparent,
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[
SizedBox(height: 10),
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
@ -208,6 +208,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 +275,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

@ -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,
),