mirror of
https://github.com/flutter/packages.git
synced 2025-07-04 09:38:17 +08:00
Revert changes using visitChildren to original visitTextSpan
This commit is contained in:
@ -128,8 +128,7 @@ void main() {
|
||||
final TextSpan span = textWidget.text;
|
||||
|
||||
final List<Type> gestureRecognizerTypes = <Type>[];
|
||||
span.visitChildren((InlineSpan inlineSpan) {
|
||||
final TextSpan textSpan = inlineSpan;
|
||||
span.visitTextSpan((TextSpan textSpan) {
|
||||
TapGestureRecognizer recognizer = textSpan.recognizer;
|
||||
gestureRecognizerTypes.add(recognizer.runtimeType);
|
||||
recognizer.onTap();
|
||||
@ -156,8 +155,7 @@ void main() {
|
||||
final TextSpan span = textWidget.text;
|
||||
|
||||
final List<Type> gestureRecognizerTypes = <Type>[];
|
||||
span.visitChildren((InlineSpan inlineSpan) {
|
||||
final TextSpan textSpan = inlineSpan;
|
||||
span.visitTextSpan((TextSpan textSpan) {
|
||||
TapGestureRecognizer recognizer = textSpan.recognizer;
|
||||
gestureRecognizerTypes.add(recognizer.runtimeType);
|
||||
recognizer?.onTap();
|
||||
|
Reference in New Issue
Block a user