简体   繁体   English

我在尝试将数据从云 Firestore 带到我的 flutter 应用程序时遇到此错误

[英]I am getting this error while am trying to bring data from cloud firestore to my flutter app

ERROR - >错误->

Invalid argument(s): No host specified in URI file:///data/user/0/com.example.hangout/cache/scaled_8213e05d-3981-48c7-ac51-d57a3ab4b8f04882445254643686983.jpg无效参数:URI 文件中未指定主机:///data/user/0/com.example.hangout/cache/scaled_8213e05d-3981-48c7-ac51-d57a3ab4b8f04882445254643686983.jpg

here is the code for the dashboard screen这是仪表板屏幕的代码

dashboardScreen.dart dashboardScreen.dart

The problem is that you are storing the images without the full URL and trying to display it without concatenating it with the base url.问题是您在没有完整 URL 的情况下存储图像,并试图在不将其与基本 url 连接的情况下显示它。

You have to options:你必须选择:

  • Concatenate the image path with the base URL in the NetworkImage .将图像路径与NetworkImage中的基数 URL 连接起来。
  • Store the full pathof the image in the Firestore.将图像的完整路径存储在 Firestore 中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将日期数据上传到 flutter 中的 firestore 时出现错误 - I am getting error while uploading date data to firestore in flutter 当我在 class Android Studio 中从 firestore 获取数据时,为什么我的应用程序出错 - Why does my app error when I am Getting data from firestore in class Android Studio 从firestore(firebase)获取数据时出现错误。 我正在使用本机反应 - I am getting an error while fetching data from firestore(firebase). I am using react native 我正在尝试从 android studio 的 recyclerview 中的 firestore 中检索数据,但得到空白页面并且没有错误我尝试了很多方法但没有工作 - I am trying to retrieved data from firestore in recyclerview in android studio but getting blank page and no error i have tried many way but not work 尝试在我的 Android 应用程序项目中添加电话身份验证时出现错误 - I am getting error when trying to add phone authentication in my Android app project 为什么我收到 Expo Firestore 错误:无法到达 Cloud Firestore 后端。 后端没有在 10 秒内响应? - Why I am getting Expo Firestore error: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds? 为什么我在 iOS(颤振应用程序)中收到 Firebase AppCheck 错误 - Why am I getting a Firebase AppCheck error in iOS (Flutter app) 通过 git 存储库将我的应用程序部署到 azure 时出现错误 - I am getting an error while deploying my app to azure through git repository 我正在尝试从我的 flutter 移动应用程序中调用 firebase 云功能。 我可以从 firebase 函数调用那些:shell 或本地 - I am trying to call firebase cloud functions from my flutter mobile application. I am able to call those from firebase functions : shell or locally 我无法从云 firestore 访问文档字段并在 flutter 中的 statefulwidget class 中显示它 - I am unable to access document field from cloud firestore and show it in a statefulwidget class in flutter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM