When using the screen adaptation library with designWidth: 375, the layout works as expected. However, setting designWidth: 400 causes a layout constraint error on specific devices (e.g., [SM G9550]). The following error appears in the logs:
I/flutter ( 815): BoxConstraints has non-normalized height constraints.
I/flutter ( 815): These invalid constraints were provided to RenderTransform's layout() function by:
I/flutter ( 815): RenderConstrainedOverflowBox.performLayout (package:flutter/src/rendering/shifted_box.dart:718:14)
I/flutter ( 815): The offending constraints: BoxConstraints(384.0<=w<=400.0, 775.6<=h<=775.6; NOT NORMALIZED)
Environment:
Library Version: [2.3.0]
Flutter Version: [3.29.1]
When using the screen adaptation library with designWidth: 375, the layout works as expected. However, setting designWidth: 400 causes a layout constraint error on specific devices (e.g., [SM G9550]). The following error appears in the logs:
Environment:
Library Version: [2.3.0]
Flutter Version: [3.29.1]