mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-02-02 11:16:26 +00:00
Fix spacing on Swap and Send pages [skip ci]
This commit is contained in:
parent
8b426214d5
commit
b5d20d1603
4 changed files with 6 additions and 4 deletions
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue