DSSButton constructor
const
DSSButton({
- Key? key,
- required String label,
- VoidCallback? onPressed,
- DSSButtonSize size = DSSButtonSize.medium,
- DSSButtonStyle styleType = DSSButtonStyle.primaryMain,
- bool disabled = false,
- Icon? beforeIcon,
- Icon? afterIcon,
- 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,
});