Skip to content

Commit de03675

Browse files
committed
fix: numpad overflow in send
1 parent 9c65f12 commit de03675

1 file changed

Lines changed: 24 additions & 15 deletions

File tree

lib/features/send/ui/screens/send_screen.dart

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ class _SendAmountScreenState extends State<SendAmountScreen> {
320320
Widget build(BuildContext context) {
321321
return Scaffold(
322322
backgroundColor: context.appColors.background,
323+
resizeToAvoidBottomInset: true,
323324
appBar: AppBar(
324325
forceMaterialTransparency: true,
325326
automaticallyImplyLeading: false,
@@ -398,11 +399,15 @@ class _SendAmountScreenState extends State<SendAmountScreen> {
398399
);
399400
return IgnorePointer(
400401
ignoring: state.amountConfirmedClicked,
401-
child: Padding(
402-
padding: const EdgeInsets.symmetric(horizontal: 16),
403-
child: Column(
404-
crossAxisAlignment: .stretch,
405-
children: [
402+
child: Column(
403+
crossAxisAlignment: .stretch,
404+
children: [
405+
Expanded(
406+
child: SingleChildScrollView(
407+
padding: const EdgeInsets.symmetric(horizontal: 16),
408+
child: Column(
409+
crossAxisAlignment: .stretch,
410+
children: [
406411
ColoredBox(
407412
color: context.appColors.onSecondary,
408413
child: Padding(
@@ -562,18 +567,22 @@ class _SendAmountScreenState extends State<SendAmountScreen> {
562567
const Gap(16),
563568
const _SendError(),
564569
],
565-
566-
const Spacer(),
567-
Padding(
568-
padding: EdgeInsets.only(
569-
bottom: Device.screen.height * 0.04,
570-
),
571-
child: SendAmountConfirmButton(
572-
amountController: _amountController,
570+
],
573571
),
574572
),
575-
],
576-
),
573+
),
574+
Padding(
575+
padding: EdgeInsets.fromLTRB(
576+
16,
577+
8,
578+
16,
579+
math.max(16, Device.screen.height * 0.04),
580+
),
581+
child: SendAmountConfirmButton(
582+
amountController: _amountController,
583+
),
584+
),
585+
],
577586
),
578587
);
579588
},

0 commit comments

Comments
 (0)