flutter 动态列表

立即下载 ️⬇️

一个列表组件,可以刷新并为Flutter App添加更多数据。

Language: English 中文简体

This component has been included into lsp_designer, Welcome to use it.

该组件已被纳入到 lsp_designer, 欢迎使用。

Dynamic List View

License Pub Pub

A list component that can refreshes and adds more data for Flutter App. 🚀

dynamic_list_view github

Dynamic List View

lsp_designer github


Add this to your package’s pubspec.yaml file:

 dynamic_list_view: ^0.1.8

Usage example

import 'package:dynamic_list_view/DynamicListView.dart';
import 'package:flutter/material.dart';
import 'dart:async';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  _MyAppState createState() => _MyAppState();

class _MyAppState extends State<MyApp> {

  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Container(
          child: DynamicListView.build(
            itemBuilder: _itemBuilder,
            dataRequester: _dataRequester,
            initRequester: _initRequester,

  Future<List> _initRequester() async {
    return Future.value(List.generate(15, (i) => i));

  Future<List> _dataRequester() async {
    return Future.delayed(Duration(seconds: 2), () {
      return List.generate(10, (i) => 15 + i);

  Function _itemBuilder = (List dataList, BuildContext context, int index) {
    String title = dataList[index].toString();
    return ListTile(title: Text("Number $title"));


We would ❤️ to see your contribution!


Distributed under the MIT license. See LICENSE for more information.


Created by Shusheng.

Github主页 👉leyan95/dynamic_list_view