@@ -17,18 +17,17 @@ that can be found in the LICENSE file. -->
17
17
18
18
Language: English | [ 中文] ( README-ZH.md )
19
19
20
- An ** assets picker** which based on the WeChat's UI,
21
- using [ ` photo_manager ` ] ( https://pub.dev/packages/photo_manager )
22
- for asset implementation,
23
- [ ` extended_image ` ] ( https://pub.dev/packages/extended_image )
20
+ An ** assets' picker** based on the WeChat's UI,
21
+ using [ photo_manager] [ photo_manager pub ] for asset implementation,
22
+ [ extended_image] [ extended_image pub ]
24
23
for image preview,
25
- and [ ` provider ` ] ( https://pub.dev/packages/ provider)
24
+ and [ provider] [ provider pub ]
26
25
to help control the state of the picker.
27
26
28
27
To take a photo or a video for assets,
29
28
please check the detailed usage in the example,
30
29
and head over to
31
- [ wechat_camera_picker] ( https://pub.dev/packages/ wechat_camera_picker) .
30
+ [ wechat_camera_picker] [ wechat_camera_picker pub ] .
32
31
33
32
Current WeChat version that UI based on: ** 8.x**
34
33
UI designs will be updated following the WeChat update in anytime.
@@ -59,7 +58,7 @@ UI designs will be updated following the WeChat update in anytime.
59
58
60
59
## Migration Guide ♻️
61
60
62
- See [ Migration Guide] ( guides/migration_guide.md ) .
61
+ See [ Migration Guide] [ ] .
63
62
64
63
## Features ✨
65
64
@@ -90,13 +89,14 @@ See [Migration Guide](guides/migration_guide.md).
90
89
91
90
## READ THIS FIRST ‼️
92
91
93
- Although the package provides assets selection,
94
- it still requires users to build their own methods
95
- to handle upload, image compress, etc.
96
- If you have any questions about how to build them,
97
- please run the example or refer to
98
- [ photo_manager] ( https://github.com/CaiJingLong/flutter_photo_manager )
99
- for API usages.
92
+ The package works closely with the [ photo_manager] [ photo_manager pub ] plugin,
93
+ and most behaviors are controlled by the plugin.
94
+ When you have questions about related APIs and behaviors,
95
+ check [ photo_manager's API docs] [ ] for more details.
96
+
97
+ Most usages are detailed covered by the example.
98
+ Please walk through the example carefully
99
+ before you have any questions.
100
100
101
101
## Preparing for use 🍭
102
102
@@ -112,7 +112,8 @@ please use `dependency_overrides` to fix it.
112
112
113
113
### Flutter
114
114
115
- Add ` wechat_assets_picker ` to ` pubspec.yaml ` dependencies.
115
+ Run ` flutter pub add wechat_assets_picker ` ,
116
+ or add ` wechat_assets_picker ` to ` pubspec.yaml ` dependencies manually.
116
117
``` yaml
117
118
dependencies :
118
119
wechat_assets_picker : ^latest_version
@@ -141,7 +142,7 @@ See the example for the detailed usage.
141
142
142
143
If you found some warning logs with ` Glide ` appearing,
143
144
then the main project needs an implementation of ` AppGlideModule ` .
144
- See [ Generated API] ( https://sjudd.github.io/glide/doc/generatedapi.html ) .
145
+ See [ Generated API docs ] [ ] .
145
146
146
147
### iOS
147
148
@@ -152,7 +153,7 @@ platform :ios, '9.0'
152
153
```
153
154
154
155
2 . Add the following content to ` info.plist ` .
155
- ```
156
+ ``` plist
156
157
<key>NSAppTransportSecurity</key>
157
158
<dict>
158
159
<key>NSAllowsArbitraryLoads</key>
@@ -169,14 +170,10 @@ platform :ios, '9.0'
169
170
``` ruby
170
171
platform :osx , ' 10.15'
171
172
```
172
-
173
173
2 . Set the minimum deployment target to * 10.15* .
174
174
Use XCode to open ` macos/Runner.xcworkspace ` .
175
-
176
175
3 . ![ step 1] ( https://tva1.sinaimg.cn/large/007S8ZIlgy1ghw67v4yk4j30qy0b50u0.jpg )
177
-
178
176
4 . ![ step 2] ( https://tva1.sinaimg.cn/large/007S8ZIlgy1ghw67vd3f2j30jv04zgm5.jpg )
179
-
180
177
5 . Follow the iOS instructions and modify ` info.plist ` accordingly.
181
178
182
179
## Usage 📖
@@ -265,8 +262,7 @@ We've defined a picker that integrates with `Directory` and `File`
265
262
and a picker with multiple tabs switching.
266
263
You can submit PRs to create your own implementation
267
264
if you found your implementation might be useful for others.
268
- See [ Contribute custom implementations] [ lib/customs/CONTRIBUTING.md ]
269
- for more details.
265
+ See [ Contribute custom implementations] [ ] for more details.
270
266
271
267
### Display selected assets
272
268
@@ -309,8 +305,6 @@ based on `<File, Directory>` types.
309
305
310
306
See [ photo_manager#561] [ ] for more details.
311
307
312
- [ photo_manager#561 ] : https://github.com/CaiJingLong/flutter_photo_manager/issues/561
313
-
314
308
### How can I get path from the ` AssetEntity ` to integrate with ` File ` object, upload or edit?
315
309
316
310
You don't need it (might be).
@@ -354,10 +348,12 @@ use `File` for operations as much as possible.**
354
348
A deletion operation might call system popups with some OS:
355
349
356
350
``` dart
357
- final List<String> result = await PhotoManager.editor.deleteWithIds([entity.id]);
351
+ final List<String> result = await PhotoManager.editor.deleteWithIds(
352
+ <String>[entity.id],
353
+ );
358
354
```
359
355
360
- ref: [ flutter_photo_manager #insert-new-item] ( https://github.com/CaiJingLong/flutter_photo_manager#insert-new-item )
356
+ ref: [ photo_manager #insert-new-item] [ ]
361
357
362
358
### Glide warning 'Failed to find GeneratedAppGlideModule'
363
359
@@ -421,3 +417,15 @@ for allocating free open-source licenses for IDEs
421
417
such as [ IntelliJ IDEA] ( https://www.jetbrains.com/idea/?from=fluttercandies ) .
422
418
423
419
[ <img src =" https://github.com/fluttercandies/flutter_wechat_assets_picker/raw/main/.github/jetbrains-variant.png " width =" 200 " />] ( https://www.jetbrains.com/?from=fluttercandies )
420
+
421
+
422
+ [ photo_manager pub ] : https://pub.dev/packages/photo_manager
423
+ [ extended_image pub ] : https://pub.dev/packages/extended_image
424
+ [ provider pub ] : https://pub.dev/packages/provider
425
+ [ wechat_camera_picker pub ] : https://pub.dev/packages/wechat_camera_picker
426
+ [ Migration Guide ] : https://github.com/fluttercandies/flutter_wechat_assets_picker/blob/main/guides/migration_guide.md
427
+ [ photo_manager's API docs ] : https://pub.dev/documentation/photo_manager/latest/
428
+ [ Generated API docs ] : https://sjudd.github.io/glide/doc/generatedapi.html
429
+ [ Contribute custom implementations ] : https://github.com/fluttercandies/flutter_wechat_assets_picker/blob/main/example/lib/customs/CONTRIBUTING.md
430
+ [ photo_manager#561 ] : https://github.com/CaiJingLong/flutter_photo_manager/issues/561
431
+ [ photo_manager#insert-new-item ] : https://github.com/CaiJingLong/flutter_photo_manager#insert-new-item
0 commit comments