Skip to content

Commit d90c83d

Browse files
authored
RichText --> Text.rich (#53)
1 parent 7afa126 commit d90c83d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/flutter_linkify.dart

+11-11
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,8 @@ class Linkify extends StatelessWidget {
9898
linkifiers: linkifiers,
9999
);
100100

101-
return RichText(
102-
textAlign: textAlign,
103-
textDirection: textDirection,
104-
maxLines: maxLines,
105-
overflow: overflow,
106-
textScaleFactor: textScaleFactor,
107-
softWrap: softWrap,
108-
strutStyle: strutStyle,
109-
locale: locale,
110-
textWidthBasis: textWidthBasis,
111-
text: buildTextSpan(
101+
return Text.rich(
102+
buildTextSpan(
112103
elements,
113104
style: Theme.of(context).textTheme.bodyText2.merge(style),
114105
onOpen: onOpen,
@@ -122,6 +113,15 @@ class Linkify extends StatelessWidget {
122113
)
123114
.merge(linkStyle),
124115
),
116+
textAlign: textAlign,
117+
textDirection: textDirection,
118+
maxLines: maxLines,
119+
overflow: overflow,
120+
textScaleFactor: textScaleFactor,
121+
softWrap: softWrap,
122+
strutStyle: strutStyle,
123+
locale: locale,
124+
textWidthBasis: textWidthBasis,
125125
);
126126
}
127127
}

0 commit comments

Comments
 (0)