FutureButton constructor

const FutureButton({
  1. Key? key,
  2. String? text,
  3. double? textSize = 16,
  4. FontWeight? textStyle,
  5. EdgeInsetsGeometry? textPadding,
  6. double? width,
  7. double? height,
  8. EdgeInsetsGeometry? margin,
  9. EdgeInsetsGeometry? padding,
  10. double borderRadius = 0,
  11. bool enabled = true,
  12. dynamic onClick()?,
  13. Future onExecute()?,
  14. IconData? icon,
  15. bool expended = false,
  16. double iconSize = 18,
  17. EdgeInsetsGeometry? iconPadding,
  18. EdgeInsetsGeometry? indicatorPadding,
  19. FBIconAlignment iconAlignment = FBIconAlignment.end,
  20. bool visibleIndicator = true,
  21. bool? expendedState(
    1. FBState state
    )?,
  22. String? textState(
    1. FBState state
    )?,
  23. IconData? iconState(
    1. FBState state
    )?,
  24. Color? colorState(
    1. FBState state
    )?,
  25. Color? backgroundState(
    1. FBState state
    )?,
})

Implementation

const FutureButton({
  super.key,
  this.text,
  this.textSize = 16,
  this.textStyle,
  this.textPadding,
  this.width,
  this.height,
  this.margin,
  this.padding,
  this.borderRadius = 0,
  this.enabled = true,
  this.onClick,
  this.onExecute,
  this.icon,
  this.expended = false,
  this.iconSize = 18,
  this.iconPadding,
  this.indicatorPadding,
  this.iconAlignment = FBIconAlignment.end,
  this.visibleIndicator = true,
  this.expendedState,
  this.textState,
  this.iconState,
  this.colorState,
  this.backgroundState,
});