diff --git a/.circleci/config.yml b/.circleci/config.yml index 010547222b..718328b1f8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,4 +37,4 @@ jobs: command: melos run analyze - run: name: Check That Flutter Code is Formatted Correctly - command: flutter format -o none --set-exit-if-changed . + command: dart format -o none --set-exit-if-changed . diff --git a/.github/flutter_html_screenshot.png b/.github/flutter_html_screenshot.png deleted file mode 100644 index 3d1b893b61..0000000000 Binary files a/.github/flutter_html_screenshot.png and /dev/null differ diff --git a/.github/flutter_html_screenshot2.png b/.github/flutter_html_screenshot2.png deleted file mode 100644 index eb47b0e146..0000000000 Binary files a/.github/flutter_html_screenshot2.png and /dev/null differ diff --git a/.github/flutter_html_screenshot3.png b/.github/flutter_html_screenshot3.png deleted file mode 100644 index 75a065879d..0000000000 Binary files a/.github/flutter_html_screenshot3.png and /dev/null differ diff --git a/.gitignore b/.gitignore index caf0d56dbf..188d2e1fa5 100644 --- a/.gitignore +++ b/.gitignore @@ -154,4 +154,6 @@ modules.xml packages/**/pubspec_overrides.yaml ./pubspec_overrides.yaml -/example/pubspec_overrides.yaml \ No newline at end of file +/example/pubspec_overrides.yaml + +coverage/ \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 122bb26fbb..80c8b6f22a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +# Change Log + + +#### 3.0.0-beta.1 - *May 2023* + + - Several Breaking Changes. See the [migration guide](https://github.com/Sub6Resources/flutter_html/wiki/Migration-Guides#300) + + - **FIX**: Aspect ratio exception when height is 0 ([#1222](https://github.com/sub6resources/flutter_html/issues/1222)). ([ed75f8fe](https://github.com/sub6resources/flutter_html/commit/ed75f8fef779e920ecc1f27719a4150a29e3ebee)) + - **FIX**: Fix issue with font scaling introduced in 3.0.0-alpha.6 ([#1173](https://github.com/sub6resources/flutter_html/issues/1173)). ([c75e0dfb](https://github.com/sub6resources/flutter_html/commit/c75e0dfb1be6cb79748f719487043d12bc330c60)) + - **FIX**: Fix various issues with list rendering. ([520ff3c3](https://github.com/sub6resources/flutter_html/commit/520ff3c326d5dc8f5a601022c2a32d58e2e83cbb)) + - **FIX**: Apply margins to
Screenshot 1 | -Screenshot 2 | -Screenshot 3 | -
![]() |
- ![]() |
- ![]() |
-
flutter_html supports a variety of HTML and CSS tags and attributes.
+Over a hundred static tags are supported out of the box.
+Or you can even define your own using an Extension
:
Its easy to add custom styles to your Html as well using the Style
class:
Here's a fancy <p> element!
+ """, + extensions: [ + TagExtension( + tagsToExtend: {"flutter"}, + child: const FlutterLogo(), + ), + ], + style: { + "p.fancy": Style( + textAlign: TextAlign.center, + padding: const EdgeInsets.all(16), + backgroundColor: Colors.grey, + margin: Margins(left: Margin(50, Unit.px), right: Margin.auto()), + width: Width(300, Unit.px), + fontWeight: FontWeight.bold, + ), + }, + ); +} +``` -## Table of Contents: +becomes... -- [Installing](#installing) +This is a fantastic product that you should buy!
-This is a fantastic product that you should buy!
-- Linking to websites has never been easier. -
""", - onLinkTap: (String? url, RenderContext context, MapJanuary | February | March | April | May | June | July | August | September | October | November | December |
---|---|---|---|---|---|---|---|---|---|---|---|
\$100 | \$50 | \$80 | \$60 | \$90 | \$140 | \$110 | \$80 | \$90 | \$60 | \$40 | \$70 |
\90 | \$60 | \$80 | \$80 | \$100 | \$160 | \$150 | \$110 | \$100 | \$60 | \$30 | \$80 |