Fluid constructor

Fluid(
  1. {Key? key,
  2. double spacing = 0.0,
  3. double lineSpacing = 0.0,
  4. TextDirection? textDirection,
  5. List<Fluidable> children = const <Fluidable>[]}
)

Fluid is like a Wrap with a fluid layout algorithm.

Like a normal Wrap widget with direction = Axis.horizontal, Fluid displays its children in rows, but resizes it to fit fluid and minWidth.

It will leave spacing horizontal space between each child, and it will leave lineSpacing vertical space between each line.

Implementation

Fluid({
  Key? key,
  this.spacing = 0.0,
  this.lineSpacing = 0.0,
  this.textDirection,
  List<Fluidable> children = const <Fluidable>[],
}) : super(key: key, children: children);