Skip to content

Commit 437bc30

Browse files
author
Pieter Otten
committed
Fixed formatting and typo
1 parent 99a80cc commit 437bc30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/flutter_linkify.dart

+5-5
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ TextSpan buildTextSpan({
8484

8585
void _onEmailOpen(String emailAddress) {
8686
if (onEmailOpen != null) {
87-
onEmailOpen(emailAddress); // TODO: discussable; add "mailto:" here for immediate use with url_launcher or except developers to do it themselves
87+
onEmailOpen(emailAddress); // TODO: discussable; add "mailto:" here for immediate use with url_launcher or expect developers to do it themselves
8888
}
8989
}
9090

@@ -110,10 +110,10 @@ TextSpan buildTextSpan({
110110
);
111111
} else if (element is EmailElement) {
112112
return TextSpan(
113-
text: element.text,
114-
style: linkStyle,
115-
recognizer: TapGestureRecognizer()
116-
..onTap = () => _onEmailOpen(element.emailAddress),
113+
text: element.text,
114+
style: linkStyle,
115+
recognizer: TapGestureRecognizer()
116+
..onTap = () => _onEmailOpen(element.emailAddress),
117117
);
118118
}
119119
},

0 commit comments

Comments
 (0)