File tree Expand file tree Collapse file tree 8 files changed +24
-11
lines changed Expand file tree Collapse file tree 8 files changed +24
-11
lines changed Original file line number Diff line number Diff line change
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
+
1
9
## [ 2.1.2] - September 2, 2021:
2
10
* Allow setting selectionControls with SelectableHtml
3
11
* Fix onLinkTap not working with SelectableHtml
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ A Flutter widget for rendering HTML and CSS as Flutter widgets.
98
98
Add the following to your ` pubspec.yaml ` file:
99
99
100
100
dependencies:
101
- flutter_html: ^2.1.2
101
+ flutter_html: ^2.1.4
102
102
103
103
## Currently Supported HTML Tags:
104
104
| | | | | | | | | | | |
Original file line number Diff line number Diff line change 21
21
<key >CFBundleVersion </key >
22
22
<string >1.0 </string >
23
23
<key >MinimumOSVersion </key >
24
- <string >8 .0 </string >
24
+ <string >9 .0 </string >
25
25
</dict >
26
26
</plist >
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ EXTERNAL SOURCES:
24
24
:path: ".symlinks/plugins/webview_flutter/ios"
25
25
26
26
SPEC CHECKSUMS:
27
- Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
27
+ Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
28
28
video_player: 9cc823b1d9da7e8427ee591e8438bfbcde500e6e
29
- wakelock: b0843b2479edbf6504d8d262c2959446f35373aa
29
+ wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f
30
30
webview_flutter: 9f491a9b5a66f2573946a389b2677987b0ff8c0b
31
31
32
32
PODFILE CHECKSUM: 8e679eca47255a8ca8067c4c67aab20e64cb974d
33
33
34
- COCOAPODS: 1.10.1
34
+ COCOAPODS: 1.11.2
Original file line number Diff line number Diff line change 335
335
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
336
336
GCC_WARN_UNUSED_FUNCTION = YES;
337
337
GCC_WARN_UNUSED_VARIABLE = YES;
338
- IPHONEOS_DEPLOYMENT_TARGET = 8 .0;
338
+ IPHONEOS_DEPLOYMENT_TARGET = 9 .0;
339
339
MTL_ENABLE_DEBUG_INFO = NO;
340
340
SDKROOT = iphoneos;
341
341
TARGETED_DEVICE_FAMILY = "1,2";
414
414
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
415
415
GCC_WARN_UNUSED_FUNCTION = YES;
416
416
GCC_WARN_UNUSED_VARIABLE = YES;
417
- IPHONEOS_DEPLOYMENT_TARGET = 8 .0;
417
+ IPHONEOS_DEPLOYMENT_TARGET = 9 .0;
418
418
MTL_ENABLE_DEBUG_INFO = YES;
419
419
ONLY_ACTIVE_ARCH = YES;
420
420
SDKROOT = iphoneos;
463
463
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
464
464
GCC_WARN_UNUSED_FUNCTION = YES;
465
465
GCC_WARN_UNUSED_VARIABLE = YES;
466
- IPHONEOS_DEPLOYMENT_TARGET = 8 .0;
466
+ IPHONEOS_DEPLOYMENT_TARGET = 9 .0;
467
467
MTL_ENABLE_DEBUG_INFO = NO;
468
468
SDKROOT = iphoneos;
469
469
TARGETED_DEVICE_FAMILY = "1,2";
Original file line number Diff line number Diff line change 2
2
// Generated file. Do not edit.
3
3
//
4
4
5
+ // ignore_for_file: directives_ordering
5
6
// ignore_for_file: lines_longer_than_80_chars
6
7
7
8
import 'package:video_player_web/video_player_web.dart' ;
Original file line number Diff line number Diff line change @@ -944,13 +944,17 @@ class HtmlParser extends StatelessWidget {
944
944
if (child is EmptyContentElement || child is EmptyLayoutElement ) {
945
945
toRemove.add (child);
946
946
} 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
948
952
&& child.style.whiteSpace != WhiteSpace .PRE ) {
949
953
toRemove.add (child);
950
954
} else if (child is TextContentElement &&
951
955
child.style.whiteSpace != WhiteSpace .PRE &&
952
956
tree.style.display == Display .BLOCK &&
953
- child.text! .trim (). isEmpty &&
957
+ child.text! .isEmpty &&
954
958
lastChildBlock) {
955
959
toRemove.add (child);
956
960
} else if (child.style.display == Display .NONE ) {
Original file line number Diff line number Diff line change 1
1
name : flutter_html
2
2
description : A Flutter widget rendering static HTML and CSS as Flutter widgets.
3
- version : 2.1.2
3
+ version : 2.1.4
4
4
homepage : https://github.com/Sub6Resources/flutter_html
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments