【问题标题】:How to save data when user select radionbutton from radiobuttongroup in flutter?当用户从颤动的单选按钮组中选择单选按钮时如何保存数据?
【发布时间】:2019-12-18 17:24:40
【问题描述】:

我正在制作一个测验应用程序。我有 10 个问题列表,每个问题都有四个选项。用户一一选择答案。比所有答案都保存并在最后一屏给出结果。

//这是我的json参考。

{
    "error": false,
    "message": "Success",
    "quiz_id": "",
    "attemp": "",
    "last_question_id": "",
    "question_list": [
        {
            "questionId": "19_0",
            "questionName": "research",
            "answerId": "19_0_2",
            "user_answer": "",
            "option_list": [
                "put forward (an idea or plan) for consideration or discussion by others",
                "bring (something) to an end",
                "investigate systematically",
                "bring (something) to an end"
            ],
            "hard_question": "0",
            "synonyms": "",
            "additional": "",
            "moreInfo": "",
            "grammarfunction": "",
            "correct": false
        },

【问题讨论】:

  • 你有任何书面代码吗?对于这种类型的逻辑,有很多方法可以做到。
  • 不,我是编程新手,所以不懂逻辑。
  • Ankit 先生有什么更新吗?

标签: json flutter model radio-button


【解决方案1】:
猜你喜欢
  • 2012-12-30
  • 2014-10-14
  • 2019-07-01
  • 1970-01-01
  • 2017-07-24
  • 2021-05-13
  • 1970-01-01
  • 2017-06-30
  • 1970-01-01
相关资源
最近更新 更多