MUIPrimaryBlockButton constructor

const MUIPrimaryBlockButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback onPressed,
  4. Color bgColor = Colors.black,
  5. Color textColor = Colors.white,
  6. double borderRadius = 10,
  7. bool hapticsEnabled = false,
  8. int animationDuration = 250,
  9. double widthFactorPressed = 0.95,
  10. double heightFactor = 0.05,
  11. IconData? leadingIcon,
  12. IconData? actionIcon,
  13. Color iconColor = Colors.white,
  14. double widthFactor = 0.98,
  15. List<BoxShadow>? boxShadows,
})

Implementation

const MUIPrimaryBlockButton(
    {super.key,
    required this.text,
    required this.onPressed,
    this.bgColor = Colors.black,
    this.textColor = Colors.white,
    this.borderRadius = 10,
    this.hapticsEnabled = false,
    this.animationDuration = 250,
    this.widthFactorPressed = 0.95,
    this.heightFactor = 0.05,
    this.leadingIcon,
    this.actionIcon,
    this.iconColor = Colors.white,
    this.widthFactor = 0.98,
    this.boxShadows});