KRLabel constructor
const
KRLabel({
- Key? key,
- required String text,
- TextAlign textAlign = TextAlign.center,
- bool isBold = false,
- KRTextSize size = KRTextSize.body,
- EdgeInsets padding = const EdgeInsets.only(top: 10, bottom: 10),
- int backgroundColor = KRTheme.DEFAULT_PRIMARY_COLOR,
- 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);