-
-
Notifications
You must be signed in to change notification settings - Fork 892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG?] bulletpoints not vertically centered on unordered and ordered lists #1210
Comments
facing this issue, any solution for this? |
Same over here... |
Facing this issue too |
Have you tried the most recent master branch? I think #1161 may have fixed this. (It will be included in the next release, hopefully by the end of this week) |
Hi @Sub6Resources, I noticed that the |
@cogivn In the most recent version, you'll need to create a custom At the top of your file, add the import
(In the stable version of 3.0.0 you won't need to add this import. See #1272) And then in your style: {
"li": Style(
marker: Marker(
style: Style(
fontSize: FontSize(50),
),
),
),
} Compare the result to the output generated in a browser when running the html: <ul>
<li>Item one</li>
<li>Item two</li>
<li>Item three</li>
<li>Item four</li>
</ul>
<style>
li::marker {
font-size: 50px;
}
</style> |
Hi @Sub6Resources, Thank you for replying me I'm using style: {
'#': defaultStyle,
'li': defaultStyle.copyWith(
listStylePosition: ListStylePosition.inside,
margin: Margins.symmetric(horizontal: 4, vertical: 5),
marker: Marker(style: Style(fontSize: FontSize(30)))),
...style
}, and here is the result: ![]() <article>
<p>Shop Online</p>
<ul>
<li>Shop online at - <a href="https://laneeight.hk/">https://laneeight.hk/</a></li>
<li>Use the promo code upon checking out</li>
</ul>
</article>
<article>
<p>Shop in Store</p>
<ul>
<li>Only applicable in Wan Chai or Sha Tin store</li>
<li>Show Townplace resident card/mobile pass to redeem the offer</li>
</ul>
</article> |
Thank you, |
ListStyleImage isnt working in flutter_html: ^3.0.0-beta.2 |
same goes with ordered list
currently using version 3.0.0-alpha6
the first html list, the bullet placement stay centered like a normal bullet list..
meanwhile DEFAULT HTML unordered list broke the bullet placement aka not centered
this is the reference for the HTML of the screenshot:
The text was updated successfully, but these errors were encountered: