Closed AlexV525 closed 5 years ago
As cacheExtent provide null setter to make all pages cached, the code didn't handle null properly, as the code goes: https://github.com/fluttercandies/extended_tabs/blob/2be7c5212b14222daf3ab3af72b132287c916b82/lib/src/page_view.dart#L222 null value will failed at here and the code will never goes to else. But after added widget.cacheExtent != null, it will goes wrong with Infinity or NaN toInt with the value set to double.infinity, so it needs some further handle.
cacheExtent
null
else
widget.cacheExtent != null
Infinity or NaN toInt
double.infinity
As
cacheExtent
providenull
setter to make all pages cached, the code didn't handlenull
properly, as the code goes: https://github.com/fluttercandies/extended_tabs/blob/2be7c5212b14222daf3ab3af72b132287c916b82/lib/src/page_view.dart#L222null
value will failed at here and the code will never goes toelse
. But after addedwidget.cacheExtent != null
, it will goes wrong withInfinity or NaN toInt
with the value set todouble.infinity
, so it needs some further handle.