PrimaryButton constructor

const PrimaryButton({
  1. Key? key,
  2. String text = "",
  3. required VoidCallback onPressed,
  4. double fontSize = 14,
  5. Color textColor = const Color(0xff222222),
  6. FontWeight? fontWeight,
  7. Color disableTextColor = const Color(0x80222222),
  8. double? width,
  9. double? height = 38,
  10. Color backgroundColor = const Color(0xffEEEBD7),
  11. Color disableBackgroundColor = const Color(0xffEEEBD7),
  12. Color? overlayColor,
  13. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(30)),
  14. Widget? child,
  15. Color borderColor = const Color(0xffEEEBD7),
  16. double borderWidth = 1,
  17. EdgeInsetsGeometry margin = EdgeInsets.zero,
  18. bool visible = true,
  19. EdgeInsetsGeometry padding = EdgeInsets.zero,
  20. bool enable = true,
  21. dynamic buildCall(
    1. PrimaryButtonController controller
    )?,
  22. AlignmentGeometry? alignment,
})

Implementation

const PrimaryButton({
  Key? key,
  this.text = "",
  required this.onPressed,
  this.fontSize = 14,
  this.textColor = const Color(0xff222222),
  this.fontWeight,
  this.disableTextColor = const Color(0x80222222),
  this.width,
  this.height = 38,
  this.backgroundColor = const Color(0xffEEEBD7),
  this.disableBackgroundColor = const Color(0xffEEEBD7),
  this.overlayColor,
  this.borderRadius = const BorderRadius.all(Radius.circular(30)),
  this.child,
  this.borderColor = const Color(0xffEEEBD7),
  this.borderWidth = 1,
  this.margin = EdgeInsets.zero,
  this.visible = true,
  this.padding = EdgeInsets.zero,
  this.enable = true,
  this.buildCall,
  this.alignment,
}) : super(key: key);