Skip to content

RefreshIndicator pull-down-to-refresh (from top) not working with ListView.builder reverse:true #26758

@dspoonia7

Description

@dspoonia7

RefreshIndicator, In case of ListView.builder reverse: true, at top pull-to-refresh (pull down to refresh) is not working. Though at the bottom (pull-up-to-refresh) is working fine (which I don't need).
For context, I am trying a chat application and need to show the spinner at the top on the pull-to-refresh. Below is the piece of code that I am using:

      .....
      Container(
         child: RefreshIndicator(
            onRefresh: _handleRefresh,
            child: new ListView.builder(
              reverse: true,
              itemCount: items.length,
              itemBuilder: (context, index) {
                 ....
                 // return items[index];
              },
           ),
        ),
     ),
     ....

Metadata

Metadata

Assignees

Labels

f: material designflutter/packages/flutter/material repository.f: scrollingViewports, list views, slivers, etc.found in release: 1.22Found to occur in 1.22found in release: 1.26Found to occur in 1.26frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions