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.
2 parents a767bfd + 16c828f commit 5ec8547Copy full SHA for 5ec8547
lib/html_parser.dart
@@ -273,9 +273,11 @@ class HtmlParser extends StatelessWidget {
273
/// widget onto the [StyledElement] tree, no cascading of styles is done at this point.
274
static StyledElement _applyCustomStyles(Map<String, Style> style, StyledElement tree) {
275
style.forEach((key, style) {
276
- if (tree.matchesSelector(key)) {
277
- tree.style = tree.style.merge(style);
278
- }
+ try {
+ if (tree.matchesSelector(key)) {
+ tree.style = tree.style.merge(style);
279
+ }
280
+ } catch (_) {}
281
});
282
tree.children.forEach((e) => _applyCustomStyles(style, e));
283
0 commit comments