Skip to content

Non-normalized BoxConstraints when setting designWidth to 400 on specific devices #21

Description

@lvyandev

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions