CustomFilledButton constructor

const CustomFilledButton({
  1. WidgetStateProperty<EdgeInsetsGeometry?>? padding,
  2. Key? key,
  3. ButtonStyle? buttonStyle,
  4. VoidCallback? onPressed,
  5. String? buttonText,
  6. WidgetStateProperty<Color?>? buttonColor,
  7. Widget? buttonIcon,
  8. TextStyle? textstyle,
  9. WidgetStateProperty<OutlinedBorder?>? buttonShape,
  10. bool isCircularProgressNeeded = false,
  11. double? iconTextGap,
  12. bool? isLoading,
})

Implementation

const CustomFilledButton(
    {this.padding,
    super.key,
    this.buttonStyle,
    this.onPressed,
    this.buttonText,
    this.buttonColor,
    this.buttonIcon,
    this.textstyle,
    this.buttonShape,
    this.isCircularProgressNeeded = false,
    this.iconTextGap,
    this.isLoading})
    : assert(buttonIcon != null || buttonText != null,
          'At least one value (ButtonIcon or buttonText) must be provided.');