CardSettings.sectioned constructor

CardSettings.sectioned({
  1. Key? key,
  2. TextAlign? labelAlign,
  3. double? labelWidth,
  4. double? labelPadding,
  5. String? labelSuffix,
  6. TextAlign contentAlign = TextAlign.left,
  7. EdgeInsetsGeometry padding = const EdgeInsets.all(0.0),
  8. EdgeInsetsGeometry margin = const EdgeInsets.fromLTRB(8, 8, 8, 0.0),
  9. double? cardElevation,
  10. List<CardSettingsSection> children = const <CardSettingsSection>[],
  11. bool showMaterialonIOS = false,
  12. bool shrinkWrap = true,
  13. bool cardless = false,
  14. Divider? divider,
  15. bool scrollable = true,
  16. EdgeInsetsGeometry? fieldPadding,
})

constructor that wraps each section in it's own card

Implementation

CardSettings.sectioned({
  Key? key,
  this.labelAlign,
  this.labelWidth,
  this.labelPadding,
  this.labelSuffix,
  this.contentAlign = TextAlign.left,
  this.padding = const EdgeInsets.all(0.0),
  this.margin = const EdgeInsets.fromLTRB(8, 8, 8, 0.0),
  this.cardElevation,
  List<CardSettingsSection> children = const <CardSettingsSection>[],
  this.showMaterialonIOS = false,
  this.shrinkWrap = true,
  this.cardless = false,
  this.divider,
  this.scrollable = true,
  this.fieldPadding,
}) : super(
        key: key,
        child: _CardSettingsContent(
          children: children,
          showMaterialonIOS: showMaterialonIOS,
          cardElevation: cardElevation,
          padding: padding,
          margin: margin,
          shrinkWrap: shrinkWrap,
          sectioned: true,
          cardless: cardless,
          scrollable: scrollable,
        ),
      );