Open Ludonope opened 3 years ago
Same error occured is there any way to resolve this issue
`The following _CastError was thrown building AnimatedBuilder(animation: PageController#faf09(one client, offset 0.0), dirty, state: _AnimatedState#1745d): Null check operator used on a null value
The relevant error-causing widget was: AnimatedBuilder file:///home/effcode/.pub-cache/hosted/pub.dartlang.org/carousel_slider-2.2.1/lib/carousel_slider.dart:249:16 When the exception was thrown, this was the stack:
======== Exception caught by widgets library ======================================================= Null check operator used on a null value The relevant error-causing widget was: AnimatedBuilder file:///home/effcode/.pub-cache/hosted/pub.dartlang.org/carousel_slider-2.2.1/lib/carousel_slider.dart:249:16 `
@serenader2014 Any news on this? This On the first build the minScrollExtent is null and this throwing the exception
Using the null safe
4.0.0-nullsafety.0
version, I tried to useenlargeCenterPage: true
and got the following error:In
scroll_position.dart
it tries to callminScrollExtent
which isnull
.Settings
enlargeCenterPage: false
removes the exception.Tell me if you need more details :)