简体   繁体   English

将虚拟图像保存到 FirebaseStorage flutter 以便用户在注册后稍后更新它们

[英]save dummy image to FirebaseStorage flutter for user update them later after sign up

i have both upload image method to firebasestorage and update image from firebasestorage.我有将图像上传到 firebasestorage 和从 firebasestorage 更新图像的方法。

but in my case i want a tameplate dummy image link create when sign up without user input so when user edit their profile they have empty background image.但在我的例子中,我希望在没有用户输入的情况下注册时创建一个 tameplate 虚拟图像链接,这样当用户编辑他们的个人资料时,他们有空的背景图像。 any suggestion how to make it?有什么建议吗?

while signing up the user send empty string into image key and in the edit image option check that image key whether it is empty or not, if it is empty then show a demo image from project asset fold or from network image or if image is already there then show that image as it is.在注册用户时,将空字符串发送到图像密钥中,并在编辑图像选项中检查该图像密钥是否为空,如果为空,则显示来自项目资产折叠或网络图像的演示图像,或者图像是否已经存在然后按原样显示该图像。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM