Skip to content

Commit a767bfd

Browse files
authored
Merge pull request Sub6Resources#853 from vrtdev/feature/release-214
Release 2.1.4
2 parents 24d529c + b03ea06 commit a767bfd

File tree

8 files changed

+24
-11
lines changed

8 files changed

+24
-11
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [2.1.4] - October 3, 2021:
2+
* Fix regression in usage of line breaks in body being stripped
3+
4+
## [2.1.3] - October 1, 2021:
5+
* Update minimum versions of dependencies for Flutter 2.5 compatibility
6+
* Extended and fixed support for css shadow
7+
* Fix block tags with explicit whitespace from being stripped
8+
19
## [2.1.2] - September 2, 2021:
210
* Allow setting selectionControls with SelectableHtml
311
* Fix onLinkTap not working with SelectableHtml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ A Flutter widget for rendering HTML and CSS as Flutter widgets.
9898
Add the following to your `pubspec.yaml` file:
9999

100100
dependencies:
101-
flutter_html: ^2.1.2
101+
flutter_html: ^2.1.4
102102

103103
## Currently Supported HTML Tags:
104104
| | | | | | | | | | | |

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>8.0</string>
24+
<string>9.0</string>
2525
</dict>
2626
</plist>

example/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ EXTERNAL SOURCES:
2424
:path: ".symlinks/plugins/webview_flutter/ios"
2525

2626
SPEC CHECKSUMS:
27-
Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
27+
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
2828
video_player: 9cc823b1d9da7e8427ee591e8438bfbcde500e6e
29-
wakelock: b0843b2479edbf6504d8d262c2959446f35373aa
29+
wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f
3030
webview_flutter: 9f491a9b5a66f2573946a389b2677987b0ff8c0b
3131

3232
PODFILE CHECKSUM: 8e679eca47255a8ca8067c4c67aab20e64cb974d
3333

34-
COCOAPODS: 1.10.1
34+
COCOAPODS: 1.11.2

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
336336
GCC_WARN_UNUSED_FUNCTION = YES;
337337
GCC_WARN_UNUSED_VARIABLE = YES;
338-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
338+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
339339
MTL_ENABLE_DEBUG_INFO = NO;
340340
SDKROOT = iphoneos;
341341
TARGETED_DEVICE_FAMILY = "1,2";
@@ -414,7 +414,7 @@
414414
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
415415
GCC_WARN_UNUSED_FUNCTION = YES;
416416
GCC_WARN_UNUSED_VARIABLE = YES;
417-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
417+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
418418
MTL_ENABLE_DEBUG_INFO = YES;
419419
ONLY_ACTIVE_ARCH = YES;
420420
SDKROOT = iphoneos;
@@ -463,7 +463,7 @@
463463
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
464464
GCC_WARN_UNUSED_FUNCTION = YES;
465465
GCC_WARN_UNUSED_VARIABLE = YES;
466-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
466+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
467467
MTL_ENABLE_DEBUG_INFO = NO;
468468
SDKROOT = iphoneos;
469469
TARGETED_DEVICE_FAMILY = "1,2";

example/lib/generated_plugin_registrant.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Generated file. Do not edit.
33
//
44

5+
// ignore_for_file: directives_ordering
56
// ignore_for_file: lines_longer_than_80_chars
67

78
import 'package:video_player_web/video_player_web.dart';

lib/html_parser.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,13 +944,17 @@ class HtmlParser extends StatelessWidget {
944944
if (child is EmptyContentElement || child is EmptyLayoutElement) {
945945
toRemove.add(child);
946946
} else if (child is TextContentElement
947-
&& child.text!.trim().isEmpty
947+
&& tree.name == "body"
948+
&& child.text!.trim().isEmpty) {
949+
toRemove.add(child);
950+
} else if (child is TextContentElement
951+
&& child.text!.isEmpty
948952
&& child.style.whiteSpace != WhiteSpace.PRE) {
949953
toRemove.add(child);
950954
} else if (child is TextContentElement &&
951955
child.style.whiteSpace != WhiteSpace.PRE &&
952956
tree.style.display == Display.BLOCK &&
953-
child.text!.trim().isEmpty &&
957+
child.text!.isEmpty &&
954958
lastChildBlock) {
955959
toRemove.add(child);
956960
} else if (child.style.display == Display.NONE) {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_html
22
description: A Flutter widget rendering static HTML and CSS as Flutter widgets.
3-
version: 2.1.2
3+
version: 2.1.4
44
homepage: https://github.com/Sub6Resources/flutter_html
55

66
environment:

0 commit comments

Comments
 (0)