ModulaTextButton constructor

const ModulaTextButton({
  1. required String label,
  2. Key? key,
  3. VoidCallback? onPressed,
  4. TextStyle? textStyle,
  5. bool isEnabled = true,
  6. Color? textColor,
  7. Color? disabledTextColor,
  8. Duration animationDuration = const Duration(milliseconds: 200),
  9. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
  10. 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,
});