introduction_screen icon indicating copy to clipboard operation
introduction_screen copied to clipboard

Bug: Problem with infinite AutoScroll property: true and navigation outside of onboarding screens

Open amed901107 opened this issue 1 year ago • 1 comments

when using these library properties the following error occurs when going to the next screen after onboarding allowImplicitScrolling: true, autoScrollDuration: 3000, infiniteAutoScroll: true, After so many tests, the conclusion is reached that it is the property infiniteAutoScroll: true that causes the error E/flutter ( 873): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: 'package:flutter/src/widgets/scroll_controller.dart': Failed assertion: line 105 pos 12: '_positions.isNotEmpty': ScrollController not attached to any scroll views. E/flutter ( 873): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61) E/flutter ( 873): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5) E/flutter ( 873): #2 ScrollController.position (package:flutter/src/widgets/scroll_controller.dart:105:12) E/flutter ( 873): #3 PageController.animateToPage (package:flutter/src/widgets/page_view.dart:193:41) E/flutter ( 873): #4 IntroductionScreenState._movePage (package:introduction_screen/src/introduction_screen.dart:481:31) E/flutter ( 873): E/flutter ( 873): #5 IntroductionScreenState._autoScroll (package:introduction_screen/src/introduction_screen.dart:450:11) E/flutter ( 873): E/flutter ( 873):

Flutter: 3.10.5 OS: Android 12 Phone: Xiaomi Redmi Note 11 Pro MUI Global 13.0.2

amed901107 avatar Jul 04 '23 16:07 amed901107

I got same error when set infiniteAutoScroll: true

docaohuynh avatar Dec 17 '23 07:12 docaohuynh

Version 3.1.13 fix this issue

Pyozer avatar Mar 23 '24 16:03 Pyozer