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:
Ian Hickson
2024-01-18 18:30:03 -08:00
committed by GitHub
parent 46bbf4029a
commit 8ff0af0c70
3 changed files with 1 additions and 7 deletions

View File

@@ -117,7 +117,6 @@ class _CupertinoTextFieldSelectionGestureDetectorBuilder extends TextSelectionGe
}
}
super.onSingleTapUp(details);
_state._requestKeyboard();
_state.widget.onTap?.call();
}

View File

@@ -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;

View File

@@ -2417,6 +2417,7 @@ class TextSelectionGestureDetectorBuilder {
}
}
}
editableText.requestKeyboard();
}
/// Handler for [TextSelectionGestureDetector.onSingleTapCancel].