From c524a36231944a39b6bfe8872028c468f30334bc Mon Sep 17 00:00:00 2001 From: tanay Date: Tue, 13 Apr 2021 09:39:35 -0400 Subject: [PATCH 001/222] Potentially fix audio/video not disposing when going to a different screen --- README.md | 40 +++++++++++++++++++++++++++ lib/flutter_html.dart | 16 +++++++++++ lib/html_parser.dart | 2 ++ lib/src/replaced_element.dart | 52 ++++++++++++++++++++--------------- lib/src/utils.dart | 9 ++++++ 5 files changed, 97 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 2c6e58130f..014ef58388 100644 --- a/README.md +++ b/README.md @@ -31,11 +31,15 @@ A Flutter widget for rendering HTML and CSS as Flutter widgets. - [Why flutter_html?](#why-this-package) +- [Recommended Usage](#recommended-usage) + - [API Reference](#api-reference) - [Constructors](#constructors) - [Parameters Table](#parameters) + + - [Methods](#methods) - [Data](#data) @@ -133,6 +137,36 @@ This package is designed with simplicity in mind. Originally created to allow ba this project has expanded to include support for basic styling as well! If you need something more robust and customizable, the package also provides a number of optional custom APIs for extremely granular control over widget rendering! +## Recommended Usage + +```dart + late final Html htmlWidget; + final String htmlData = '

html data

'; + + //dispose is especially important when using