@@ -59,6 +59,7 @@ class HtmlParser extends StatelessWidget {
5959 final NavigationDelegate ? navigationDelegateForIframe;
6060 final OnTap ? _onAnchorTap;
6161 final TextSelectionControls ? selectionControls;
62+ final ScrollPhysics ? scrollPhysics;
6263
6364 HtmlParser ({
6465 required this .key,
@@ -76,7 +77,8 @@ class HtmlParser extends StatelessWidget {
7677 required this .imageRenders,
7778 required this .tagsList,
7879 required this .navigationDelegateForIframe,
79- this .selectionControls
80+ this .selectionControls,
81+ this .scrollPhysics,
8082 }) : this ._onAnchorTap = onAnchorTap != null
8183 ? onAnchorTap
8284 : key != null
@@ -128,6 +130,7 @@ class HtmlParser extends StatelessWidget {
128130 style: cleanedTree.style,
129131 ),
130132 selectionControls: selectionControls,
133+ scrollPhysics: scrollPhysics,
131134 );
132135 }
133136 return StyledText (
@@ -1074,6 +1077,7 @@ class StyledText extends StatelessWidget {
10741077 final AnchorKey ? key;
10751078 final bool _selectable;
10761079 final TextSelectionControls ? selectionControls;
1080+ final ScrollPhysics ? scrollPhysics;
10771081
10781082 const StyledText ({
10791083 required this .textSpan,
@@ -1082,6 +1086,7 @@ class StyledText extends StatelessWidget {
10821086 required this .renderContext,
10831087 this .key,
10841088 this .selectionControls,
1089+ this .scrollPhysics,
10851090 }) : _selectable = false ,
10861091 super (key: key);
10871092
@@ -1091,7 +1096,8 @@ class StyledText extends StatelessWidget {
10911096 this .textScaleFactor = 1.0 ,
10921097 required this .renderContext,
10931098 this .key,
1094- this .selectionControls
1099+ this .selectionControls,
1100+ this .scrollPhysics,
10951101 }) : textSpan = textSpan,
10961102 _selectable = true ,
10971103 super (key: key);
@@ -1107,6 +1113,7 @@ class StyledText extends StatelessWidget {
11071113 textScaleFactor: textScaleFactor,
11081114 maxLines: style.maxLines,
11091115 selectionControls: selectionControls,
1116+ scrollPhysics: scrollPhysics,
11101117 );
11111118 }
11121119 return SizedBox (
0 commit comments