Giter Club home page Giter Club logo

Comments (7)

asapJ avatar asapJ commented on July 17, 2024

@AbdulRahmanAlHamali

from flutter_pagewise.

sjmcdowall avatar sjmcdowall commented on July 17, 2024

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.

asapJ avatar asapJ commented on July 17, 2024

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.

sjmcdowall avatar sjmcdowall commented on July 17, 2024

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.

sjmcdowall avatar sjmcdowall commented on July 17, 2024

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.

sjmcdowall avatar sjmcdowall commented on July 17, 2024

Fixed in latest release

from flutter_pagewise.

asapJ avatar asapJ commented on July 17, 2024

Fix confirmed

from flutter_pagewise.

Related Issues (20)

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.