File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,24 @@ class _MultiAssetsPageState extends State<MultiAssetsPage> {
191
191
);
192
192
},
193
193
),
194
+ PickMethodModel (
195
+ icon: '🎚' ,
196
+ name: 'Custom image preview thumb size' ,
197
+ description:
198
+ 'You can reduce the thumb size in order to get more quickly load speed.' ,
199
+ method: (
200
+ BuildContext context,
201
+ List <AssetEntity > assets,
202
+ ) async {
203
+ return await AssetPicker .pickAssets (
204
+ context,
205
+ maxAssets: maxAssetsCount,
206
+ selectedAssets: assets,
207
+ requestType: RequestType .image,
208
+ previewThumbSize: const < int > [300 , 300 ],
209
+ );
210
+ },
211
+ ),
194
212
];
195
213
196
214
Future <void > selectAssets (PickMethodModel model) async {
@@ -265,6 +283,8 @@ class _MultiAssetsPageState extends State<MultiAssetsPage> {
265
283
fontSize: 18.0 ,
266
284
fontWeight: FontWeight .bold,
267
285
),
286
+ maxLines: 1 ,
287
+ overflow: TextOverflow .ellipsis,
268
288
),
269
289
Text (
270
290
model.description,
You can’t perform that action at this time.
0 commit comments