Sitelet https://github.com/flutter/flutter/issues/140
Skip to content

BoxConstraints can be non-normalised (minWidth > maxWidth, for instance) #140

Description

@FlutterIssues

Issue by Hixie
Monday Aug 24, 2015 at 20:45 GMT
Originally opened as https://github.com/flutter/engine/issues/778


We should figure out what to do about that. For example:

  • have layout() assert that the constraints are normalised
  • have BoxConstraints.normalize() for when you want to fix them up
  • have the non-const BoxConstraints constructors enforce normalisation

Activity

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

Metadata

Metadata

Assignees

Labels

frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions