Open edocabhi opened 4 years ago
On a closer analysis, it seems like an uninitialized variable causing the exception. Please correct if I am wrong.
I will have a look. Thanks for your investigation. Appresiated :D
i think it's happened when the parameter isDragDirectionUp in library class is null. and this parameter initialized only in this part of code
void _onVerticalDragUpdate(data) {
_setNativeSmoothness();
if (((widget.controller.height - data.delta.dy) > widget.minHeight) &&
((widget.controller.height - data.delta.dy) < widget.maxHeight)) {
isDragDirectionUp = data.delta.dy <= 0;
widget.controller.height -= data.delta.dy;
}
}
in my case it was maxHeight == 0 . so isDragDirectionUp could not be initialized.
@dbenitez-bcn Any updates?
@dbenitez-bcn any updates ?
I get this exception in the debug console when dragging the bottom_sheet. However, the sheet seems to be working fine. Any leads to fixing this would be appreciated. Thanks
How my bottom sheet looks
Exception in console