Section constructor

const Section({
  1. Key? key,
  2. required String title,
  3. String? subtitle,
  4. String? actionLabel,
  5. VoidCallback? onAction,
  6. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: AppSpacing.lg),
  7. TextStyle? titleStyle,
  8. TextStyle? subtitleStyle,
  9. 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,
});