diff --git a/lib/flutter_html.dart b/lib/flutter_html.dart
index a613d66485..fef0a670eb 100644
--- a/lib/flutter_html.dart
+++ b/lib/flutter_html.dart
@@ -32,6 +32,7 @@ class Html extends StatelessWidget {
this.getCodeLanguage,
this.setCodeLanguage,
this.inlineSpanEnd,
+ this.pillBuilder,
}) : super(key: key);
final String data;
@@ -57,6 +58,7 @@ class Html extends StatelessWidget {
/// Setting and getting code langauge cache
final SetCodeLanguage? setCodeLanguage;
final GetCodeLanguage? getCodeLanguage;
+ final PillBuilder? pillBuilder;
final InlineSpan? inlineSpanEnd;
@@ -89,6 +91,7 @@ class Html extends StatelessWidget {
setCodeLanguage: setCodeLanguage,
getCodeLanguage: getCodeLanguage,
inlineSpanEnd: inlineSpanEnd,
+ pillBuilder: pillBuilder,
),
),
);
diff --git a/lib/text_parser.dart b/lib/text_parser.dart
index a0d2f3914f..58fb9db88d 100644
--- a/lib/text_parser.dart
+++ b/lib/text_parser.dart
@@ -24,6 +24,7 @@ typedef OnPillTap = void Function(String identifier);
typedef GetMxcUrl = String Function(String mxc, double? width, double? height,
{bool? animated});
typedef GetPillInfo = Future