MenuItemWidget constructor

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

Implementation

const MenuItemWidget({
  super.key,
  required this.theme,
  this.margin = const EdgeInsets.symmetric(vertical: 2),
  this.enable = true,
  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, horizontal: 8),
  this.spacing = const SizedBox(width: 12.0),
});