简体   繁体   English

如何填写json文件并发送到flutter中的firebase?

[英]How to fill json file and send it to firebase in flutter?

I'm a Flutter programmer and I'm stuck halfway to completing my app, the problem is that I have an empty JSON file shown in the following image, I want the user to fill it in and send it to firebase but I haven't found any solutions to do that.我是一名 Flutter 程序员,我在完成我的应用程序的过程中卡住了一半,问题是我有一个空的 JSON 文件,如下图所示,我希望用户填写它并将其发送到 ZBF12E1515C25C7D81C035 但是没有找到任何解决方案来做到这一点。 Is my thinking the illogical or did I just not find the idea?我的想法是不合逻辑的还是我只是没有找到这个想法?

Any suggestion or code would be greatly appreciated.任何建议或代码将不胜感激。

在此处输入图像描述

  Object data = {
            "name": name,
            "age": age,
            "gender": gender,
            "phone": phone,
          };

 yourJson[0] =  data;

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

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