Skip to content

ResponsiveGrid Padding Exceeds Width Assertion Error #46

@rayliverified

Description

@rayliverified

TODO: Investigate whether a hard assertion and error is necessary for when padding exceeds grid view width.
Perhaps a safer way is to log a warning and not throw an error.
responsive_grid.dart Line 81

      // The maximum width available for items.
      double crossAxisExtent = constraints.maxWidth - paddingHolder.horizontal;
      assert(crossAxisExtent > 0,
          '$paddingHolder exceeds layout width (${constraints.maxWidth})');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions