Skip to content

Commit

Permalink
feat: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmoon-mind committed Jul 10, 2024
1 parent 78d837c commit cd28829
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.16

- update example

## 0.0.15

- add comments for code
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ Widget build(BuildContext context) {

- `cssToTextStyle`

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

## License

Expand Down
6 changes: 4 additions & 2 deletions example/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import 'package:flutter/material.dart';
import 'package:style_parser/style_parser.dart';

void main() {
runApp(MyApp());
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({super.key});

@override
Widget build(BuildContext context) {
String css = """
Expand All @@ -27,7 +29,7 @@ class MyApp extends StatelessWidget {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('StyleParser Example'),
title: const Text('StyleParser Example'),
),
body: Padding(
padding: const EdgeInsets.all(16.0),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: style_parser
description: "StyleParser is a Flutter package that parses CSS and HTML to convert styles into Flutter's `TextStyle` and `TextSpan` for rich text formatting."
version: 0.0.15
version: 0.0.16
homepage: https://github.com/halfmoon-mind/style-parser
repository: https://github.com/halfmoon-mind/style-parser

Expand Down

0 comments on commit cd28829

Please sign in to comment.