-
-
Notifications
You must be signed in to change notification settings - Fork 915
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi, I've noticed a weird character that looks like a tab in <li>
elements for ordered lists. It happens only when the content needs a line break and the font weight is w300 or less. Any clues how to solve that?
Here's a minimal example that reproduces the problem (library version 1.0.0):
import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:flutter_html/style.dart';
const htmlData = """
<ol>
<li>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s</li>
</ol>
""";
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) => MaterialApp(home: MyHomePage());
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('flutter_html Example'),
),
body: SingleChildScrollView(
child: Html(
data: htmlData,
style: {
"*" : Style(fontWeight: FontWeight.w300)
}
),
),
);
}
}
The Flutter version is 1.17.3 as stated running flutter doctor
• Flutter version 1.17.3 at [...]
• Framework revision b041144f83 (12 days ago), 2020-06-04 09:26:11 -0700
• Engine revision ee76268252
• Dart version 2.8.4
This is a print of a list with FontWeight.w300
This is a print of a list with FontWeight.w400
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working