FullRow constructor

FullRow({
  1. required String widths,
  2. required List<Widget> children,
  3. MainAxisAlignment mainAccessAlignment = MainAxisAlignment.center,
  4. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
})

FullRow is an extension to Row, set widths by a string with space separated values,

allowed width configs are:

  • value, such as (100, 200, ...)

  • ratios (flexes) that should fill the entire remaining space with flex as the ratio such as ("1*", ...)

  • 'auto' which will leave the widget's width as is,

example: "200 auto 1* "

Implementation

FullRow({
  required String widths,
  required List<Widget> children,
  MainAxisAlignment mainAccessAlignment = MainAxisAlignment.center,
  CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
}) : super(
        isRow: true,
        dims: widths,
        children: children,
        mainAccessAlignment: mainAccessAlignment,
        crossAxisAlignment: crossAxisAlignment,
      );