enableSkipOnDistressedSize property

bool enableSkipOnDistressedSize
getter/setter pairinherited

If size constraints imposed by parent are too tight, some internal calculations of sizes may lead to negative values, making painting of this container not possible.

Setting the enableSkipOnDistressedSize true helps to solve such situation. It causes the container not be painted (skipped during layout) when space is constrained too much (not enough space to reasonably paint the container contents). Note that setting this to true may result in surprizing behavior, instead of exceptions.

Note that concrete implementations must add appropriate support for collapse to work.

Unlike skipByParent, which directs the parent to ignore this container, enableSkipOnDistressedSize is intended to be checked in code for some invalid conditions, and if they are reached, bypass painting the container.

Implementation

bool enableSkipOnDistressedSize = true;