Skip to content

Commit d6cb626

Browse files
committed
Add appendSpecialItems.
1 parent 281a9f2 commit d6cb626

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/src/delegates/asset_picker_builder_delegate.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ abstract class AssetPickerBuilderDelegate<Asset, Path> {
6262
.where(
6363
(item) => item.position == SpecialItemPosition.prepend,
6464
)
65+
.toList(),
66+
appendSpecialItems = specialItems
67+
.where(
68+
(item) => item.position == SpecialItemPosition.append,
69+
)
6570
.toList() {
6671
Singleton.textDelegate =
6772
textDelegate ?? assetPickerTextDelegateFromLocale(locale);
@@ -135,6 +140,10 @@ abstract class AssetPickerBuilderDelegate<Asset, Path> {
135140
/// 前置自定义item列表
136141
final List<SpecialItem<Path>> prependSpecialItems;
137142

143+
/// List of append special items.
144+
/// 附加自定义item列表
145+
final List<SpecialItem<Path>> appendSpecialItems;
146+
138147
/// [ThemeData] for the picker.
139148
/// 选择器使用的主题
140149
ThemeData get theme => pickerTheme ?? AssetPicker.themeData(themeColor);

0 commit comments

Comments
 (0)