Skip to content

Commit

Permalink
docs: Update docs
Browse files Browse the repository at this point in the history
Signed-off-by: CaiJingLong <[email protected]>
  • Loading branch information
CaiJingLong committed Oct 26, 2023
1 parent 223c9e5 commit 4ef2bd2
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 18 deletions.
2 changes: 2 additions & 0 deletions docs/scripts/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
if os.path.exists(dest_path):
print('The %s is exists, skip it.' % dest_path)
continue
else:
os.makedirs(os.path.dirname(dest_path), exist_ok=True)

# write content
content = src.replace(src_content, v)
Expand Down
9 changes: 0 additions & 9 deletions docs/src/en/doc/hello.md

This file was deleted.

18 changes: 18 additions & 0 deletions docs/src/en/image_provider/compatibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: "compatibility of photo_manager_image_provider"
weight: 1
# geekdocFlatSection: false
# geekdocToc: 6
# geekdocHidden: false
---

The [commit][remove-load] of flutter remove `ImageStreamCompleter.load` method.

Since flutter 3.14.0, the `photo_manager_image_provider` need use 2.0.0 version.

| image_provider | flutter | photo_manager |
| :---: | :---: | :---: |
| ^1.0.0 | ">=2.0.0 <3.14.0" | ^2.0.0 |
| ^2.0.0 | ^3.14.0 | ^2.0.0 |

[remove-load]: https://github.com/flutter/flutter/commit/b4f4ece40d956ad86efa340ff7fe9d0fa6deea07
9 changes: 0 additions & 9 deletions docs/src/zh/doc/hello.md

This file was deleted.

18 changes: 18 additions & 0 deletions docs/src/zh/image_provider/compatibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: "photo_manager_image_provider 的兼容性"
weight: 1
# geekdocFlatSection: false
# geekdocToc: 6
# geekdocHidden: false
---

Flutter 的这个 [提交][remove-load] 移除了 `ImageStreamCompleter.load`

从 flutter 3.14.0 开始, 请使用 `photo_manager_image_provider` 的 2.x 版本。

| image_provider | flutter | photo_manager |
| :---: | :---: | :---: |
| ^1.0.0 | ">=2.0.0 <3.14.0" | ^2.6.0 |
| ^2.0.0 | ^3.14.0 | ^2.6.0 |

[remove-load]: https://github.com/flutter/flutter/commit/b4f4ece40d956ad86efa340ff7fe9d0fa6deea07

0 comments on commit 4ef2bd2

Please sign in to comment.