Skip to content

Commit cd28829

Browse files
committed
feat: update example
1 parent 78d837c commit cd28829

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.16
2+
3+
- update example
4+
15
## 0.0.15
26

37
- add comments for code

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ Widget build(BuildContext context) {
114114

115115
- `cssToTextStyle`
116116

117-
- Converts a CSS string to a map of TextStyle objects.
118-
- Parameters:
119-
- `style` (String): The CSS string to be converted.
117+
- Converts a CSS string to a map of TextStyle objects.
118+
- Parameters:
119+
- `style` (String): The CSS string to be converted.
120120

121121
## License
122122

example/example.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ import 'package:flutter/material.dart';
22
import 'package:style_parser/style_parser.dart';
33

44
void main() {
5-
runApp(MyApp());
5+
runApp(const MyApp());
66
}
77

88
class MyApp extends StatelessWidget {
9+
const MyApp({super.key});
10+
911
@override
1012
Widget build(BuildContext context) {
1113
String css = """
@@ -27,7 +29,7 @@ class MyApp extends StatelessWidget {
2729
return MaterialApp(
2830
home: Scaffold(
2931
appBar: AppBar(
30-
title: Text('StyleParser Example'),
32+
title: const Text('StyleParser Example'),
3133
),
3234
body: Padding(
3335
padding: const EdgeInsets.all(16.0),

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: style_parser
22
description: "StyleParser is a Flutter package that parses CSS and HTML to convert styles into Flutter's `TextStyle` and `TextSpan` for rich text formatting."
3-
version: 0.0.15
3+
version: 0.0.16
44
homepage: https://github.com/halfmoon-mind/style-parser
55
repository: https://github.com/halfmoon-mind/style-parser
66

0 commit comments

Comments
 (0)