CustomButton constructor

const CustomButton(
  1. String text, {
  2. Key? key,
  3. dynamic required,
  4. double padding = 0.0,
  5. double height = 45,
  6. double width = 350,
  7. Color foregroundcolor = Colors.white,
  8. TextStyle textstyle = const TextStyle(fontSize: 18),
  9. required void onPressed(),
  10. required Color backgroundcolor,
})

Implementation

const CustomButton(this.text,
    {Key? key,
    required,
    this.padding = 0.0,
    this.height = 45,
    this.width = 350,
    this.foregroundcolor = Colors.white,
    this.textstyle = const TextStyle(fontSize: 18),
    required this.onPressed,
    required this.backgroundcolor})
    : super(key: key);