8000 Fix analysis warning · Sub6Resources/flutter_html@2db8818 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2db8818

Browse files
committed
Fix analysis warning
1 parent 0cab00f commit 2db8818

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/css_box_widget.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,10 @@ class _RenderCSSBox extends RenderBox
683683
extension Normalize on Dimension {
684684
void normalize(double emValue) {
685685
switch (this.unit) {
686+
case Unit.rem:
687+
// Because CSSBoxWidget doesn't have any information about any
688+
// sort of tree structure, treat rem the same as em. The HtmlParser
689+
// widget handles rem/em values before they get to CSSBoxWidget.
686690
case Unit.em:
687691
this.value *= emValue;
688692
this.unit = Unit.px;

0 commit comments

Comments
 (0)
0