Comments (7)
from flutter_pagewise.
What line # did it point to? Posting part of the error stack would be handy. The line you highlighted appears to be a typo .. since it should be .length not .lenght ...
from flutter_pagewise.
error log
E/flutter (30454): Receiver: null
E/flutter (30454): Tried calling: length
E/flutter (30454): #0 Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
E/flutter (30454): #1 PagewiseLoadController.fetchNewPage
package:flutter_pagewise/flutter_pagewise.dart:475
E/flutter (30454):
E/flutter (30454): #2 PagewiseState._itemBuilder
package:flutter_pagewise/flutter_pagewise.dart:270
E/flutter (30454): #3 SliverChildBuilderDelegate.build
package:flutter/…/widgets/sliver.dart:398
E/flutter (30454): #4 SliverMultiBoxAdaptorElement._build.
package:flutter/…/widgets/sliver.dart:1002
E/flutter (30454): #5 _HashMap.putIfAbsent (dart:collection/runtime/libcollection_patch.dart:137:29)
E/flutter (30454): #6 SliverMultiBoxAdaptorElement._build
package:flutter/…/widgets/sliver.dart:1002
E/flutter (30454): #7 SliverMultiBoxAdaptorElement.createChild.
package:flutter/…/widgets/sliver.dart:1015
E/flutter (30454): #8 BuildOwner.buildScope
package:flutter/…/widgets/framework.dart:2253
E/flutter (30454): #9 SliverMultiBoxAdaptorElement.createChild
package:flutter/…/widgets/sliver.dart:1008
E/flutter (30454): #10 RenderSliverMultiBoxAdaptor._createOrObtainChild.
from flutter_pagewise.
Thanks for the logs -- very helpful! I'll see if I can take a look today or tomororw -- or if @KaYBlitZ wants to take a shot at it...
The first question is can I see the logic for the BackendService.getPosts()? It appears its possible for that Future to return a NULL .. where as PagewiseListView always expects a List/Array<> type thing -- even if empty ... although we should guard for that .. but is it possible you are returning a null value instead of an empty List / Array?
from flutter_pagewise.
I submitted a PR to fix this -- you can give it a whirl early by pointing your pubspec.yaml to my fork & the develop branch ...
from flutter_pagewise.
Fixed in latest release
from flutter_pagewise.
Fix confirmed
from flutter_pagewise.
Related Issues (20)
- How to remove a item from itemBuilder ? HOT 1
- Operand of null-aware operation '?.' has type 'List<T>' which excludes null. (version 2.0.0) HOT 1
- how to use with bloc?
- Add mainAxisExtent to PagewiseSliverGrid HOT 1
- How to pass more parameters in PageWiseLoadController HOT 1
- How to get the list of loadedItems
- How to place search field and update Grid HOT 1
- Sort PagewiseGridView from a button
- The method 'FlatButton' isn't defined for the class 'PagewiseState<T>'.
- Error with 2.0.3 version HOT 1
- pagewise 2.0.3 on flutter >=3.0.5
- Add `keyboardDismissBehaviour` parameter
- Batch instead of lazyload on scrolling to the bottom HOT 1
- PagewiseGridView abnormal exita
- Support null safety HOT 3
- Allow dynamic pagesize
- Wrapping PagewiseSliverGrid.count in a Consumer doesn't reload grid HOT 1
- Paginated scroll state not preserved
- How to keep pageFuture state ?
- How do we add a parent widget to PagewiseListView HOT 1
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_pagewise.