Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix opening keyboard when selecting event/exam time #1790

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

nilsreichardt
Copy link
Member

@nilsreichardt nilsreichardt commented Nov 7, 2024

The issue was that the delayKeyboard() was calling the build() method.

Fixes #1789

@github-actions github-actions bot added the feature: timetable / calendar Includes anything regarding lessons (timetable) and events (calendar). label Nov 7, 2024
}

@override
Widget build(BuildContext context) {
if (!_hasRequestedTitleFocus) {
_hasRequestedTitleFocus = true;
delayKeyboard(context: context, focusNode: titleFocusNode);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jonas-Sander Do you know if there was a reason why you called the delayKeyboard in the build() method instead of using a StatefulWidget with initState?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, probably just laziness.

Copy link

github-actions bot commented Nov 7, 2024

Visit the preview URL for this PR (updated for commit a9251ae):

https://sharezone-test--pr1790-event-fix-keyboard-042z6xgm.web.app

(expires Sun, 10 Nov 2024 19:38:27 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b

@nilsreichardt nilsreichardt added this pull request to the merge queue Nov 7, 2024
Merged via the queue into main with commit db4c855 Nov 7, 2024
37 checks passed
@nilsreichardt nilsreichardt deleted the event-fix-keyboard branch November 7, 2024 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: timetable / calendar Includes anything regarding lessons (timetable) and events (calendar).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keyboard opens when selecting the time for an event/exam
2 participants