Closed tobiasht closed 1 year ago
You can either set padding-inline-start
in css, or paddings
-> inlineStart
in the style
configuration on the ul
element to adjust the indentation of list items.
Thank you!
Html(
style: {
'ul': Style(
padding: HtmlPaddings(inlineStart: HtmlPadding(3)),
backgroundColor: Colors.red,
)
},
...
)
Describe the bug: I am currently utilizing the customRender/extensions feature to render a list in my mobile application, because the default indentation level is too large for mobile devices, impacting the overall user experience. To address this, I have attempted to use extensions to modify the indentation, but the content is still indented. I am unsure whether this behavior is intentional or not. If it is intentional, I would appreciate guidance on how to disable or modify the indentation to better suit mobile devices.
HTML to reproduce the issue:
Expected behavior: Not be indented
Screenshots:
Device details and Flutter/Dart/
flutter_html
versions: flutter_html: ^3.0.0-beta.2 flutter: 3.7.12 (and 3.10.4)Stacktrace/Logcat
Additional info: