responsive_widgets
responsive_widgets copied to clipboard
BoxConstraints NaN issue
I am getting NaN error on app start if the device is locked while installing the build via adb.
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following assertion was thrown building RawMaterialButton(dirty, state:
_RawMaterialButtonState#77fbf):
BoxConstraints has NaN values in maxWidth and maxHeight.
The offending constraints were:
BoxConstraints(0.0<=w<=NaN, 0.0<=h<=NaN; NOT NORMALIZED)
The relevant error-causing widget was:
RawMaterialButton
file:///home/faiyyaz/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/responsive_widgets-2.0.1/lib/widgets/raised_button_responsive_widget.dart:165:12
and this is how i see the UI on mobile

Hi @LucazzP Sorry got the issue it was the wrong usage of the plugin. I read the plugin doc and it is working fine now
The NaN issue is still coming for raisedbuttonresponsive maxheight and maxwidth