-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Caijinglong <[email protected]>
- Loading branch information
1 parent
dd5b101
commit 3b0d2e0
Showing
7 changed files
with
10 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -358,27 +358,6 @@ but not `direction` information. | |
|
||
The web implementation is not required for many people, | ||
|
||
This plugin uses [pica][] to implement compression. | ||
|
||
Currently, [debug mode does not allow you to use the dynamic script loading scheme][flutter-126131]. | ||
And when you actually deploy, you may choose server deployment or cdn deployment, so here we suggest you add script node to head or body by yourself in your `<flutte_project>/web/index.html`. | ||
|
||
[flutter-126131]: https://github.com/flutter/flutter/issues/126131 | ||
|
||
Add for `<flutte_project>/web/index.html`: | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/pica.min.js" ></script> | ||
|
||
<!-- or --> | ||
|
||
<script src="https://unpkg.com/pica/dist/pica.min.js" ></script> | ||
``` | ||
|
||
About web compatibility: two methods with file will throw an exception when used on the web. | ||
|
||
[pica]: https://www.npmjs.com/package/pica?activeTab=readme | ||
|
||
## About macOS | ||
|
||
You need change the minimum deployment target to 10.15. | ||
|
@@ -388,7 +367,6 @@ Open xcode project, select Runner target, and change the value of `macOS Deploym | |
And, change the `Podfile`: | ||
Change `platform` to `platform :osx, '10.15'`. | ||
|
||
|
||
## OpenHarmony | ||
|
||
The currently supported image formats for parsing include JPEG, PNG, GIF, RAW, WebP, BMP, and SVG. However, the encoding output image formats are currently limited to JPEG, PNG, and WebP only. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,8 +39,6 @@ | |
<!-- This script adds the flutter initialization JS code --> | ||
<script src="flutter.js" defer></script> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/pica.min.js" ></script> | ||
|
||
</head> | ||
<body> | ||
<script> | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters