Skip to content

Commit 4ddeb1e

Browse files
committed
Prepare for 1.0.0 release
1 parent 77bd460 commit 4ddeb1e

19 files changed

+143
-1275
lines changed

.github/flutter_html_screenshot.png

114 KB
Loading

.github/flutter_html_screenshot2.png

244 KB
Loading

.github/flutter_html_screenshot3.png

258 KB
Loading

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,5 @@ modules.xml
146146
# End of https://www.gitignore.io/api/flutter,jetbrains+all
147147

148148
**/.flutter-plugins-dependencies
149+
150+
**/flutter_export_environment.sh

CHANGELOG.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
1+
# [1.0.0]
2+
* BREAKING CHANGES (see the [Migration Guide](https://github.com/Sub6Resources/flutter_html/wiki/1.0.0-Migration-Guide) for a full overview of breaking changes.):
3+
* The default parser has been completely rewritten and the RichText parser has been removed.
4+
* `useRichText` no longer is necessary (The new parser uses RichText under the hood)
5+
* `customRender` now works for the default parser.
6+
* Adds support for `<audio>`, `<video>`, `<iframe>`, `<svg>`, `<ruby>`, `<rt>`, `<rp>`, `<sub>`, and `<sup>`
7+
* Adds support for over 20 CSS attributes when using the `style` parameter.
8+
* Fixes many many issues (see the list at [#122](https://github.com/Sub6Resources/flutter_html/pull/122))
9+
* The following parameters of `Html` have been removed and should no longer be used (see the migration guide):
10+
* `useRichText`
11+
* `padding`
12+
* `backgroundColor`
13+
* `defaultTextStyle`
14+
* `renderNewlines`
15+
* `customEdgeInsets`
16+
* `customTextStyle`
17+
* `blockSpacing`
18+
* `customTextAlign`
19+
* `linkStyle`
20+
* `imageProperties`
21+
* `showImages`
22+
* The default text style now matches the app's Material `TextTheme.bodyText2` (Fixes [#18](https://github.com/Sub6Resources/flutter_html/issues/18)).
23+
* Requires Flutter v1.17.0 or greater
24+
* Fixed quite a few issues with `img`
25+
* Added a fancy new `style` attribute (this should be used in place of the deprecated styling parameters).
26+
127
## [1.0.0-pre.1] - December 27, 2019
228

3-
* For a list of pre-release changes, including several BREAKING CHANGES, see [the pre-release changelog](https://github.com/Sub6Resources/flutter_html/blob/new-parser/PRE_CHANGELOG.md#100-pre1)
29+
* For a list of pre-release changes, including several BREAKING CHANGES, see release notes for 1.0.0 above.
430

531
## [0.11.1] - December 14, 2019:
632

PRE_CHANGELOG.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
A Flutter widget for rendering html and css as Flutter widgets.
88

99
<img alt="A Screenshot of flutter_html" src=".github/flutter_html_screenshot.png" width="300"/>
10+
<img alt="Another Screenshot of flutter_html" src=".github/flutter_html_screenshot2.png" width="300"/>
11+
<img alt="Yet another Screenshot of flutter_html" src=".github/flutter_html_screenshot3.png" width="300"/>
1012

1113
## Installing:
1214

@@ -28,7 +30,7 @@ See the [development roadmap](https://github.com/Sub6Resources/flutter_html/wiki
2830
## Why this package?
2931

3032
This package is designed with simplicity in mind. Originally created to allow basic rendering of HTML content into the Flutter widget tree,
31-
this project has expanded to include support for basic CSS styling (both inline and in the `<style>` tag).
33+
this project has expanded to include support for basic styling as well!.
3234

3335
## Example Usage:
3436
(For a much more extensive example, look at example/main.dart).

example/ios/Flutter/flutter_export_environment.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

example/ios/Podfile.lock

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,20 @@ PODS:
44
- Flutter
55
- video_player (0.0.1):
66
- Flutter
7+
- video_player_web (0.0.1):
8+
- Flutter
9+
- wakelock (0.0.1):
10+
- Flutter
11+
- webview_flutter (0.0.1):
12+
- Flutter
713

814
DEPENDENCIES:
915
- Flutter (from `.symlinks/flutter/ios`)
1016
- screen (from `.symlinks/plugins/screen/ios`)
1117
- video_player (from `.symlinks/plugins/video_player/ios`)
18+
- video_player_web (from `.symlinks/plugins/video_player_web/ios`)
19+
- wakelock (from `.symlinks/plugins/wakelock/ios`)
20+
- webview_flutter (from `.symlinks/plugins/webview_flutter/ios`)
1221

1322
EXTERNAL SOURCES:
1423
Flutter:
@@ -17,12 +26,21 @@ EXTERNAL SOURCES:
1726
:path: ".symlinks/plugins/screen/ios"
1827
video_player:
1928
:path: ".symlinks/plugins/video_player/ios"
29+
video_player_web:
30+
:path: ".symlinks/plugins/video_player_web/ios"
31+
wakelock:
32+
:path: ".symlinks/plugins/wakelock/ios"
33+
webview_flutter:
34+
:path: ".symlinks/plugins/webview_flutter/ios"
2035

2136
SPEC CHECKSUMS:
2237
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
2338
screen: abd91ca7bf3426e1cc3646d27e9b2358d6bf07b0
24-
video_player: 3964090a33353060ed7f58aa6427c7b4b208ec21
39+
video_player: 9cc823b1d9da7e8427ee591e8438bfbcde500e6e
40+
video_player_web: da8cadb8274ed4f8dbee8d7171b420dedd437ce7
41+
wakelock: 0d4a70faf8950410735e3f61fb15d517c8a6efc4
42+
webview_flutter: d2b4d6c66968ad042ad94cbb791f5b72b4678a96
2543

2644
PODFILE CHECKSUM: 7fb83752f59ead6285236625b82473f90b1cb932
2745

28-
COCOAPODS: 1.6.1
46+
COCOAPODS: 1.8.3

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1111
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12-
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13-
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14-
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
15-
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1612
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
1713
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
1814
97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
@@ -29,8 +25,6 @@
2925
dstPath = "";
3026
dstSubfolderSpec = 10;
3127
files = (
32-
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
33-
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
3428
);
3529
name = "Embed Frameworks";
3630
runOnlyForDeploymentPostprocessing = 0;
@@ -41,14 +35,12 @@
4135
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
4236
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
4337
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
44-
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
4538
49DCEF6F09B6F3E8BBB9D4EA /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4639
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
4740
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
4841
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
4942
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
5043
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
51-
9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; };
5244
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
5345
97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
5446
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
@@ -65,8 +57,6 @@
6557
isa = PBXFrameworksBuildPhase;
6658
buildActionMask = 2147483647;
6759
files = (
68-
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
69-
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
7060
A65EE5648FB89B4FBB7BE7EF /* libPods-Runner.a in Frameworks */,
7161
);
7262
runOnlyForDeploymentPostprocessing = 0;
@@ -85,9 +75,7 @@
8575
9740EEB11CF90186004384FC /* Flutter */ = {
8676
isa = PBXGroup;
8777
children = (
88-
3B80C3931E831B6300D905FE /* App.framework */,
8978
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
90-
9740EEBA1CF902C7004384FC /* Flutter.framework */,
9179
9740EEB21CF90195004384FC /* Debug.xcconfig */,
9280
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
9381
9740EEB31CF90195004384FC /* Generated.xcconfig */,
@@ -234,20 +222,16 @@
234222
);
235223
runOnlyForDeploymentPostprocessing = 0;
236224
shellPath = /bin/sh;
237-
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
225+
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
238226
};
239227
450FC00D9CC4F56F4423DF9E /* [CP] Embed Pods Frameworks */ = {
240228
isa = PBXShellScriptBuildPhase;
241229
buildActionMask = 2147483647;
242230
files = (
243231
);
244-
inputFileListPaths = (
245-
);
246232
inputPaths = (
247233
);
248234
name = "[CP] Embed Pods Frameworks";
249-
outputFileListPaths = (
250-
);
251235
outputPaths = (
252236
);
253237
runOnlyForDeploymentPostprocessing = 0;

0 commit comments

Comments
 (0)