Comments (6)
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.
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.
@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.
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.
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.
@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)
- Network Error and Retry builders HOT 2
- When separator is configured the last item is not shown HOT 4
- Cannot stop StaticListAdapter from loading more and more copies of the page HOT 3
- onRefresh behaviour without adapter does not load new data
- Switching from 0.1.x to 0.2.y breaks the code without adapter
- List shows loading and empty widget's at the same time HOT 1
- [Feature Request] use other widget instead of RefreshIndicator
- Add an option to set the footer always on the bottom of the page if the listview is not big enough HOT 3
- Migrate to sound null safety HOT 3
- Support SliverAppBar as header
- Add support for GridView
- Is there any continuation plugin derived from this project? HOT 1
- Controller is missing HOT 1
- Feature request: allow sections in the list HOT 5
- Package not compatible with SDK dart
- The list view renders `widget.empty` before it's initial load HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-listutils.