Skip to content

[BUG] Simple HTML is not showing properly since version 3.0.0 #1487

Open

Description

@giordy16

Describe the bug:
Simple HTML is not showing properly since version 3.0.0. In version 3.0.0-beta.2 was warning perfectly.

HTML to reproduce the issue:
<p><center><h2>Data privacy notice</h2></center>This app enables the documentation of XXXXXXXXXXXX.<br/><br/>Please note that this is not permitted:<ul><li>Taking pictures of employees or other persons<br/></li><li>Describing employees or others by their names or other personal data in texts<br/></li></ul></p><br/><hr /><center><h2>App support</h2></center><p><br/>If you need help or have any questions please contact your local key user.<br/><br/>In case of problems with the app please contact the support team. You can reach us via <br/>phone (+XXXXXXXXX).<br/><br/><I>– XXXXXXXXXXX</I></p>

Html widget configuration:

  @override
  Widget build(BuildContext context) {
    var texts = GetIt.I<Texts>();
    return Scaffold(
      appBar: AppBar(
          title: Text(
              texts.text("mc_initial_warning_title", fallback: "Important!"))),
      body: Html(data: forcedHtml),
    );
  }

Expected behavior:

Version 3.0.0-beta.2

Image

Screenshots:

Version 3.0.0

Image

Device details and Flutter/Dart/flutter_html versions:
Error happens in all devices

Stacktrace/Logcat
No Exception is thrown

Activity

  1. added
    bug
    on May 30, 2025
  2. mpinto-btf commented on Jul 18, 2025

    @mpinto-btf

    Not sure if you are still having this issue but try giving it style, add the property border-top: 1px solid #DBDDDC with the color of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions