-
-
Notifications
You must be signed in to change notification settings - Fork 626
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
AnimationBuilder RangeError #23
Comments
Hi @keremkayabay, |
Hello @letsar I've found out, when there are two actions on the left and one action on the right (secondaryActions), it would throw this exception. If the number of actions on the left and right are equal, it works fine. Btw thanks for the cool package! Here is a sample code:
|
And it doesn't happen at all with SlidableScrollDelegate |
Thanks for the feedback @keremkayabay 😃. |
Should be fixed in version 0.4.3 |
Thank you! |
While sliding a Slidable, it sometimes throws the following exception:
I/flutter (13152): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (13152): The following RangeError was thrown building AnimatedBuilder(animation: AnimationController#4bf67(▶
I/flutter (13152): 0.191; paused), dirty, state: _AnimatedState#6161d):
I/flutter (13152): RangeError (index): Invalid value: Only valid value is 0: 1
I/flutter (13152):
I/flutter (13152): When the exception was thrown, this was the stack:
I/flutter (13152): #0 List.[] (dart:core/runtime/libgrowable_array.dart:141:60)
I/flutter (13152): #1 SlidableDrawerDelegate.buildStackActions... (package:flutter_slidable/src/widgets/slidable.dart:571:63)
I/flutter (13152): #2 new List.generate (dart:core/list.dart:162:28)
I/flutter (13152): #3 SlidableDrawerDelegate.buildStackActions.. (package:flutter_slidable/src/widgets/slidable.dart:565:32)
I/flutter (13152): #4 AnimatedBuilder.build (package:flutter/src/widgets/transitions.dart:633:12)
I/flutter (13152): #5 _AnimatedState.build (package:flutter/src/widgets/transitions.dart:96:48)
I/flutter (13152): #6 StatefulElement.build (package:flutter/src/widgets/framework.dart:3730:27)
I/flutter (13152): #7 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3642:15)
I/flutter (13152): #8 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
I/flutter (13152): #9 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2242:33)
I/flutter (13152): #10 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:626:20)
I/flutter (13152): #11 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
I/flutter (13152): #12 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (13152): #13 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (13152): #14 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
I/flutter (13152): #15 _invoke (dart:ui/hooks.dart:120:13)
I/flutter (13152): #16 _drawFrame (dart:ui/hooks.dart:109:3)
The text was updated successfully, but these errors were encountered: