Move the requestKeyboard up to the widgets layer (#141655)
Turns out all implementations of this method made this call, so it seems like it should belong in the superclass.
This commit is contained in:
@@ -117,7 +117,6 @@ class _CupertinoTextFieldSelectionGestureDetectorBuilder extends TextSelectionGe
|
||||
}
|
||||
}
|
||||
super.onSingleTapUp(details);
|
||||
_state._requestKeyboard();
|
||||
_state.widget.onTap?.call();
|
||||
}
|
||||
|
||||
|
||||
@@ -65,12 +65,6 @@ class _TextFieldSelectionGestureDetectorBuilder extends TextSelectionGestureDete
|
||||
// Not required.
|
||||
}
|
||||
|
||||
@override
|
||||
void onSingleTapUp(TapDragUpDetails details) {
|
||||
super.onSingleTapUp(details);
|
||||
_state._requestKeyboard();
|
||||
}
|
||||
|
||||
@override
|
||||
bool get onUserTapAlwaysCalled => _state.widget.onTapAlwaysCalled;
|
||||
|
||||
|
||||
@@ -2417,6 +2417,7 @@ class TextSelectionGestureDetectorBuilder {
|
||||
}
|
||||
}
|
||||
}
|
||||
editableText.requestKeyboard();
|
||||
}
|
||||
|
||||
/// Handler for [TextSelectionGestureDetector.onSingleTapCancel].
|
||||
|
||||
Reference in New Issue
Block a user