PrimarySmallButton constructor

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

Implementation

const PrimarySmallButton({
  super.key,
  required this.text,
  required this.onPressed,
  this.backgroundColor = Colors.purple, // Warna default
  this.textColor = Colors.white,       // Warna default
  this.fontSize = 14.0,                // Font size default
  this.width = 140.0,                  // Lebar default
  this.height = 40.0,                  // Tinggi default
});