DefaultBtn constructor

const DefaultBtn({
  1. Key? key,
  2. required String title,
  3. required Function onTap,
  4. bool isBusy = false,
  5. double btnHeight = 40.0,
  6. Color color = AppColor.colorPrimary,
  7. IconData? icon,
  8. Color borderColor = AppColor.newColor,
  9. Color backgroundColor = Colors.transparent,
  10. double borderWidth = 0,
})

Implementation

const DefaultBtn({super.key,required this.title,required this.onTap,this.isBusy = false,this.btnHeight = 40.0, this.color = AppColor.colorPrimary,
  this.icon,this.borderColor = AppColor.newColor,this.backgroundColor = Colors.transparent,
this.borderWidth=0});