fix(ui): align deposit button with text field and shrink primary button row
This commit is contained in:
@@ -53,7 +53,7 @@ class PrimaryButton extends StatelessWidget {
|
|||||||
height: height,
|
height: height,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
// mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
if (leading != null) ...[
|
if (leading != null) ...[
|
||||||
IconTheme.merge(
|
IconTheme.merge(
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ class _DepositBlockState extends ConsumerState<DepositBlock> {
|
|||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
spacing: 16,
|
spacing: 16,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: CustomTextField(
|
child: CustomTextField(
|
||||||
@@ -87,14 +88,11 @@ class _DepositBlockState extends ConsumerState<DepositBlock> {
|
|||||||
length: 6,
|
length: 6,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
PrimaryButton(
|
||||||
alignment: Alignment.bottomRight,
|
onPressed: _onPressed,
|
||||||
child: PrimaryButton(
|
text: context.translate(I18n.depositButton),
|
||||||
onPressed: _onPressed,
|
color: theme.getColorFor(ThemeCode.buttonPrimary),
|
||||||
text: context.translate(I18n.depositButton),
|
padding: 24,
|
||||||
color: theme.getColorFor(ThemeCode.buttonPrimary),
|
|
||||||
padding: 24,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user