ModulaIconButton constructor
const
ModulaIconButton({
- required IconData icon,
- Key? key,
- VoidCallback? onPressed,
- double size = 24.0,
- Color? iconColor,
- Color? backgroundColor,
- Color? splashColor,
- double borderRadius = 8.0,
- EdgeInsets padding = const EdgeInsets.all(8),
- bool isEnabled = true,
- Duration animationDuration = const Duration(milliseconds: 200),
- double elevation = 0.0,
Implementation
const ModulaIconButton({
required this.icon,
super.key,
this.onPressed,
this.size = 24.0,
this.iconColor,
this.backgroundColor,
this.splashColor,
this.borderRadius = 8.0,
this.padding = const EdgeInsets.all(8),
this.isEnabled = true,
this.animationDuration = const Duration(milliseconds: 200),
this.elevation = 0.0,
});