MenuItemWidget constructor
const
MenuItemWidget({
- Key? key,
- required AppTheme theme,
- IconData icon = Icons.settings,
- required String text,
- required String description,
- void onPressed()?,
- double leadingIconSize = 24,
- double trailingIconSize = 24,
- double nameFontSize = 16,
- double descriptionFontSize = 14,
- EdgeInsets padding = const EdgeInsets.symmetric(vertical: 8),
- 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),
});