Skip to content

Commit

Permalink
Add appendSpecialItems.
Browse files Browse the repository at this point in the history
  • Loading branch information
yujunetee committed Oct 16, 2024
1 parent 849c7a1 commit 36eb37c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/src/delegates/asset_picker_builder_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ abstract class AssetPickerBuilderDelegate<Asset, Path> {
.where(
(item) => item.position == SpecialItemPosition.prepend,
)
.toList(),
appendSpecialItems = specialItems
.where(
(item) => item.position == SpecialItemPosition.append,
)
.toList() {
Singleton.textDelegate =
textDelegate ?? assetPickerTextDelegateFromLocale(locale);
Expand Down Expand Up @@ -135,6 +140,10 @@ abstract class AssetPickerBuilderDelegate<Asset, Path> {
/// 前置自定义item列表
final List<SpecialItem<Path>> prependSpecialItems;

/// List of append special items.
/// 附加自定义item列表
final List<SpecialItem<Path>> appendSpecialItems;

/// [ThemeData] for the picker.
/// 选择器使用的主题
ThemeData get theme => pickerTheme ?? AssetPicker.themeData(themeColor);
Expand Down

0 comments on commit 36eb37c

Please sign in to comment.