Unverified Commit ac3189c3 authored by chunhtai's avatar chunhtai Committed by GitHub

Remove RenderEditable dependency from TextSelectionHandleOverlay (#97967)

parent 3afbec88
...@@ -9138,7 +9138,7 @@ void main() { ...@@ -9138,7 +9138,7 @@ void main() {
await tester.pumpAndSettle(); await tester.pumpAndSettle();
final List<FadeTransition> transitions = find.descendant( final List<FadeTransition> transitions = find.descendant(
of: find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_TextSelectionHandleOverlay'), of: find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_SelectionHandleOverlay'),
matching: find.byType(FadeTransition), matching: find.byType(FadeTransition),
).evaluate().map((Element e) => e.widget).cast<FadeTransition>().toList(); ).evaluate().map((Element e) => e.widget).cast<FadeTransition>().toList();
expect(transitions.length, 2); expect(transitions.length, 2);
......
...@@ -4697,7 +4697,7 @@ void main() { ...@@ -4697,7 +4697,7 @@ void main() {
// direction. // direction.
final List<FadeTransition> transitions = find.descendant( final List<FadeTransition> transitions = find.descendant(
of: find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_TextSelectionHandleOverlay'), of: find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_SelectionHandleOverlay'),
matching: find.byType(FadeTransition), matching: find.byType(FadeTransition),
).evaluate().map((Element e) => e.widget).cast<FadeTransition>().toList(); ).evaluate().map((Element e) => e.widget).cast<FadeTransition>().toList();
expect(transitions.length, 2); expect(transitions.length, 2);
......
...@@ -4128,7 +4128,7 @@ void main() { ...@@ -4128,7 +4128,7 @@ void main() {
await tester.pumpAndSettle(); await tester.pumpAndSettle();
final List<FadeTransition> transitions = find.descendant( final List<FadeTransition> transitions = find.descendant(
of: find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_TextSelectionHandleOverlay'), of: find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_SelectionHandleOverlay'),
matching: find.byType(FadeTransition), matching: find.byType(FadeTransition),
).evaluate().map((Element e) => e.widget).cast<FadeTransition>().toList(); ).evaluate().map((Element e) => e.widget).cast<FadeTransition>().toList();
expect(transitions.length, 2); expect(transitions.length, 2);
......
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