Skip to content

Commit 14a9461

Browse files
authored
Code cleanup 3
1 parent 14ccce6 commit 14a9461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/html_parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ class StyledText extends StatelessWidget {
800800
}
801801

802802
double calculateWidth(Display display, RenderContext context) {
803-
if ((display == Display.BLOCK || display == Display.LIST_ITEM) && renderContext.parser.shrinkWrap != true) {
803+
if ((display == Display.BLOCK || display == Display.LIST_ITEM) && !renderContext.parser.shrinkWrap) {
804804
return double.infinity;
805805
}
806806
if (renderContext.parser.shrinkWrap) {

0 commit comments

Comments
 (0)