GithubHelp home page GithubHelp logo

Comments (7)

RBT22 avatar RBT22 commented on June 11, 2024 2

Thank you very much! 🤗

from flutter-custom-refresh-indicator.

gonuit avatar gonuit commented on June 11, 2024 2

Version 1.1.2 is available on the pub.dev 💪🏻 and ready for your tests 🕵🏻

from flutter-custom-refresh-indicator.

gonuit avatar gonuit commented on June 11, 2024 1

Hi, @Jordan1122 and @ziqq -- sorry for the long waiting time − I'm already working on it ⏲️

from flutter-custom-refresh-indicator.

ziqq avatar ziqq commented on June 11, 2024

I added pull request, check it plz

from flutter-custom-refresh-indicator.

RBT22 avatar RBT22 commented on June 11, 2024

@gonuit Is there any problem with this fix? or why don't you just approve it?

The following assertion was thrown while dispatching notifications for IndicatorController:
Build scheduled during frame.

While the widget tree was being built, laid out, and painted, a new frame was scheduled to rebuild the widget tree.

This might be because setState() was called from a layout or paint callback. If a change is needed to the widget tree, it should be applied as the tree is being built. Scheduling a change for the subsequent frame instead results in an interface that lags behind by one frame. If this was done to make your build dependent on a size measured at layout time, consider using a LayoutBuilder, CustomSingleChildLayout, or CustomMultiChildLayout. If, on the other hand, the one frame delay is the desired effect, for example because this is an animation, consider scheduling the frame in a post-frame callback using SchedulerBinding.addPostFrameCallback or using an AnimationController to trigger the animation.

When the exception was thrown, this was the stack: 
#0      WidgetsBinding._handleBuildScheduled.<anonymous closure> (package:flutter/src/widgets/binding.dart:756:9)
#1      WidgetsBinding._handleBuildScheduled (package:flutter/src/widgets/binding.dart:779:6)
#2      BuildOwner.scheduleBuildFor (package:flutter/src/widgets/framework.dart:2482:24)
#3      Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4495:12)
#4      State.setState (package:flutter/src/widgets/framework.dart:1129:15)
#5      ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:324:24)
#6      IndicatorController.setAxisDirection (package:custom_refresh_indicator/src/controller.dart:115:5)
#7      CustomRefreshIndicatorState._handleScrollStartNotification (package:custom_refresh_indicator/src/custom_refresh_indicator.dart:209:16)
#8      CustomRefreshIndicatorState._handleScrollNotification (package:custom_refresh_indicator/src/custom_refresh_indicator.dart:376:14)
#9      _NotificationElement.onNotification (package:flutter/src/widgets/notification_listener.dart:130:38)
#10     _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3078:18)
#11     _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3081:13)
#12     _NotificationNode.dispatchNotification (package:flutter/src/widgets/framework.dart:3081:13)
#13     Element.dispatchNotification (package:flutter/src/widgets/framework.dart:4375:24)
#14     Notification.dispatch (package:flutter/src/widgets/notification_listener.dart:60:13)
#15     ScrollActivity.dispatchScrollStartNotification (package:flutter/src/widgets/scroll_activity.dart:89:65)
#16     ScrollPosition.didStartScroll (package:flutter/src/widgets/scroll_position.dart:895:15)
#17     ScrollPosition.beginActivity (package:flutter/src/widgets/scroll_position.dart:887:7)
#18     ScrollPositionWithSingleContext.beginActivity (package:flutter/src/widgets/scroll_position_with_single_context.dart:114:11)
#19     ScrollPositionWithSingleContext.goBallistic (package:flutter/src/widgets/scroll_position_with_single_context.dart:146:7)
#20     IdleScrollActivity.applyNewDimensions (package:flutter/src/widgets/scroll_activity.dart:157:14)
#21     ScrollPosition.applyNewDimensions (package:flutter/src/widgets/scroll_position.dart:623:15)
#22     ScrollPositionWithSingleContext.applyNewDimensions (package:flutter/src/widgets/scroll_position_with_single_context.dart:104:11)
#23     ScrollPosition.applyContentDimensions (package:flutter/src/widgets/scroll_position.dart:553:7)
#24     RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1493:20)
#25     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1757:7)
#26     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:887:18)
#27     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:504:19)
#28     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:892:13)
#29     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:370:5)
#30     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1146:15)
#31     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1083:9)
#32     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:997:5)
#36     _invoke (dart:ui/hooks.dart:151:10)
#37     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#38     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 3 frames from dart:async)
The IndicatorController sending notification was: Instance of 'IndicatorController'

from flutter-custom-refresh-indicator.

ziqq avatar ziqq commented on June 11, 2024

Fix it plz

image

from flutter-custom-refresh-indicator.

RBT22 avatar RBT22 commented on June 11, 2024

This problem is caused by #30. Updating the compatibility to 3.0.0 this way comes with losing older versions...

This is a good example of the correct approach:
rive-app/rive-flutter@50aceab

from flutter-custom-refresh-indicator.

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.