We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PickMethod.pathNameBuilder
1 parent 0e7c01e commit 36a130fCopy full SHA for 36a130f
example/lib/constants/picker_method.dart
@@ -379,6 +379,24 @@ class PickMethod {
379
);
380
}
381
382
+ factory PickMethod.pathNameBuilder(int maxAssetsCount) {
383
+ return PickMethod(
384
+ icon: '#️⃣',
385
+ name: 'Path name builder',
386
+ description: 'Add 🍭 after paths name.',
387
+ method: (BuildContext context, List<AssetEntity> assets) {
388
+ return AssetPicker.pickAssets(
389
+ context,
390
+ pickerConfig: AssetPickerConfig(
391
+ maxAssets: maxAssetsCount,
392
+ selectedAssets: assets,
393
+ pathNameBuilder: (AssetPathEntity path) => '${path.name}🍭',
394
+ ),
395
+ );
396
+ },
397
398
+ }
399
+
400
final String icon;
401
final String name;
402
final String description;
0 commit comments