flutter_html icon indicating copy to clipboard operation
flutter_html copied to clipboard

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

Open giordy16 opened this issue 7 months ago • 1 comments

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

giordy16 avatar May 30 '25 14:05 giordy16

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.

mpinto-btf avatar Jul 18 '25 17:07 mpinto-btf