Section constructor
Section({
- Key? key,
- Widget? header,
- required List<
Widget> children, - CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
- EdgeInsetsGeometry? margin,
- double? elevation,
- Color? dividerColor,
- bool divide = false,
- ShapeBorder? shape = const RoundedRectangleBorder(side: BorderSide(color: Colors.black26, width: 1), borderRadius: BorderRadius.zero),
Implementation
Section({
Key? key,
this.header,
required this.children,
this.footer,
this.crossAxisAlignment = CrossAxisAlignment.start,
EdgeInsetsGeometry? margin,
this.elevation,
this.dividerColor,
this.divide = false,
this.shape = const RoundedRectangleBorder(
side: BorderSide(color: Colors.black26, width: 1),
borderRadius: BorderRadius.zero,
),
}) : super(key: key) {
this.margin = margin ?? EdgeInsets.fromLTRB(0, 0, 0, DEFAULT_CONTENT_PADDING);
// this.contentPadding = headerPadding ?? EdgeInsets.fromLTRB(0, 0, 0, DEFAULT_CONTENT_PADDING);
}