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,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
// mainAxisSize: MainAxisSize.min,
mainAxisSize: MainAxisSize.min,
children: [
if (leading != null) ...[
IconTheme.merge(

View File

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