From 7cd5ad7803b9f2d583e9f2f6a120cf36c291d13d Mon Sep 17 00:00:00 2001 From: ice-hector <96414297+ice-hector@users.noreply.github.com> Date: Thu, 30 Nov 2023 18:27:06 +0200 Subject: [PATCH] chore: fix issue with unfocus --- .../pages/fill_profile/fill_profile.dart | 3 + .../wallet/views/pages/wallet_page.dart | 63 ++++++++++++------- 2 files changed, 44 insertions(+), 22 deletions(-) diff --git a/lib/app/features/auth/views/pages/fill_profile/fill_profile.dart b/lib/app/features/auth/views/pages/fill_profile/fill_profile.dart index e016f952b..56e5acebd 100644 --- a/lib/app/features/auth/views/pages/fill_profile/fill_profile.dart +++ b/lib/app/features/auth/views/pages/fill_profile/fill_profile.dart @@ -51,6 +51,9 @@ class FillProfile extends HookConsumerWidget { } void onSave() { + nameFieldFocusNode.unfocus(); + nicknameFieldFocusNode.unfocus(); + inviterFieldFocusNode.unfocus(); nameFieldKey.currentState!.validateText(); nicknameFieldKey.currentState!.validateText(); inviterFieldKey.currentState!.validateText(); diff --git a/lib/app/features/wallet/views/pages/wallet_page.dart b/lib/app/features/wallet/views/pages/wallet_page.dart index 284a0ee86..ae98640c7 100644 --- a/lib/app/features/wallet/views/pages/wallet_page.dart +++ b/lib/app/features/wallet/views/pages/wallet_page.dart @@ -150,28 +150,47 @@ class WalletPage extends HookConsumerWidget { // ), // JUST LABEL BUTTONS - Button( - onPressed: () {}, - label: const Text('Add'), - mainAxisSize: MainAxisSize.max, - ), - Button( - onPressed: () {}, - label: const Text('Remove'), - type: ButtonType.secondary, - mainAxisSize: MainAxisSize.max, - ), - Button( - onPressed: () {}, - label: const Text('Outlined'), - type: ButtonType.outlined, - mainAxisSize: MainAxisSize.max, - ), - Button( - onPressed: () {}, - label: const Text('Disabled'), - type: ButtonType.disabled, - mainAxisSize: MainAxisSize.max, + ColoredBox( + color: const Color.fromARGB(255, 207, 207, 207), + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16), + child: Column( + children: [ + Button( + onPressed: () {}, + label: const Text('Add'), + mainAxisSize: MainAxisSize.max, + ), + const SizedBox( + height: 10, + ), + Button( + onPressed: () {}, + label: const Text('Remove'), + type: ButtonType.secondary, + mainAxisSize: MainAxisSize.max, + ), + const SizedBox( + height: 10, + ), + Button( + onPressed: () {}, + label: const Text('Outlined'), + type: ButtonType.outlined, + mainAxisSize: MainAxisSize.max, + ), + const SizedBox( + height: 10, + ), + Button( + onPressed: () {}, + label: const Text('Disabled'), + type: ButtonType.disabled, + mainAxisSize: MainAxisSize.max, + ), + ], + ), + ), ), const SizedBox(