Skip to content

Commit 1402960

Browse files
committed
updated readme
1 parent 01d4883 commit 1402960

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# [2.0.0] - May 10th, 2020
1+
# [2.0.0+1] - May 10th, 2020
2+
3+
* updated README
4+
5+
## [2.0.0] - May 10th, 2020
26

37
* **Breaking change** Updated deprecated terms in Flutter v 1.17.0 (Only use this version if you are using flutter v1.17.0 or greater)
48
* **Breaking change** Updated dependency

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,25 @@ var myRichText = HTML.toRichText(context, htmlContent, linksCallback: (link) {
9898
});
9999
```
100100

101+
## Apply a default style
102+
103+
You can apply a global text sytle. This acts as the base text style of all content.
104+
105+
```dart
106+
HTML.toTextSpan(
107+
context,
108+
htmlContent,
109+
defaultTextStyle: TextStyle(
110+
color: Colors.grey[700],
111+
fontSize: 12,
112+
// etc etc
113+
),
114+
);
115+
```
116+
101117
## Overriding styles
102118

103-
You can override the inline styles and apply global styles for all the
119+
You can override the inline styles and apply global styles for each of the
104120
HTML tags in your HTML content.
105121

106122
```dart
@@ -127,6 +143,7 @@ HTML.toTextSpan(
127143

128144
Supports all tags which prints text normally like `p`, `div`, `span`, `body` etc.
129145
And the following special tags which change the text appearance
146+
130147
* `<h1> - <h5>`
131148
* `<b>` `<strong>`
132149
* `<i>` `<em>`

pubspec.yaml

Lines changed: 1 addition & 1 deletion
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: 2.0.0
3+
version: 2.0.0+1
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)