Section constructor
const
Section({
- Key? key,
- required String title,
- String? subtitle,
- String? actionLabel,
- VoidCallback? onAction,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: AppSpacing.lg),
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- bool showDivider = false,
Implementation
const Section({
super.key,
required this.title,
this.subtitle,
this.actionLabel,
this.onAction,
this.padding = const EdgeInsets.symmetric(horizontal: AppSpacing.lg),
this.titleStyle,
this.subtitleStyle,
this.showDivider = false,
});