CustomButton constructor

const CustomButton(
  1. String text, {
  2. Key? key,
  3. double padding = 0.0,
  4. double? height = 45,
  5. double? width,
  6. required void onPressed(),
  7. required Color backGroundColor,
  8. Widget? leadingIcon,
  9. TextStyle? textStyle,
  10. ButtonStyle? style,
})

Implementation

const CustomButton(
  this.text, {
  super.key,
  this.padding = 0.0,
  this.height = 45,
  this.width,
  required this.onPressed,
  required this.backGroundColor,
  this.leadingIcon,
  this.textStyle,
  this.style,
});