From 179951f7073273784075a2b653da7babdc075c39 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Thu, 21 Nov 2024 16:09:18 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Use=20creation=20date=20DE?= =?UTF-8?q?SC=20on=20Android=20by=20default?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/provider/asset_picker_provider.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/provider/asset_picker_provider.dart b/lib/src/provider/asset_picker_provider.dart index 260e2dcd..cb8039f7 100644 --- a/lib/src/provider/asset_picker_provider.dart +++ b/lib/src/provider/asset_picker_provider.dart @@ -3,6 +3,7 @@ // in the LICENSE file. import 'dart:async'; +import 'dart:io'; import 'dart:math' as math; import 'dart:typed_data'; @@ -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; }