LokotroPrimaryButton constructor

const LokotroPrimaryButton({
  1. Key? key,
  2. required String text,
  3. VoidCallback? onPressed,
  4. bool isLoading = false,
  5. bool isEnabled = true,
  6. IconData? icon,
  7. double? width,
  8. double? height = 56,
  9. EdgeInsetsGeometry? padding,
  10. EdgeInsetsGeometry? margin,
  11. BorderRadius? borderRadius,
  12. List<Color>? gradientColors,
  13. TextStyle? textStyle,
  14. Color? backgroundColor,
  15. Color? disabledColor,
  16. List<BoxShadow>? boxShadow,
  17. Duration animationDuration = const Duration(milliseconds: 200),
})

Implementation

const LokotroPrimaryButton({
  super.key,
  required this.text,
  this.onPressed,
  this.isLoading = false,
  this.isEnabled = true,
  this.icon,
  this.width,
  this.height = 56,
  this.padding,
  this.margin,
  this.borderRadius,
  this.gradientColors,
  this.textStyle,
  this.backgroundColor,
  this.disabledColor,
  this.boxShadow,
  this.animationDuration = const Duration(milliseconds: 200),
});