简体   繁体   中英

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. 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;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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