Unverified Commit 94f6fd6e authored by chunhtai's avatar chunhtai Committed by GitHub

Remove redundant hide handles API from TextSelectionDelegate (#98944)

parent e4351ff0
...@@ -990,13 +990,6 @@ mixin TextSelectionDelegate { ...@@ -990,13 +990,6 @@ mixin TextSelectionDelegate {
/// updating the text editing state. /// updating the text editing state.
void userUpdateTextEditingValue(TextEditingValue value, SelectionChangedCause cause); void userUpdateTextEditingValue(TextEditingValue value, SelectionChangedCause cause);
/// Hides the text selection toolbar.
///
/// By default, hideHandles is true, and the toolbar is hidden along with its
/// handles. If hideHandles is set to false, then the toolbar will be hidden
/// but the handles will remain.
void hideToolbar([bool hideHandles = true]);
/// Brings the provided [TextPosition] into the visible area of the text /// Brings the provided [TextPosition] into the visible area of the text
/// input. /// input.
void bringIntoView(TextPosition position); void bringIntoView(TextPosition position);
......
...@@ -2908,7 +2908,11 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien ...@@ -2908,7 +2908,11 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien
return true; return true;
} }
@override /// Hides the text selection toolbar.
///
/// By default, hideHandles is true, and the toolbar is hidden along with its
/// handles. If hideHandles is set to false, then the toolbar will be hidden
/// but the handles will remain.
void hideToolbar([bool hideHandles = true]) { void hideToolbar([bool hideHandles = true]) {
if (hideHandles) { if (hideHandles) {
// Hide the handles and the toolbar. // Hide the handles and the toolbar.
......
...@@ -27,9 +27,6 @@ class _FakeEditableTextState with TextSelectionDelegate { ...@@ -27,9 +27,6 @@ class _FakeEditableTextState with TextSelectionDelegate {
@override @override
TextEditingValue textEditingValue = TextEditingValue.empty; TextEditingValue textEditingValue = TextEditingValue.empty;
@override
void hideToolbar([bool hideHandles = true]) { }
@override @override
void userUpdateTextEditingValue(TextEditingValue value, SelectionChangedCause cause) { } void userUpdateTextEditingValue(TextEditingValue value, SelectionChangedCause cause) { }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment