File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ Language: [English](README.md) | 中文
62
62
* [ 开始前的注意事项 ‼️] ( #开始前的注意事项- )
63
63
* [ 准备工作 🍭] ( #准备工作- )
64
64
* [ 配置] ( #配置 )
65
+ * [ 特别提醒 📝] ( #特别提醒- )
65
66
* [ 使用方法 📖] ( #使用方法- )
66
67
* [ 国际化] ( #国际化 )
67
68
* [ 简单的使用方法] ( #简单的使用方法 )
@@ -143,6 +144,12 @@ dependencies:
143
144
import 'package:wechat_camera_picker/wechat_camera_picker.dart';
144
145
```
145
146
147
+ ### 特别提醒 📝
148
+
149
+ 1 . 在 iOS 上使用 ` NSPhotoLibraryAddUsageDescription ` 时,
150
+ 需要使用 ` onEntitySaving ` 或 ` onXFileCaptured ` 来处理捕获的文件,
151
+ 在这种情况下 ` AssetEntity ` 不可用,使用其 ID 获取该资源将导致崩溃。
152
+
146
153
## 使用方法 📖
147
154
148
155
### 国际化
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ submit issues to our issue tracker first.
63
63
* [ READ THIS FIRST ‼️] ( #read-this-first- )
64
64
* [ Preparing for use 🍭] ( #preparing-for-use- )
65
65
* [ Setup] ( #setup )
66
+ * [ Notes 📝] ( #notes- )
66
67
* [ Usage 📖] ( #usage- )
67
68
* [ Localizations] ( #localizations )
68
69
* [ Simple usage] ( #simple-usage )
@@ -141,6 +142,13 @@ Follow these detailed setup guide before runs:
141
142
- [wechat_assets_picker#preparing-for-use](https://github.com/fluttercandies/flutter_wechat_assets_picker#preparing-for-use-)
142
143
- [camera#installation](https://pub.dev/packages/camera#installation)
143
144
145
+ #### Notes 📝
146
+
147
+ 1. When using ` NSPhotoLibraryAddUsageDescription` on iOS,
148
+ it requires using `onEntitySaving` or `onXFileCaptured` to handle the captured file,
149
+ an `AssetEntity` is not available in this circumstance,
150
+ obtaining that asset with its ID will lead to a crash.
151
+
144
152
Then import the package in your code :
145
153
` ` ` dart
146
154
import 'package:wechat_camera_picker/wechat_camera_picker.dart';
You can’t perform that action at this time.
0 commit comments