diff --git a/CHANGELOG.md b/CHANGELOG.md index 78ad789752..44cc2c1cb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [3.0.0-alpha.5] - June 9, 2022: +* Fixed hot reloads, thanks @arjenmels +* Fixed link taps not working +* Improvements in README + ## [3.0.0-alpha.3] - April 14, 2022: * Fixed styling not being applied to list item markers * [video] Fixed crash when iframe or video tags used unsupported/incorrect height or width diff --git a/README.md b/README.md index ebc4cd044d..9210a56651 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,8 @@ A Flutter widget for rendering HTML and CSS as Flutter widgets. Add the following to your `pubspec.yaml` file: dependencies: - flutter_html: ^3.0.0-alpha.3 + flutter_html: ^3.0.0-alpha.5 + // Or flutter_html_all: ^3.0.0-alpha.5 to include table, video, audio, iframe... ## Currently Supported HTML Tags: | | | | | | | | | | | | @@ -566,6 +567,11 @@ The package considers the attributes `controls`, `loop`, `src`, `autoplay`, `wid #### Registering the `CustomRender`: +Add the dependency to your pubspec.yaml: + + dependencies: + flutter_html_audio: ^3.0.0-alpha.3 + ```dart Widget html = Html( customRenders: { @@ -584,6 +590,11 @@ Sandbox controls the JavaScript mode of the webview - a value of `null` or `allo #### Registering the `CustomRender`: +Add the dependency to your pubspec.yaml: + + dependencies: + flutter_html_iframe: ^3.0.0-alpha.3 + ```dart Widget html = Html( customRenders: { @@ -620,6 +631,11 @@ Because this package is parsing MathML to Tex, it may not support some functiona #### Registering the `CustomRender`: +Add the dependency to your pubspec.yaml: + + dependencies: + flutter_html_math: ^3.0.0-alpha.3 + ```dart Widget html = Html( customRenders: { @@ -688,6 +704,11 @@ The package also exposes a few ways to render SVGs within an `` tag, specif #### Registering the `CustomRender`: +Add the dependency to your pubspec.yaml: + + dependencies: + flutter_html_svg: ^3.0.0-alpha.3 + ```dart Widget html = Html( customRenders: { @@ -707,6 +728,11 @@ When rendering table elements, the package tries to calculate the best fit for e #### Registering the `CustomRender`: +Add the dependency to your pubspec.yaml: + + dependencies: + flutter_html_table: ^3.0.0-alpha.3 + ```dart Widget html = Html( customRenders: { @@ -723,6 +749,11 @@ The package considers the attributes `controls`, `loop`, `src`, `autoplay`, `pos #### Registering the `CustomRender`: +Add the dependency to your pubspec.yaml: + + dependencies: + flutter_html_video: ^3.0.0-alpha.3 + ```dart Widget html = Html( customRenders: { @@ -750,7 +781,8 @@ Widget row = Row( ``` ## Migration Guides -- For Version 1.0 - [Guide](https://github.com/Sub6Resources/flutter_html/wiki/1.0.0-Migration-Guide) +- For Version 1.0/2.0 - [Guide](https://github.com/Sub6Resources/flutter_html/wiki/1.0.0-Migration-Guide) +- For Version 3.0 - **TODO** ## Contribution Guide > Coming soon! diff --git a/example/lib/generated_plugin_registrant.dart b/example/lib/generated_plugin_registrant.dart index fd95b4ff6c..fc500d7eff 100644 --- a/example/lib/generated_plugin_registrant.dart +++ b/example/lib/generated_plugin_registrant.dart @@ -4,6 +4,7 @@ // ignore_for_file: directives_ordering // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: depend_on_referenced_packages import 'package:video_player_web/video_player_web.dart'; import 'package:wakelock_web/wakelock_web.dart'; diff --git a/example/lib/main.dart b/example/lib/main.dart index 971022f1c9..e0489a248c 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -241,6 +241,8 @@ const htmlData = r"""

Scroll to top

"""; +final staticAnchorKey = GlobalKey(); + class _MyHomePageState extends State { @override Widget build(BuildContext context) { @@ -249,8 +251,18 @@ class _MyHomePageState extends State { title: Text('flutter_html Example'), centerTitle: true, ), + floatingActionButton: FloatingActionButton( + child: Icon(Icons.arrow_downward), + onPressed: () { + final anchorContext = AnchorKey.forId(staticAnchorKey, "bottom")?.currentContext; + if (anchorContext != null) { + Scrollable.ensureVisible(anchorContext); + } + }, + ), body: SingleChildScrollView( child: Html( + anchorKey: staticAnchorKey, data: htmlData, style: { "table": Style( diff --git a/packages/flutter_html_all/pubspec.yaml b/packages/flutter_html_all/pubspec.yaml index 7f5b9305de..ab76f12164 100644 --- a/packages/flutter_html_all/pubspec.yaml +++ b/packages/flutter_html_all/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_html_all description: All optional flutter_html widgets, bundled into a single package. -version: 3.0.0-alpha.3 +version: 3.0.0-alpha.5 homepage: https://github.com/Sub6Resources/flutter_html environment: @@ -11,7 +11,7 @@ dependencies: flutter: sdk: flutter html: '>=0.15.0 <1.0.0' - flutter_html: '>=3.0.0-alpha.3 <4.0.0' + flutter_html: '>=3.0.0-alpha.5 <4.0.0' flutter_html_audio: '>=3.0.0-alpha.3 <4.0.0' flutter_html_iframe: '>=3.0.0-alpha.3 <4.0.0' flutter_html_math: '>=3.0.0-alpha.3 <4.0.0' diff --git a/pubspec.yaml b/pubspec.yaml index 5c1d6aebb5..8842d4ba76 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_html description: A Flutter widget rendering static HTML and CSS as Flutter widgets. -version: 3.0.0-alpha.3 +version: 3.0.0-alpha.5 homepage: https://github.com/Sub6Resources/flutter_html environment: