-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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: no focus border on date cells #1469
fix: no focus border on date cells #1469
Conversation
af297c6
to
3458f43
Compare
frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/date_cell/date_cell.dart
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @Eakam1007, I missed the fact that the GridCellState itself already has a method called requestBeginFocus()
that is hooked up to listen for focus changes. You can move those two lines from onTap()
to the override implementation below. After doing this, you can also get rid of the GestureDetector
so that the immediate child of SizedBox.expand
is the Align
. Sorry for the mixup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, for real this time. Thanks for contributing @Eakam1007!
* fix: no focus border on date cells * fix: remove redundant import * refactor: use existing functionality from GridCellWidget for focus border * refactor: use requestBeginFocus override instead of GestureDetector
Fixes #1414
Added a focus border to date cells if the popup is open: