FormRowLayout.expanded constructor

FormRowLayout.expanded(
  1. List<FormItem> items, {
  2. bool isActive = true,
  3. EdgeInsets? margin,
  4. FormItemWrapper? wrapper,
  5. EdgeInsets? fieldMargin,
  6. Widget? separator,
})

Implementation

FormRowLayout.expanded(
  this.items, {
  bool isActive = true,
  EdgeInsets? margin,
  FormItemWrapper? wrapper,
  EdgeInsets? fieldMargin,
  this.separator,
})  : mainAxisSize = MainAxisSize.max,
      super(
        isActive: isActive,
        margin: margin,
        wrapper: (item, child) {
          if (wrapper != null) {
            return Expanded(child: wrapper(item, child));
          }
          return Expanded(child: child);
        },
        fieldMargin: fieldMargin,
      );