Skip to content

Commit

Permalink
chore: fix issue with unfocus
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-hector committed Nov 30, 2023
1 parent 26ecfe7 commit 7cd5ad7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
63 changes: 41 additions & 22 deletions lib/app/features/wallet/views/pages/wallet_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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: <Widget>[
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(
Expand Down

0 comments on commit 7cd5ad7

Please sign in to comment.