TF-4058 Upgrade dependencies to compatible with flutter version 3.32.8
This commit is contained in:
@@ -312,7 +312,7 @@ class EmailAPI with HandleSetErrorMixin {
|
||||
|
||||
String externalStorageDirPath;
|
||||
if (Platform.isAndroid) {
|
||||
externalStorageDirPath = await ExternalPath.getExternalStoragePublicDirectory(ExternalPath.DIRECTORY_DOWNLOADS);
|
||||
externalStorageDirPath = await ExternalPath.getExternalStoragePublicDirectory(ExternalPath.DIRECTORY_DOWNLOAD);
|
||||
} else if (Platform.isIOS) {
|
||||
externalStorageDirPath = (await getApplicationDocumentsDirectory()).absolute.path;
|
||||
} else {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:better_open_file/better_open_file.dart' as open_file;
|
||||
import 'package:open_file/open_file.dart' as open_file;
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/utils/html_transformer/text/sanitize_autolink_unescape_html_transformer.dart';
|
||||
import 'package:core/presentation/utils/html_transformer/text/new_line_transformer.dart';
|
||||
@@ -1044,9 +1044,13 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
|
||||
}
|
||||
|
||||
final openResult = await open_file.OpenFile.open(
|
||||
downloadedResponse.filePath,
|
||||
type: Platform.isAndroid ? downloadedResponse.mediaType!.mimeType : null,
|
||||
uti: Platform.isIOS ? downloadedResponse.mediaType!.getDocumentUti().value : null);
|
||||
downloadedResponse.filePath,
|
||||
type: Platform.isAndroid ? downloadedResponse.mediaType!.mimeType : null,
|
||||
// "xdg" is default value
|
||||
linuxDesktopName: Platform.isIOS
|
||||
? downloadedResponse.mediaType!.getDocumentUti().value ?? 'xdg'
|
||||
: 'xdg',
|
||||
);
|
||||
|
||||
if (openResult.type != open_file.ResultType.done) {
|
||||
logError('SingleEmailController::_openDownloadedPreviewWorkGroupDocument(): no preview available');
|
||||
|
||||
@@ -102,7 +102,7 @@ class HomeController extends ReloadableController {
|
||||
.then((_) => FlutterDownloader.registerCallback(downloadCallback));
|
||||
}
|
||||
|
||||
static void downloadCallback(String id, DownloadTaskStatus status, int progress) {}
|
||||
static void downloadCallback(String id, int status, int progress) {}
|
||||
|
||||
Future<void> _handleNavigateToScreen() async {
|
||||
await Future.delayed(2.seconds);
|
||||
|
||||
Reference in New Issue
Block a user