I am trying to fix image picker

This commit is contained in:
OfficialDakari 2025-10-02 12:54:38 +05:00
parent bffde24279
commit d2c9c179aa
3 changed files with 10 additions and 2406 deletions

View File

@ -13,7 +13,6 @@ Future<List<XFile>> selectFiles(
FileSelectorType type = FileSelectorType.any, FileSelectorType type = FileSelectorType.any,
bool allowMultiple = false, bool allowMultiple = false,
}) async { }) async {
if (!PlatformInfos.isLinux) {
final result = await AppLock.of(context).pauseWhile( final result = await AppLock.of(context).pauseWhile(
showFutureLoadingDialog( showFutureLoadingDialog(
context: context, context: context,
@ -26,24 +25,6 @@ Future<List<XFile>> selectFiles(
), ),
); );
return result.result?.xFiles ?? []; return result.result?.xFiles ?? [];
}
if (allowMultiple) {
return await AppLock.of(context).pauseWhile(
openFiles(
confirmButtonText: title,
acceptedTypeGroups: type.groups,
),
);
}
final file = await AppLock.of(context).pauseWhile(
openFile(
confirmButtonText: title,
acceptedTypeGroups: type.groups,
),
);
if (file == null) return [];
return [file];
} }
enum FileSelectorType { enum FileSelectorType {

File diff suppressed because it is too large Load Diff

View File

@ -97,7 +97,7 @@ dependencies:
url_launcher: ^6.2.5 url_launcher: ^6.2.5
video_compress: ^3.1.4 video_compress: ^3.1.4
video_player: ^2.9.2 video_player: ^2.9.2
vodozemac: ^0.2.0 vodozemac: ^0.3.0
wakelock_plus: ^1.2.2 wakelock_plus: ^1.2.2
webrtc_interface: ^1.0.13 webrtc_interface: ^1.0.13
dio: ^5.9.0 dio: ^5.9.0