File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ platform :osx, '10.15'
174
174
| filterOptions | ` FilterOptionGroup? ` | Allow users to customize assets filter options. | ` null ` |
175
175
| specialItemBuilder | ` WidgetBuilder? ` | The widget builder for the special item. | ` null ` |
176
176
| specialItemPosition | ` SpecialItemPosition ` | Allow users set a special item in the picker with several positions. | ` SpecialItemPosition.none ` |
177
+ | loadingIndicatorBuilder | ` IndicatorBuilder? ` | Indicates the loading status for the builder. | ` null ` |
177
178
| allowSpecialItemWhenEmpty | ` bool ` | Whether the special item will display or not when assets is empty. | ` false ` |
178
179
| routeCurve | ` Curve ` | The curve which the picker use to build page route transition. | ` Curves.easeIn ` |
179
180
| routeDuration | ` Duration ` | The duration which the picker use to build page route transition. | ` const Duration(milliseconds: 500) ` |
@@ -184,12 +185,16 @@ platform :osx, '10.15'
184
185
final List<AssetEntity> assets = await AssetPicker.pickAssets(context);
185
186
```
186
187
187
- or
188
+ ### Using custom delegate
188
189
189
190
``` dart
190
- AssetPicker.pickAsset(context).then((List<AssetEntity> assets) {
191
- /.../
192
- });
191
+ final YourAssetPickerProvider provider = your_provider;
192
+ final CustomAssetPickerBuilderDelegate builder = your_builder(provider);
193
+ final List<YourAssetEntity>? result = await AssetPicker.pickAssetsWithDelegate(
194
+ context,
195
+ provider: provider,
196
+ delegate: builder,
197
+ );
193
198
```
194
199
195
200
### Complete param usage
You can’t perform that action at this time.
0 commit comments