Skip to content

Commit d633638

Browse files
committed
Merge branch 'bugfix/851-fix-br-usage' into bugfix/851-fix-regression-br
# Conflicts: # lib/html_parser.dart
2 parents dbb1f76 + d9ceb1d commit d633638

File tree

8 files changed

+26
-11
lines changed

8 files changed

+26
-11
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
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+
9+
## [2.1.2] - September 2, 2021:
10+
* Allow setting selectionControls with SelectableHtml
11+
* Fix onLinkTap not working with SelectableHtml
12+
* Don't crash when parsing unsupported :hover
13+
* Prevent endless loading when using animated images
14+
115
## [2.1.1] - July 28, 2021:
216
* Stable release with all 2.1.1-preview.X changes
317

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.1
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ class HtmlParser extends StatelessWidget {
944944
if (child is EmptyContentElement || child is EmptyLayoutElement) {
945945
toRemove.add(child);
946946
} else if (child is TextContentElement
947-
&& tree.name == "body"
947+
&& tree.name == "body"
948948
&& child.text!.replaceAll(' ', '').isEmpty) {
949949
toRemove.add(child);
950950
} else if (child is TextContentElement

pubspec.yaml

Lines changed: 2 additions & 2 deletions
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.1
3+
version: 2.1.4
44
homepage: https://github.com/Sub6Resources/flutter_html
55

66
environment:
@@ -19,7 +19,7 @@ dependencies:
1919

2020
# Plugins for rendering the <video> tag.
2121
video_player: '>=2.1.1 <3.0.0'
22-
chewie: '>=1.0.0 <2.0.0'
22+
chewie: '>=1.1.0 <2.0.0'
2323

2424
# Plugin for rendering the <iframe> tag.
2525
webview_flutter: '>=2.0.4 <3.0.0'

0 commit comments

Comments
 (0)