Skip to content

Commit

Permalink
unfocus on swipe
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-lox committed Oct 26, 2024
1 parent 87a8a86 commit 82133d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class _NostrOnboardingState extends ConsumerState<NostrOnboarding>
horizontalScrollLock = false;
});
}

if (_tabController.index == 4 || _tabController.index == 5) {
setState(() {
pageLock = true;
Expand All @@ -48,6 +49,9 @@ class _NostrOnboardingState extends ConsumerState<NostrOnboarding>
pageLock = false;
});
}
if (_tabController.index != 1) {
FocusScope.of(context).unfocus();
}
});
_horizontalPageController.addListener(() {
if (horizontalScrollLock) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ class _OnboardingProfileState extends ConsumerState<OnboardingProfile> {
child: longButton(
name: "next",
onPressed: (() {
FocusScope.of(context).unfocus();
widget.profileCallback();
}),
inverted: true,
Expand Down

0 comments on commit 82133d0

Please sign in to comment.