代码之家  ›  专栏  ›  技术社区  ›  KhoPhi

颤振滤波器芯片从端点动态加载

  •  0
  • KhoPhi  · 技术社区  · 8 年前

    我使用的示例代码如下: https://docs.flutter.io/flutter/material/FilterChip-class.html

    在示例代码中, _cast 是一个 final 名单。

    使 抛投 列表由端点的列表响应填充,需要进行哪些更改?

    我做了什么?

    我试过用 FutureBuilder 但不管我有什么不知道的原因 future 没有传入 builder 作为快照。

    https://gist.github.com/seanmavley/0a5f5190272c4f1a60b5a47203a06746

    1 回复  |  直到 8 年前
        1
  •  0
  •   Santosh Anand    8 年前

    尝试下列代码

    List<ActorFilterEntry> _castList;
      loadInterest() async {
        ...
        setState(() {
          _castEntry = res['interest'];
        });
      }