Open volgin opened 3 years ago
I am also facing the same issue.
The following _CastError was thrown building AnimatedBuilder(animation: PageController#a54d1(one client, offset 3600000.0), dirty, state: _AnimatedState#c1ea5): Null check operator used on a null value
The relevant error-causing widget was: CarouselSlider file:///D:/external%20projects/MVSCCs/MVSCCS_APP/lib/src/widgets/HomeSliderWidget.dart:38:15 When the exception was thrown, this was the stack:
I'm also facing the same issue... The following _CastError was thrown building AnimatedBuilder(animation: PageController#c7a83(one client, offset 1803636.4), dirty, state: _AnimatedState#cfddc): Null check operator used on a null value
My error was gone by using the updated package carousel_slider: ^2.3.1. May be by updating the package will solve your problem.
I am using the latest version, and still see this error. It does not happen often, but it still happens.
I am also facing this issue. Please provide a solution
same here, I am also facing this issue
so am I. haha
Run the following commands in terminal flutter channel stable flutter upgrade
This is a combination of two packages, so I am not certain this fits purely flutter_carousel. But I encountered the error in it's code, so pretty certain.
The problem seems to be here: (_state is null, but forced to be not)
having same problem here. Any solution anyone?
Have tried these links below, but none of them helped much: https://stackoverflow.com/questions/64822800/null-check-operator-used-on-a-null-value-carousel-flutter https://stackoverflow.com/questions/64278595/null-check-operator-used-on-a-null-value
EDIT: Updating it to the latest version somehow solved it.
This worked for me
So I edited scrollposition.dart package
from line 133 @override //double get minScrollExtent => _minScrollExtent!; // double? _minScrollExtent; double get minScrollExtent { if (_minScrollExtent == null) { _minScrollExtent = 0.0; } return double.parse(_minScrollExtent.toString()); }
double? _minScrollExtent;
@override // double get maxScrollExtent => _maxScrollExtent!; // double? _maxScrollExtent; double get maxScrollExtent { if (_maxScrollExtent == null) { _maxScrollExtent = 0.0; } return double.parse(_maxScrollExtent.toString()); }
double? _maxScrollExtent;
also facing the same issue
the same issue
I am facing the same issue here and I am using the latest version is there any update ?
This is from an automated error report from one of our users. I don't know what actions led to this exception.
I hope this is enough information to figure out what causes it.