fix(ui): align deposit button with text field and shrink primary button row

This commit is contained in:
2026-05-13 05:22:13 -05:00
parent ccef0fd186
commit 74fbf0084e
2 changed files with 7 additions and 9 deletions

View File

@@ -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(

View File

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