There is a default padding in flutter_html already when trying to parse text.
Below is the difference between using HTML(data: ...) and Text(...) widgets.
Top: HTML Widget, Bottom: Text Widget

How can I remove the horizontal padding?
The HTML or body is having a default padding and/or margin.
Try adding
"body": Style(margin: Margins.all(0), ...)
in the style parameter.
Html has updated, so I update accepted answer:
"body": Style(
padding: HtmlPaddings.zero,
margin: Margins.zero,
),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With