Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 568 Bytes

dynamic-flow-adapter-cn.md

File metadata and controls

18 lines (16 loc) · 568 Bytes

DynamicFlowAdapter

  • 模版是一个 Map,接受一个数组类型的数据驱动
  • 示例代码
class RecommendAdapter extends DynamicFlowAdapter<RecommendState> {
    RecommendAdapter()
        : super(
            pool: <String, Component<Object>>{
                'card_0': RecommendTitleComponent(),
                'card_1': RecommendRowComponent(),
            },
            connector: RecommendCardListConnector(),
        );
}