MenuItemWidget constructor

const MenuItemWidget({
  1. Key? key,
  2. required AppTheme theme,
  3. IconData icon = Icons.settings,
  4. required String text,
  5. required String description,
  6. void onPressed()?,
  7. double leadingIconSize = 24,
  8. double trailingIconSize = 24,
  9. double nameFontSize = 16,
  10. double descriptionFontSize = 14,
  11. EdgeInsets padding = const EdgeInsets.symmetric(vertical: 8),
  12. SizedBox spacing = const SizedBox(width: 12.0),
})

Implementation

const MenuItemWidget({
  super.key,
  required this.theme,
  this.icon = Icons.settings,
  required this.text,
  required this.description,
  this.onPressed,
  this.leadingIconSize = 24,
  this.trailingIconSize = 24,
  this.nameFontSize = 16,
  this.descriptionFontSize = 14,
  this.padding = const EdgeInsets.symmetric(vertical: 8),
  this.spacing = const SizedBox(width: 12.0),
});