ModulaTextButton constructor
const
ModulaTextButton({
- required String label,
- Key? key,
- VoidCallback? onPressed,
- TextStyle? textStyle,
- bool isEnabled = true,
- Color? textColor,
- Color? disabledTextColor,
- Duration animationDuration = const Duration(milliseconds: 200),
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
- TextAlign textAlign = TextAlign.center,
Implementation
const ModulaTextButton({
required this.label,
super.key,
this.onPressed,
this.textStyle,
this.isEnabled = true,
this.textColor,
this.disabledTextColor,
this.animationDuration = const Duration(milliseconds: 200),
this.padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
this.textAlign = TextAlign.center,
});