mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
feat: Properly recognize the current input method
This commit is contained in:
parent
561351dd09
commit
8b9bc04380
7 changed files with 154 additions and 36 deletions
|
|
@ -146,6 +146,8 @@ class FocusButtonState extends State<FocusButton> {
|
|||
child: Focus(
|
||||
focusNode: focusNode,
|
||||
autofocus: widget.autoFocus,
|
||||
canRequestFocus: widget.onTap != null || widget.onLongPress != null || widget.onSecondaryTapDown != null,
|
||||
skipTraversal: widget.onTap == null && widget.onLongPress == null && widget.onSecondaryTapDown != null,
|
||||
onFocusChange: (value) {
|
||||
widget.onFocusChanged?.call(value);
|
||||
if (value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue