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

Carousel crashes with scrolling in list #7

Open
baksha97 opened this issue Mar 10, 2018 · 1 comment
Open

Carousel crashes with scrolling in list #7

baksha97 opened this issue Mar 10, 2018 · 1 comment

Comments

@baksha97
Copy link

VERBOSE-2:dart_error.cc(16)] Unhandled exception: A TabController was used after being disposed. Once you have called dispose() on a TabController, it can no longer be used. #0 ChangeNotifier._debugAssertNotDisposed.<anonymous closure> (package:flutter/src/foundation/change_notifier.dart:61:9) #1 ChangeNotifier._debugAssertNotDisposed (package:flutter/src/foundation/change_notifier.dart:67:6) #2 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:134:12) #3 TabController._changeIndex (package:flutter/src/material/tab_controller.dart:120:7) #4 TabController.animateTo (package:flutter/src/material/tab_controller.dart:163:5) #5 _ImageCarouselState.initState.<anonymous closure> (package:image_carousel/src/image_carousel.dart:39:24) #6 _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382) #7 _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416) #8 _RawReceivePortImpl._handleMessage (dart:i<…>

I'm using the fluttergallery cards example and replacing that image with an image carousel and receiving this crash.

@Aman-US-Punjabi
Copy link

Aman-US-Punjabi commented Mar 13, 2018

ERROR occurs only when using interval value in the parameter. When page go back while automatic image scroll is working.

Carousel is crashing the app with error:

[VERBOSE-2:dart_error.cc(16)] Unhandled exception:
NoSuchMethodError: The method 'stop' was called on null.
Receiver: null
Tried calling: stop(canceled: true)
#0 Object.noSuchMethod (dart:core-patch/dart:core/object_patch.dart:46)
#1 AnimationController.stop (package:flutter/src/animation/animation_controller.dart:499:13)
#2 AnimationController.value= (package:flutter/src/animation/animation_controller.dart:225:5)
#3 TabController._changeIndex (package:flutter/src/material/tab_controller.dart:129:28)
#4 TabController.index= (package:flutter/src/material/tab_controller.dart:146:5)
#5 _ImageCarouselState.initState. (package:image_carousel/src/image_carousel.dart:39:107)
#6 _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382)
#7 _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416)
#8 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants