RoundedButton constructor

const RoundedButton({
  1. Key? key,
  2. required String btnTitle,
  3. required Color bgColor,
  4. required Color textColor,
  5. double? width,
  6. double fontSize = 16.0,
  7. double padding = 13.0,
  8. required Function? onPress,
  9. FontWeight? fontWeight = FontWeight.w900,
  10. double? height = 53,
  11. String? semanticsLabel,
})

Implementation

const RoundedButton(
    {super.key,
    required this.btnTitle,
    required this.bgColor,
    required this.textColor,
    this.width,
    this.fontSize = 16.0,
    this.padding = 13.0,
    required this.onPress,
    this.fontWeight = FontWeight.w900,
    this.height = 53,
    this.semanticsLabel});