@@ -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 (
@@ -1073,6 +1076,7 @@ class StyledText extends StatelessWidget {
10731076 final AnchorKey ? key;
10741077 final bool _selectable;
10751078 final TextSelectionControls ? selectionControls;
1079+ final ScrollPhysics ? scrollPhysics;
10761080
10771081 const StyledText ({
10781082 required this .textSpan,
@@ -1081,6 +1085,7 @@ class StyledText extends StatelessWidget {
10811085 required this .renderContext,
10821086 this .key,
10831087 this .selectionControls,
1088+ this .scrollPhysics,
10841089 }) : _selectable = false ,
10851090 super (key: key);
10861091
@@ -1090,7 +1095,8 @@ class StyledText extends StatelessWidget {
10901095 this .textScaleFactor = 1.0 ,
10911096 required this .renderContext,
10921097 this .key,
1093- this .selectionControls
1098+ this .selectionControls,
1099+ this .scrollPhysics,
10941100 }) : textSpan = textSpan,
10951101 _selectable = true ,
10961102 super (key: key);
@@ -1106,6 +1112,7 @@ class StyledText extends StatelessWidget {
11061112 textScaleFactor: textScaleFactor,
11071113 maxLines: style.maxLines,
11081114 selectionControls: selectionControls,
1115+ scrollPhysics: scrollPhysics,
11091116 );
11101117 }
11111118 return SizedBox (
0 commit comments