PrimaryMediumButton constructor

const PrimaryMediumButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback onPressed,
  4. Color backgroundColor = Colors.purple,
  5. Color textColor = Colors.white,
  6. double fontSize = 16.0,
  7. double width = 180.0,
  8. double height = 50.0,
})

Implementation

const PrimaryMediumButton({
  super.key,
  required this.text,
  required this.onPressed,
  this.backgroundColor = Colors.purple, // Warna default
  this.textColor = Colors.white,       // Warna default
  this.fontSize = 16.0,                // Font size default
  this.width = 180.0,                  // Lebar default
  this.height = 50.0,                  // Tinggi default
});