Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This error occurs when my slider finishes executing #11

Closed
Leewinner1 opened this issue Jan 15, 2024 · 8 comments · Fixed by #12
Closed

This error occurs when my slider finishes executing #11

Leewinner1 opened this issue Jan 15, 2024 · 8 comments · Fixed by #12
Assignees
Labels
bug Something isn't working

Comments

@Leewinner1
Copy link

Leewinner1 commented Jan 15, 2024

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following ArgumentError was thrown building AnimatedBuilder(listenable:
AnimationController#e6f76(▶ 1.000)➩Cubic(0.42, 0.00, 0.58, 1.00), dirty, state:
_AnimatedState#b5ad8):
Invalid argument(s): 0.0

The relevant error-causing widget was:
  AnimatedBuilder
  AnimatedBuilder:file:///Users/lee/.pub-cache/hosted/pub.flutter-io.cn/action_slider-0.7.0/lib/src/action_sli
  der_widget.dart:899:16

When the exception was thrown, this was the stack:
#0      double.clamp (dart:core-patch/double.dart:234:7)
#1      _ActionSliderState.build.<anonymous closure>.<anonymous closure>.statePosToLocalPos
(package:action_slider/src/action_slider_widget.dart:906:46)
#2      _ActionSliderState.build.<anonymous closure>.<anonymous closure>
(package:action_slider/src/action_slider_widget.dart:907:30)
#3      ListenableBuilder.build (package:flutter/src/widgets/transitions.dart:1123:48)
#4      _AnimatedState.build (package:flutter/src/widgets/transitions.dart:135:48)
#5      StatefulElement.build (package:flutter/src/widgets/framework.dart:5583:27)
#6      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5471:15)
#7      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5634:11)
#8      Element.rebuild (package:flutter/src/widgets/framework.dart:5187:7)
#9      BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2895:19)
#10     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:984:21)
#11     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:457:5)
#12     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1325:15)
#13     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1255:9)
#14     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1113:5)
#15     _invoke (dart:ui/hooks.dart:312:13)
#16     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:383:5)
#17     _drawFrame (dart:ui/hooks.dart:283:31)

════════════════════════════════════════════════════════════════════════════════════════════════════

Another exception was thrown: Invalid argument(s): 0.0
Another exception was thrown: Invalid argument(s): 0.0
Another exception was thrown: Invalid argument(s): 0.0
Another exception was thrown: Invalid argument(s): 0.0
@patrikSterbic
Copy link

I have same problem. Did you find some workaround for this?

@kundanlal5555
Copy link

kundanlal5555 commented Jan 24, 2024

Add Try Block on line no.
Screenshot 2024-01-24 at 2 04 07 AM

@patrikSterbic
Copy link

Nice, thank you, that actually helped!

@maeddin
Copy link
Member

maeddin commented Feb 6, 2024

I apologize for not taking care of this bug sooner. Unfortunately, I've had very little free time in the last few weeks to work on my open source projects.

maeddin added a commit that referenced this issue Feb 6, 2024
@maeddin
Copy link
Member

maeddin commented Feb 6, 2024

Can anyone who has experienced this error confirm that it no longer occurs in #12?

@maeddin maeddin self-assigned this Feb 6, 2024
@maeddin maeddin added the bug Something isn't working label Feb 6, 2024
@maeddin maeddin mentioned this issue Feb 6, 2024
maeddin added a commit that referenced this issue May 29, 2024
@alejandrogiubel
Copy link

I think the changes to this fix are not yet in the version published at https://pub.dev/, perhaps versioning problems

@maeddin
Copy link
Member

maeddin commented Jul 10, 2024

@alejandrogiubel No, this fix has not yet been released. If you need this fix, you can use the current GitHub version in your Flutter project.

@alejandrogiubel
Copy link

@maeddin understood. That's what I did. thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants