Giter Site home page Giter Site logo

Comments (6)

themisir avatar themisir commented on July 2, 2024 2

Thank you.

I am using the package to display data from a custom data repository (an internal service thatloads data from rest api) and need the pull to refresh functionality to call the refresh of the data repository.

I have not found a better package for this usage.

Thank you. By the way, this package is using RefreshIndicator widget from flutter SDK. You can add it to any flutter list widget.

RefreshIndicator(
  onRefresh: () => Future.delayed(Duration(seconds: 2)),
  child: ListView(
    children: [],
  ),
),

I would suggest using it if you don't need additional stuff. Don't get me wrong 😅 That's just an advice to reduce dependencies on 3rd party code (like this package).

from flutter-listutils.

sebastianbuechler avatar sebastianbuechler commented on July 2, 2024

Some more detail regarding the error:

The exception happens in the custom_list_view.dart file in the SliverChildDelegate type function _buildDelegate(). To be more precise in line 299 when executing return widget.itemBuilder(context, index, items[index]); and the items list is empty instead of carrying all the loaded items.

Also, in the earlier version of the code there is a check if widget.adapter is null so it won't return the empty items list (line 167: https://github.com/TheMisir/flutter-listutils/blob/18a63bf9507d2d15384f0b061bb36bbda7afdcfe/lib/src/custom_list_view.dart). Why is this check not in use anymore?

from flutter-listutils.

sebastianbuechler avatar sebastianbuechler commented on July 2, 2024

@themisir Thanks for merging the fix. Is it possible to publish this newest version to pub.dev so we can use it directly?

from flutter-listutils.

themisir avatar themisir commented on July 2, 2024

Thanks for your contribution. I've just published to pub.dev.

I want to ask a question about package usage.

What feature are you using this package for?

What is the reason for using this package?

from flutter-listutils.

sebastianbuechler avatar sebastianbuechler commented on July 2, 2024

Thank you.

I am using the package to display data from a custom data repository (an internal service thatloads data from rest api) and need the pull to refresh functionality to call the refresh of the data repository.

I have not found a better package for this usage.

from flutter-listutils.

sebastianbuechler avatar sebastianbuechler commented on July 2, 2024

@themisir Thank you very much. I did not know RefreshIndicator and that it is quite simple to integrate it. Will try it out while refactoring!

However, I still like your package since it offers some nice options ;-)

from flutter-listutils.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.