diff --git a/simplistic_editor/lib/basic_text_input_client.dart b/simplistic_editor/lib/basic_text_input_client.dart index 4aae8722d..4f415eb6b 100644 --- a/simplistic_editor/lib/basic_text_input_client.dart +++ b/simplistic_editor/lib/basic_text_input_client.dart @@ -780,7 +780,8 @@ class BasicTextInputClientState extends State // We return early if the selection is not valid. This can happen when the // text of the editable is updated at the same time as the selection is // changed by a gesture event. - if (!widget.controller.isSelectionWithinTextBounds(selection)) return; + final textLength = _value.text.length; + if (selection.start > textLength || selection.end > textLength) return; widget.controller.selection = selection; diff --git a/tool/flutter_ci_script_beta.sh b/tool/flutter_ci_script_beta.sh index 7c1f68dc9..d2b242630 100755 --- a/tool/flutter_ci_script_beta.sh +++ b/tool/flutter_ci_script_beta.sh @@ -60,8 +60,7 @@ declare -ar PROJECT_NAMES=( # "provider_shopper" "simple_shader" "simplistic_calculator" - # TODO(DomesticMouse): The method 'isSelectionWithinTextBounds' isn't defined for the type 'TextEditingController' - # "simplistic_editor" + "simplistic_editor" "testing_app" "veggieseasons" "web_embedding/element_embedding_demo" diff --git a/tool/flutter_ci_script_master.sh b/tool/flutter_ci_script_master.sh index 14e73ca43..072c50d03 100755 --- a/tool/flutter_ci_script_master.sh +++ b/tool/flutter_ci_script_master.sh @@ -60,8 +60,7 @@ declare -ar PROJECT_NAMES=( # "provider_shopper" "simple_shader" "simplistic_calculator" - # TODO(DomesticMouse): The method 'isSelectionWithinTextBounds' isn't defined for the type 'TextEditingController' - # "simplistic_editor" + "simplistic_editor" "testing_app" "veggieseasons" "web_embedding/element_embedding_demo"