KRButton constructor

const KRButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback onPressed,
  4. bool isFull = false,
  5. bool isOutline = false,
  6. bool isBold = false,
  7. bool isDisabled = false,
  8. KRButtonSize size = KRButtonSize.large,
  9. int backgroundColor = KRTheme.DEFAULT_PRIMARY_COLOR,
  10. 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);