CustomStyledButton constructor

const CustomStyledButton({
  1. Key? key,
  2. required String label,
  3. required VoidCallback? onPressed,
  4. ButtonType type = ButtonType.primary,
  5. ButtonState state = ButtonState.normal,
  6. ButtonSize size = ButtonSize.medium,
  7. double? height,
  8. EdgeInsets? padding,
  9. double? width,
})

Implementation

const CustomStyledButton({
  Key? key,
  required this.label,
  required this.onPressed,
  this.type = ButtonType.primary,
  this.state = ButtonState.normal,
  this.size = ButtonSize.medium,
  this.height,
  this.padding,
  this.width,
}) : super(key: key);