|
@@ -12,7 +12,7 @@ support video
|
12
|
12
|
|
13
|
13
|
use flutter as ui
|
14
|
14
|
|
15
|
|
-if you want to build custom ui, you just need api to make custom ui. to use [photo_manager](https://github.com/CaiJingLong/flutter_photo_manager)
|
|
15
|
+if you want to build custom ui, you just need api to make custom ui. to use [photo_manager](https://github.com/CaiJingLong/flutter_photo_manager) or fork the library to custom ui.
|
16
|
16
|
|
17
|
17
|
## screenshot
|
18
|
18
|
|
|
@@ -24,13 +24,13 @@ API incompatibility
|
24
|
24
|
|
25
|
25
|
because support video, so the ImagePathEntity and ImageEntity rename to AssetPathEntity and AssetEntity.
|
26
|
26
|
|
27
|
|
-so PhotoPicker.pickImage return type will change to List<AssetEntity>
|
|
27
|
+so PhotoPicker.pickImage return type will change to `List<AssetEntity>`
|
28
|
28
|
|
29
|
29
|
## install
|
30
|
30
|
|
31
|
31
|
```yaml
|
32
|
32
|
dependencies:
|
33
|
|
- photo: ^0.1.6
|
|
33
|
+ photo: ^0.1.8
|
34
|
34
|
```
|
35
|
35
|
|
36
|
36
|
## import
|
|
@@ -89,11 +89,11 @@ you can see [github](https://github.com/caijinglong/flutter_photo/blob/master/ex
|
89
|
89
|
|
90
|
90
|
### glide
|
91
|
91
|
|
92
|
|
-android use glide to create image thumb, version is 4.8.0
|
|
92
|
+Android native use glide to create image thumb bytes, version is 4.8.0.
|
93
|
93
|
|
94
|
|
-if you other android library use the library, and version is not same, then you need edit your android project's build.gradle
|
|
94
|
+If your other android library use the library, and version is not same, then you need edit your android project's build.gradle.
|
95
|
95
|
|
96
|
|
-```gradle
|
|
96
|
+```groovy
|
97
|
97
|
rootProject.allprojects {
|
98
|
98
|
|
99
|
99
|
subprojects {
|
|
@@ -121,8 +121,8 @@ Because the album is a privacy privilege, you need user permission to access it.
|
121
|
121
|
like next
|
122
|
122
|
|
123
|
123
|
```plist
|
124
|
|
- <key>NSPhotoLibraryUsageDescription</key>
|
125
|
|
- <string>App need your agree, can visit your album</string>
|
|
124
|
+<key>NSPhotoLibraryUsageDescription</key>
|
|
125
|
+<string>App need your agree, can visit your album</string>
|
126
|
126
|
```
|
127
|
127
|
|
128
|
128
|
xcode like image
|
|
@@ -131,3 +131,17 @@ xcode like image
|
131
|
131
|
### build error
|
132
|
132
|
|
133
|
133
|
if you build error like include of non-modular header inside framework module, see [#10](https://github.com/CaiJingLong/flutter_photo/issues/10) or [so](https://stackoverflow.com/questions/27776497/include-of-non-modular-header-inside-framework-module)
|
|
134
|
+
|
|
135
|
+## thanks
|
|
136
|
+
|
|
137
|
+Part of the Android code comes from [debuggerx01](https://github.com/debuggerx01).
|
|
138
|
+
|
|
139
|
+## donate
|
|
140
|
+
|
|
141
|
+If my code helps you, and you're willing to buy me a cup of coffee.
|
|
142
|
+
|
|
143
|
+you can use [paypal](https://paypal.me/caijinglong)
|
|
144
|
+
|
|
145
|
+or scan my alipay
|
|
146
|
+
|
|
147
|
+<img width="200px" src="https://raw.githubusercontent.com/CaiJingLong/asset_for_picgo/master/20181228213953.png"/>
|