Refresh indicator without scrollview

后端 未结 8 1036
失恋的感觉
失恋的感觉 2020-12-14 15:52

I know with a ListView or SingleChildScrollView RefreshIndicator just works natively but I want to use a RefreshIndicator

8条回答
  •  感情败类
    2020-12-14 16:27

    So in my case I wanted to display a placeholder in an empty list:

              RefreshIndicator(
                child: Stack(
                  children: [
                    Center(
                      child: Text("The list is empty"),
                    ),
                    ListView()
                  ],
                ),
                onRefresh: () {},
              )
    

提交回复
热议问题