|
@@ -29,7 +29,7 @@ export 'package:photo/src/entity/options.dart' show PickType, PickedEntity;
|
29
|
29
|
export 'package:photo/src/delegate/badge_delegate.dart';
|
30
|
30
|
export 'package:photo/src/entity/_theme.dart';
|
31
|
31
|
export 'package:image_picker/image_picker.dart' show CameraDevice, PickedFile;
|
32
|
|
-export 'package:photo_manager/photo_manager.dart' show AssetEntity;
|
|
32
|
+export 'package:photo_manager/photo_manager.dart' show AssetEntity, AssetType;
|
33
|
33
|
|
34
|
34
|
class PhotoPicker {
|
35
|
35
|
static PhotoPicker _instance;
|
|
@@ -60,7 +60,7 @@ class PhotoPicker {
|
60
|
60
|
@required BuildContext context,
|
61
|
61
|
int rowCount = 4,
|
62
|
62
|
int maxSelected = 9,
|
63
|
|
- double padding = 1,
|
|
63
|
+ double padding = 0.5,
|
64
|
64
|
double itemRadio = 1.0,
|
65
|
65
|
int thumbSize = 180,
|
66
|
66
|
PhotoTheme theme,
|
|
@@ -90,7 +90,7 @@ class PhotoPicker {
|
90
|
90
|
sortDelegate: sortDelegate,
|
91
|
91
|
checkBoxBuilderDelegate: DefaultCheckBoxBuilderDelegate(),
|
92
|
92
|
loadingDelegate: loadingDelegate,
|
93
|
|
- badgeDelegate: DefaultBadgeDelegate(),
|
|
93
|
+ badgeDelegate: DurationBadgeDelegate(),
|
94
|
94
|
pickType: pickType,
|
95
|
95
|
);
|
96
|
96
|
|
|
@@ -106,7 +106,7 @@ class PhotoPicker {
|
106
|
106
|
static Future<AssetEntity> pickSingleAsset({
|
107
|
107
|
@required BuildContext context,
|
108
|
108
|
int rowCount = 4,
|
109
|
|
- double padding = 1,
|
|
109
|
+ double padding = 0.5,
|
110
|
110
|
double itemRadio = 1.0,
|
111
|
111
|
int thumbSize = 180,
|
112
|
112
|
PhotoTheme theme,
|
|
@@ -207,7 +207,7 @@ class PhotoPicker {
|
207
|
207
|
sortDelegate: sortDelegate,
|
208
|
208
|
checkBoxBuilderDelegate: DefaultCheckBoxBuilderDelegate(),
|
209
|
209
|
loadingDelegate: loadingDelegate,
|
210
|
|
- badgeDelegate: DefaultBadgeDelegate(),
|
|
210
|
+ badgeDelegate: DurationBadgeDelegate(),
|
211
|
211
|
pickType: pickType,
|
212
|
212
|
);
|
213
|
213
|
assert(provider != null, "provider must be not null");
|