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,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
// mainAxisSize: MainAxisSize.min,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (leading != null) ...[
|
||||
IconTheme.merge(
|
||||
|
||||
@@ -77,6 +77,7 @@ class _DepositBlockState extends ConsumerState<DepositBlock> {
|
||||
children: [
|
||||
Row(
|
||||
spacing: 16,
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Expanded(
|
||||
child: CustomTextField(
|
||||
@@ -87,14 +88,11 @@ class _DepositBlockState extends ConsumerState<DepositBlock> {
|
||||
length: 6,
|
||||
),
|
||||
),
|
||||
Align(
|
||||
alignment: Alignment.bottomRight,
|
||||
child: PrimaryButton(
|
||||
onPressed: _onPressed,
|
||||
text: context.translate(I18n.depositButton),
|
||||
color: theme.getColorFor(ThemeCode.buttonPrimary),
|
||||
padding: 24,
|
||||
),
|
||||
PrimaryButton(
|
||||
onPressed: _onPressed,
|
||||
text: context.translate(I18n.depositButton),
|
||||
color: theme.getColorFor(ThemeCode.buttonPrimary),
|
||||
padding: 24,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user