KRButton constructor
const
KRButton({
- Key? key,
- required String text,
- required VoidCallback onPressed,
- bool isFull = false,
- bool isOutline = false,
- bool isBold = false,
- bool isDisabled = false,
- KRButtonSize size = KRButtonSize.large,
- int backgroundColor = KRTheme.DEFAULT_PRIMARY_COLOR,
- int textColor = KRTheme.DEFAULT_LIGHT_COLOR,
Implementation
const KRButton({
Key? key,
required this.text,
required this.onPressed,
this.isFull = false,
this.isOutline = false,
this.isBold = false,
this.isDisabled = false,
this.size = KRButtonSize.large,
this.backgroundColor = KRTheme.DEFAULT_PRIMARY_COLOR,
this.textColor = KRTheme.DEFAULT_LIGHT_COLOR,
}) : super(key: key);