Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.79k stars 860 forks source link

[QUESTION]There's no constant named 'NORMAL' in 'WhiteSpace'. #1168

Closed therealkiranda closed 1 year ago

therealkiranda commented 1 year ago

After updating this package I am getting error

There's no constant named 'NORMAL' in 'WhiteSpace'.

style: { "body": Style( margin: Margins.zero, padding: EdgeInsets.zero, fontSize: FontSize(18.0), lineHeight: LineHeight(1.7), whiteSpace: WhiteSpace.NORMAL, fontWeight: FontWeight.w400, color: Theme.of(context).colorScheme.secondary, fontFamily: 'Open Sans'), "p,h1,h2,h3,h4,h5,h6": Style( margin: Margins.all(textPadding == null ? 20.0 : textPadding!)), "figure": Style(margin: Margins.zero, padding: EdgeInsets.zero), },

Screenshot (146)

Can you please check this issue ASAP? It was working fine before I have updated the package.

Sub6Resources commented 1 year ago

The new constant is now normal. All lowercase, to match the preferred Flutter code style.

therealkiranda commented 1 year ago

The new constant is now normal. All lowercase, to match the preferred Flutter code style.

Thank You so much worked like a charm!!!!