Skip to content

Commit 4802d52

Browse files
committed
🐛 Fix missing type annotations
1 parent 749d0b7 commit 4802d52

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/src/constants/constants.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ class Constants {
4242
static GlobalKey pickerKey = GlobalKey();
4343

4444
static AssetsPickerTextDelegate textDelegate = AssetsPickerTextDelegate();
45-
static SortPathDelegate sortPathDelegate = SortPathDelegate.common;
45+
static SortPathDelegate<dynamic> sortPathDelegate =
46+
SortPathDelegate.common;
4647

4748
static const int defaultGridThumbSize = 200;
4849
}

lib/src/provider/asset_picker_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class DefaultAssetPickerProvider
269269

270270
/// Delegate to sort asset path entities.
271271
/// 资源路径排序的实现
272-
final SortPathDelegate? sortPathDelegate;
272+
final SortPathDelegate<AssetPathEntity>? sortPathDelegate;
273273

274274
/// Filter options for the picker.
275275
/// 选择器的筛选条件

lib/src/widget/asset_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class AssetPicker<Asset, Path> extends StatefulWidget {
4040
SpecialPickerType? specialPickerType,
4141
Color? themeColor,
4242
ThemeData? pickerTheme,
43-
SortPathDelegate? sortPathDelegate,
43+
SortPathDelegate<AssetPathEntity>? sortPathDelegate,
4444
AssetsPickerTextDelegate? textDelegate,
4545
FilterOptionGroup? filterOptions,
4646
WidgetBuilder? specialItemBuilder,

0 commit comments

Comments
 (0)