diff --git a/CHANGELOG.md b/CHANGELOG.md index 9938818..53da45f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.16 + +- update example + ## 0.0.15 - add comments for code diff --git a/README.md b/README.md index eb14e5f..25b9812 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/example/example.dart b/example/example.dart index f911e04..96de53d 100644 --- a/example/example.dart +++ b/example/example.dart @@ -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 = """ @@ -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), diff --git a/pubspec.yaml b/pubspec.yaml index 50b5854..6b310c2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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