We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 426c85d commit 14ccce6Copy full SHA for 14ccce6
lib/html_parser.dart
@@ -802,10 +802,10 @@ class StyledText extends StatelessWidget {
802
double calculateWidth(Display display, RenderContext context) {
803
if ((display == Display.BLOCK || display == Display.LIST_ITEM) && renderContext.parser.shrinkWrap != true) {
804
return double.infinity;
805
- } else if (renderContext.parser.shrinkWrap == true) {
+ }
806
+ if (renderContext.parser.shrinkWrap) {
807
return MediaQuery.of(context.buildContext).size.width;
- } else {
808
- return null;
809
}
+ return null;
810
811
0 commit comments