Skip to content

Commit 3f3b782

Browse files
authored
Add text direction support to list items
This will fix list bullets and indentation problems in RTL languages and layout directions. Related issue: Sub6Resources#352
1 parent 5cea1b4 commit 3f3b782

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/html_parser.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,12 @@ class HtmlParser extends StatelessWidget {
272272
width: 30, //TODO derive this from list padding.
273273
start: 0,
274274
child: Text('${newContext.style.markerContent}\t',
275-
textAlign: TextAlign.right,
275+
textAlign: TextAlign.end,
276276
style: newContext.style.generateTextStyle()),
277277
),
278278
Padding(
279-
padding: EdgeInsets.only(
280-
left: 30), //TODO derive this from list padding.
279+
padding: EdgeInsetsDirectional.only(
280+
start: 30), //TODO derive this from list padding.
281281
child: StyledText(
282282
textSpan: TextSpan(
283283
children: tree.children

0 commit comments

Comments
 (0)