1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Finish to fix notices

This commit is contained in:
2022-03-11 17:16:46 +01:00
parent 48c9ee37b6
commit 9e6d3761fe
8 changed files with 11 additions and 34 deletions

View File

@ -32,8 +32,6 @@ Future<BytesFile?> pickImage(BuildContext context,
/// Throws in case of failure
Future<File> generateTemporaryFile() async {
final tempDir = await getTemporaryDirectory();
if (tempDir == null)
throw Exception("Could not generate temporary directory!");
return File(path.join(tempDir.path, randomString(15, from: 65, to: 90)));
}