Skip to content

Commit

Permalink
⚡️ Use creation date DESC on Android by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 21, 2024
1 parent 2c12c7e commit 179951f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/provider/asset_picker_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// in the LICENSE file.

import 'dart:async';
import 'dart:io';
import 'dart:math' as math;
import 'dart:typed_data';

Expand Down Expand Up @@ -349,6 +350,10 @@ class DefaultAssetPickerProvider
createTimeCond: DateTimeCond.def().copyWith(ignore: true),
updateTimeCond: DateTimeCond.def().copyWith(ignore: true),
)..merge(fog);
} else if (fog == null && Platform.isAndroid) {
options = AdvancedCustomFilter(
orderBy: [OrderByItem.desc(CustomColumns.base.createDate)],
);
} else {
options = fog;
}
Expand Down

0 comments on commit 179951f

Please sign in to comment.