Check Uri is supported or not
@override bool isUriSupported(String uriString) { try { Uri uri = Uri.parse(uriString); File.fromUri(uri); return true; } catch (_) {} return false; }