KRLabel constructor

const KRLabel({
  1. Key? key,
  2. required String text,
  3. TextAlign textAlign = TextAlign.center,
  4. bool isBold = false,
  5. KRTextSize size = KRTextSize.body,
  6. EdgeInsets padding = const EdgeInsets.only(top: 10, bottom: 10),
  7. int backgroundColor = KRTheme.DEFAULT_PRIMARY_COLOR,
  8. int textColor = KRTheme.DEFAULT_DARK_COLOR,
})

Implementation

const KRLabel({
  Key? key,
  required this.text,
  this.textAlign = TextAlign.center,
  this.isBold = false,
  this.size = KRTextSize.body,
  this.padding = const EdgeInsets.only(top:10, bottom : 10),
  this.backgroundColor = KRTheme.DEFAULT_PRIMARY_COLOR,
  this.textColor = KRTheme.DEFAULT_DARK_COLOR,
}) : super(key: key);