CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String buttonText,
  3. Color buttonColor = AppColors.themeColor,
  4. required void onPress()?,
  5. EdgeInsets padding = const EdgeInsets.all(10),
  6. double? width,
  7. double? cornerRadius,
  8. double? height,
})

Implementation

const CustomButton(
    {super.key,
    required this.buttonText,
    this.buttonColor = AppColors.themeColor,
    required this.onPress,
    this.padding = const EdgeInsets.all(10),
    this.width,
    this.cornerRadius,
    this.height});