DSSButton constructor

const DSSButton({
  1. Key? key,
  2. required String label,
  3. VoidCallback? onPressed,
  4. DSSButtonSize size = DSSButtonSize.medium,
  5. DSSButtonStyle styleType = DSSButtonStyle.primaryMain,
  6. bool disabled = false,
  7. Icon? beforeIcon,
  8. Icon? afterIcon,
  9. Size? fixedSize,
})

Creates a custom Septeo-styled ElevatedButton.

label must not be null. By default, DSSButtonSize.medium is used for size, and DSSButtonStyle.primaryMain is used for styleType.

If disabled is true, onPressed will be ignored.

Implementation

const DSSButton({
  super.key,
  required this.label,
  this.onPressed,
  this.size = DSSButtonSize.medium,
  this.styleType = DSSButtonStyle.primaryMain,
  this.disabled = false,
  this.beforeIcon,
  this.afterIcon,
  this.fixedSize,
});