fix flutter analyze issues

This commit is contained in:
Salvatore Giordano
2021-02-02 12:15:54 +01:00
parent c89b54a65b
commit 47ccc0491a
27 changed files with 204 additions and 217 deletions
@@ -1,14 +1,14 @@
import 'package:http_parser/http_parser.dart' as httpParser;
import 'package:http_parser/http_parser.dart' as http_parser;
import 'package:mime/mime.dart';
class MediaUtils {
static httpParser.MediaType getMimeType(String filename) {
httpParser.MediaType mimeType;
static http_parser.MediaType getMimeType(String filename) {
http_parser.MediaType mimeType;
if (filename != null) {
if (filename.toLowerCase().endsWith('heic')) {
mimeType = httpParser.MediaType.parse('image/heic');
mimeType = http_parser.MediaType.parse('image/heic');
} else {
mimeType = httpParser.MediaType.parse(lookupMimeType(filename));
mimeType = http_parser.MediaType.parse(lookupMimeType(filename));
}
}