Flutter Deeplink问题与图片URL

huangapple go评论63阅读模式
英文:

Flutter Deeplink issue with image URL

问题

我遇到了深度链接部分的问题。当我尝试jsonEncode时,我收到了附件中显示的错误:

Flutter Deeplink问题与图片URL

英文:

I am facing an issue with deeplink part. When I try to jsonEncode, I got this error as shown in the attachment:

Flutter Deeplink问题与图片URL

答案1

得分: 2

The JSON不是有效的,因此引发了FormatException

logo键的格式不正确,因为它没有一个封闭的双引号"

这是您当前的内容。

"logo": "https://firebasestorage.googleapis.com/ve/b/..appspot.com/o/Stores/image_picker_78CC1DE1-00A6-4479-924F-8D0662B740B-48237-000060FE8F8282CB.jpg?alt=media,

这是地图中键应该看起来像的样子。

"logo": "https://firebasestorage.googleapis.com/ve/b/..appspot.com/o/Stores/image_picker_78CC1DE1-00A6-4479-924F-8D0662B740B-48237-000060FE8F8282CB.jpg?alt=media";
英文:

The JSON is not valid, hence the FormatException.

The logo key is not well formatted as it doesn't have an enclosing double quote ".

This is what you have right now.

"logo": "https://firebasestorage.googleapis.com/ve/b/..appspot.com/o/Stores/image_picker_78CC1DE1-00A6-4479-924F-8D0662B740B-48237-000060FE8F8282CB.jpg?alt=media,

This is what the key supposed to look like in the Map.

"logo": "https://firebasestorage.googleapis.com/ve/b/..appspot.com/o/Stores/image_picker_78CC1DE1-00A6-4479-924F-8D0662B740B-48237-000060FE8F8282CB.jpg?alt=media",

huangapple
  • 本文由 发表于 2023年5月15日 12:20:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/76250865.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定