DefaultButton constructor

const DefaultButton({
  1. Key? key,
  2. Color? btnColor,
  3. double height = 48,
  4. double elevation = 4,
  5. bool isEnabled = true,
  6. bool isUpperCase = false,
  7. EdgeInsetsGeometry margin = const EdgeInsets.only(top: 12),
  8. OutlinedBorder shape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(24))),
  9. TextStyle? btnTextStyle = const TextStyle(fontSize: 18, letterSpacing: 0.27, color: Colors.white, fontWeight: FontWeight.w700),
  10. required String? text,
  11. required VoidCallback? onPressed,
})

Implementation

const DefaultButton({
  Key? key,
  this.btnColor,
  this.height = 48,
  this.elevation = 4,
  this.isEnabled = true,
  this.isUpperCase = false,
  this.margin = const EdgeInsets.only(top: 12),
  this.shape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(24))),
  this.btnTextStyle = const TextStyle(
    fontSize: 18,
    letterSpacing: 0.27,
    color: Colors.white,
    fontWeight: FontWeight.w700,
  ),
  required this.text,
  required this.onPressed,
}) : super(key: key);