File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -172,13 +172,13 @@ platform :ios, '9.0'
172
172
### 简单的使用方法
173
173
174
174
``` dart
175
- final List<AssetEntity> assets = await AssetPicker.pickAssets(context);
175
+ final List<AssetEntity>? result = await AssetPicker.pickAssets(context);
176
176
```
177
177
178
178
你可以使用 ` AssetPickerConfig ` 来调整选择时的行为。
179
179
180
180
``` dart
181
- final AssetEntity? entity = await AssetPicker.pickAssets(
181
+ final List< AssetEntity>? result = await AssetPicker.pickAssets(
182
182
context,
183
183
pickerConfig: const AssetPickerConfig(),
184
184
);
Original file line number Diff line number Diff line change @@ -164,13 +164,13 @@ platform :osx, '10.15'
164
164
### Simple usage
165
165
166
166
``` dart
167
- final List<AssetEntity> assets = await AssetPicker.pickAssets(context);
167
+ final List<AssetEntity>? result = await AssetPicker.pickAssets(context);
168
168
```
169
169
170
170
Use ` AssetPickerConfig ` for more picking behaviors.
171
171
172
172
``` dart
173
- final AssetEntity? entity = await AssetPicker.pickAssets(
173
+ final List< AssetEntity>? result = await AssetPicker.pickAssets(
174
174
context,
175
175
pickerConfig: const AssetPickerConfig(),
176
176
);
You can’t perform that action at this time.
0 commit comments