androidx.compose.material3.adaptive.layout

ReflowSince 1.2

Class · from org.jetbrains.compose.material3.adaptive:adaptive-layout:1.3.0

No hand-written docs yet.

Indicate the associated pane should be reflowed when certain conditions are met. With the default calculation functions calculateThreePaneScaffoldValue we provide, when it's a single pane layout, a pane with a reflow strategy will be adapted to either: 1. PaneAdaptedValue.Reflowed, when either the reflowed pane or the target pane it's supposed to be reflowed to is the current destination; or 2. PaneAdaptedValue.Hidden otherwise.

class Reflow(
    reflowUnder: PaneScaffoldRole,
) : AdaptStrategy

Is a

How to get one

Create it

Library docs

Indicate the associated pane should be reflowed when certain conditions are met. With the default calculation functions calculateThreePaneScaffoldValue we provide, when it's a single pane layout, a pane with a reflow strategy will be adapted to either:

  1. PaneAdaptedValue.Reflowed, when either the reflowed pane or the target pane it's supposed to be reflowed to is the current destination; or
  2. PaneAdaptedValue.Hidden otherwise.

Note that if the current layout can have more than one horizontal partition, the pane will never be reflowed.

To provide custom adapt strategies, see the following sample: