json - 如何使用提供的来自 REST API 的 JSON 在颤振中动态添加复选框/单选按钮组?
问题描述
如何从 Flutter 中的以下 JSON 开发附加的 UI,其中包括一组复选框/单选按钮并存储更新的值?
"item_options": "{\"Size\":{\"Large\":\"50\",\"Medium\":\"30\",\"Small\":\"0\"}}",
"store_options": "{\"Add-Ons\":{\"BBQ Sauce\":\"20\",\"Extra Cheese\":\"25\",\"Pepperoni\":\"40\"},\"Sauce Level\":{\"Less Sauce\":\"0\",\"Regular\":\"0\",\"More Sauce\":\"0\"},\"Spice Level\":{\"Less Spicy\":\"0\",\"Mild\":\"0\",\"Very Spicy\":\"0\"}}",
解决方案
推荐阅读
- botframework - Microsoft Botframework 网络聊天。更新到 4.14 后如何解决 activityMiddleware 和 showAvatarInGroup 的问题
- excel - SSIS:未能检索到长数据/截断错误
- strcpy - c中的strcpy函数
- javascript - NuxtJS 中的错误:无法将未定义或 Null 转换为对象
- vue.js - 在 Vuelidate/VueJS 中访问当前范围之外的验证属性?
- excel - 我如何简化这个 IF 公式?如果可能的话
- python - 为什么在运行 python 项目时在命令行中出现此错误?
- vaadin - 在 Vaadin 图表类型 columnrange 中绘制自定义线
- c# - 禁止复制变量
- c - SIGSEGV,分段错误,在 arm (CortexA9) 上运行时执行期间