Formatting changes

This commit is contained in:
Neeraj Gupta 2021-08-05 18:34:14 +05:30
parent ac4cdd1d55
commit 0b26fe47b5
2 changed files with 8 additions and 7 deletions

View file

@ -9,6 +9,7 @@ import Flutter
) -> Bool {
var flutter_native_splash = 1
UIApplication.shared.isStatusBarHidden = false
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}

View file

@ -251,17 +251,17 @@ class FadingAppBarState extends State<FadingAppBar> {
await dialog.show();
if (file.fileType == FileType.image ||
file.fileType == FileType.livePhoto) {
file.localID = (await PhotoManager.editor.saveImageWithPath(
final savedAsset = (await PhotoManager.editor.saveImageWithPath(
(await getFile(file)).path,
title: file.title,
))
.id;
));
file.localID = savedAsset.id;
} else if (file.fileType == FileType.video) {
file.localID = (await PhotoManager.editor.saveVideo(
(await getFile(file)),
final savedAsset = (await PhotoManager.editor.saveImageWithPath(
(await getFile(file)).path,
title: file.title,
))
.id;
));
file.localID = savedAsset.id;
}
await FilesDB.instance.insert(file);
await LocalSyncService.instance.trackDownloadedFile(file);