-
Notifications
You must be signed in to change notification settings - Fork 13
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
Null check operator used on a null value #3
Comments
@DenisBarzanov flutter_swiper:
git:
url: [email protected]:Arkangel12/flutter_swiper.git
ref: master |
Well, i have this one too: ======== Exception caught by widgets library =======================================================
The following assertion was thrown building Swiper(dirty, state: _SwiperState#d8d2c):
'package:flutter_card_swipper/src/swiper.dart': Failed assertion: line 704 pos 16: 'itemWidth != null && itemHeight != null': is not true.
The relevant error-causing widget was:
Swiper file:///home/luisalaguna/Projects/cancer/thesis_cancer/lib/features/content/presentation/widgets/post.dart:28:15
When the exception was thrown, this was the stack:
#2 new _TinderSwiper (package:flutter_card_swipper/src/swiper.dart:704:16)
#3 _SwiperState._buildSwiper (package:flutter_card_swipper/src/swiper.dart:526:14)
#4 _SwiperState.build (package:flutter_card_swipper/src/swiper.dart:587:27)
#5 StatefulElement.build (package:flutter/src/widgets/framework.dart:4691:27)
#6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4574:15)
...
==================================================================================================== |
It is not logical to have and assertion if we are working with null safety, I think. |
I'm sorry guys I've been too busy in my work I haven't been able to evolve this package, for now I see it difficult, can you send me a pull request, I'll be happy to review it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get this error sometimes
This is the offending function, I suppose
_swiperWidth
isnull
:flutter doctor -v
The text was updated successfully, but these errors were encountered: