RefreshIndicator下拉刷新组件,触发控制器中的initData();方法
body: RefreshIndicator(
  onRefresh: () async {
    await controller.initData();
  },
  child: SingleChildScrollView(
    child: _buildView(),
  ),
),
Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐