Comments (7)
Thank you very much! 🤗
from flutter-custom-refresh-indicator.
Version 1.1.2 is available on the pub.dev 💪🏻 and ready for your tests 🕵🏻
from flutter-custom-refresh-indicator.
Hi, @Jordan1122 and @ziqq -- sorry for the long waiting time − I'm already working on it ⏲️
from flutter-custom-refresh-indicator.
I added pull request, check it plz
from flutter-custom-refresh-indicator.
@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.
Fix it plz
from flutter-custom-refresh-indicator.
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)
- NestedScrollView + TabView + ListView bug. HOT 1
- app build fails with version >=1.0.0 - The method 'disallowIndicator' isn't defined for the class 'OverscrollIndicatorNotification' HOT 1
- How to create a simple CupertinoActivityIndicator based loader HOT 1
- Indicator always spinning HOT 3
- Refresh not showing when list has few items. HOT 2
- controller.value is always 0.0 HOT 1
- minimum duration setting HOT 1
- how can i support ListView reverse to load More data. look like IM app? HOT 1
- Is it possible to trigger refresh programmatically? HOT 1
- Rename 'builder' Property to 'indicatorBuilder' for Clarity HOT 1
- Animate the indicator during pull HOT 1
- TabBar Put in TabBarView children: Not displayed! HOT 1
- Untestable HOT 3
- isnt offsetToArmed bugged? it seems to me that the controller.value is only 1 when i scrolled 100% past the offsetToArmed height HOT 2
- Question about the cancelling state - indicator container immediately closes on cancel HOT 4
- CircularProgressIndicator with transparent background HOT 2
- Bug when change scroll direction HOT 1
- IndicatorState may need an 'error' state.
- The listView is not displayed HOT 1
- How can I move the children list down along with the RefreshIndicator?
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-custom-refresh-indicator.