Skip to content

Commit dec2b05

Browse files
committed
Add textAlign
1 parent ba5f3b9 commit dec2b05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: lib/src/html_stylist.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class HTML {
128128
TextAlign? textAlign,
129129
}) {
130130
return RichText(
131-
textAlign: TextAlign.left,
131+
textAlign: textAlign ?? TextAlign.left,
132132
text: toTextSpan(
133133
context,
134134
htmlContent,

Diff for: pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: simple_html_css
22
description: This package allows you to use simple HTML and inline CSS styles to style your text in flutter. A fork of css_text package.
3-
version: 3.0.1+3
3+
version: 3.0.1+4
44
homepage: https://github.com/ali-thowfeek/simple_html_css_flutter
55
repository: https://github.com/ali-thowfeek/simple_html_css_flutter
66
environment:

0 commit comments

Comments
 (0)