Skip to content

[BUG] <hr> no longer works as of 2.1.0 #747

@britannio

Description

@britannio

Describe the bug:

The <hr> tag no longer produces a horizontal line as expected although the vertical spacing is now even. I caught this issue using https://pub.dev/packages/golden_toolkit so maybe it could be applied to this package to mitigate future regressions.

HTML to reproduce the issue:

<p>First Paragraph</p><hr><p>Second Paragraph</p>

Html widget configuration:

import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';

void main() {
  final data = '<p>First Paragraph</p><hr><p>Second Paragraph</p>';
  final app = MaterialApp(
    home: ColoredBox(color: Colors.white, child: Html(data: data)),
  );
  return runApp(app);
}
v2.0.0 v2.1.0
Screenshot 2021-06-23 at 17 13 08 Screenshot 2021-06-23 at 17 12 52

A picture of a cute animal (not mandatory but encouraged)
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions