You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-21Lines changed: 26 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,17 @@
13
13
14
14
Language: English | [中文简体](README-ZH.md)
15
15
16
-
An **assets picker** which looks like the one in WeChat, based on `photo_manager` for asset implementation, `extended_image` for image preview, `provider` to help controlling the state of the picker.
16
+
An **assets picker** which looks like the one in WeChat,
17
+
based on `photo_manager` for asset implementation,
18
+
`extended_image` for image preview,
19
+
and `provider` to help control the state of the picker.
17
20
18
-
To take a photo or a video for assets, please check the detailed usage in the example, and head over to [wechat_camera_picker](https://fluttercandies.github.io/flutter_wechat_camera_picker/) .
21
+
To take a photo or a video for assets, please check the detailed usage in the example, and head over to
@@ -94,15 +100,16 @@ See [Migration Guide](guides/migration_guide.md).
94
100
95
101
## READ THIS FIRST ‼️
96
102
97
-
Althought the package provide selection for assets, it still require users build their own methods to handle upload, image compress, etc. If you have any question about how to build it, please run the example or refer to [photo_manager](https://github.com/CaiJingLong/flutter_photo_manager) for API usage.
103
+
Although the package provides assets selection, it still requires users to build their own methods
104
+
to handle upload, image compress, etc. If you have any questions about how to build them, please run the example or refer to [photo_manager](https://github.com/CaiJingLong/flutter_photo_manager) for API usage.
98
105
99
106
## Preparing for use 🍭
100
107
101
108
### Version constraints
102
109
103
110
Flutter SDK: `>=2.0.0` .
104
111
105
-
If you got an error about `resolve conflict` when running `flutter pub get` , please use `dependency_overrides` to solve it. See [here](#version-resolve-conflict-with-xxx-eg-dartx) .
112
+
If you got a `resolve conflict`error when running `flutter pub get` , please use `dependency_overrides` to fix it. See [here](#version-resolve-conflict-with-xxx-eg-dartx) .
106
113
107
114
### Flutter
108
115
@@ -130,12 +137,12 @@ See [Generated API](https://sjudd.github.io/glide/doc/generatedapi.html).
130
137
131
138
### iOS
132
139
133
-
1.Define the minimum platform in `ios/Podfile`upper to *9.0*.
134
-
```
140
+
1.Platform version has to be at least *9.0*. Modify `ios/Podfile`and update accordingly.
141
+
```ruby
135
142
platform :ios, '9.0'
136
143
```
137
144
138
-
2. Add following content to `info.plist`.
145
+
2. Add the following content to `info.plist`.
139
146
140
147
```
141
148
<key>NSAppTransportSecurity</key>
@@ -149,41 +156,39 @@ platform :ios, '9.0'
149
156
150
157
### MacOS
151
158
152
-
Currently flutter desktop is still under development, so please be aware that any issues releated to the desktop version is not yet supported.
153
-
154
-
1. Define the minimum platform in `macos/Podfile` upper to *10.15*.
155
-
```
159
+
1. Platform version has to be at least *10.15*. Modify `macos/Podfile` and update accordingly.
160
+
```ruby
156
161
platform :osx, '10.15'
157
162
```
158
163
159
-
2.Use *Xcode*to open the `macos/Runner.xcworkspace`. Then follow screenshots to setup the minumum target version upper to *10.15*.
164
+
2.Set the minimum deployment target to *10.15*. Use XCode to open `macos/Runner.xcworkspace`.
| selectedAssets |`List<AssetEntity>?`| Selected assets. Prevent duplicate selection. If you don't need to prevent duplicate selection, just don't pass it. |`null`|
172
177
| maxAssets |`int`| Maximum asset that the picker can pick. | 9 |
173
-
| pageSize |`int`| Assets amount when assets loaded with paging. **Must be a multiple of `gridCount`.** Nullable for non paging. | 320 (80 * 4) |
174
-
| pathThumbSize |`int`|The size of thumb data in picker.| 80 |
178
+
| pageSize |`int?`| Number of assets per page. **Must be a multiple of `gridCount`**. | 320 (80 * 4) |
179
+
| pathThumbSize |`int`|Thumbnail size. | 80 |
175
180
| gridCount |`int`| Grid count in picker. | 4 |
176
181
| requestType |`RequestType`| Request type for picker. |`RequestType.image`|
177
-
| previewThumbSize |`List<int>?`|Thumb size for the preview of images in the viewer.|`null`|
178
-
| specialPickerType |`SpacialPickerType?`|Provide some special picker types to integrate un-common pick pattern.|`null`|
179
-
| themeColor |`Color?`| Main theme color for the picker|`Color(0xff00bc56)`|
182
+
| previewThumbSize |`List<int>?`|Preview thumbnail size in the viewer. |`null`|
183
+
| specialPickerType |`SpacialPickerType?`|Provides the option to integrate a custom picker type. |`null`|
184
+
| themeColor |`Color?`| Main theme color for the picker.|`Color(0xff00bc56)`|
180
185
| pickerTheme |`ThemeData?`| Theme data provider for the picker and the viewer. |`null`|
181
186
| sortPathDelegate |`SortPathDeleage?`| Path entities sort delegate for the picker, sort paths as you want. |`CommonSortPathDelegate`|
182
187
| textDelegate |`AssetsPickerTextDelegate?`| Text delegate for the picker, for customize the texts. |`DefaultAssetsPickerTextDelegate()`|
0 commit comments