FlexiButton constructor

const FlexiButton({
  1. Key? key,
  2. EdgeInsets? contentPadding,
  3. EdgeInsets? buttonPadding = EdgeInsets.zero,
  4. bool? isFlexible = false,
  5. Widget? icon,
  6. required Widget? child,
  7. Color? buttonColor,
  8. Color? iconColor,
  9. Color? textColor,
  10. BorderRadiusGeometry? borderRadius,
  11. BorderSide? side = BorderSide.none,
  12. double? elevation = 2,
  13. double? iconSize = 10,
  14. TextStyle? style,
  15. required dynamic onPressed()?,
})

Implementation

const FlexiButton(
     {super.key,
     this.contentPadding,
     this.buttonPadding = EdgeInsets.zero,
     this.isFlexible = false,
     this.icon,
     required this.child,
     this.buttonColor,
     this.iconColor,
     this.textColor,
     this.borderRadius,
     this.side = BorderSide.none,
     this.elevation = 2,
     this.iconSize = 10,
     this.style,
     required this.onPressed});