NBText constructor

const NBText({
  1. String? fontFamily,
  2. String? fontSize,
  3. String? fontStyle,
  4. String? fontWeight,
  5. String? letterSpacing,
  6. String? lineHeight,
  7. String? textAlign,
  8. String? textDecoration,
  9. String? textTransform,
  10. Key? key,
  11. required String text,
  12. String? color,
})

The NBText widget displays a string of text with single style. The string might break across multiple lines or might all be displayed on the same line depending on the layout constraints.

Implementation

const NBText({
  this.fontFamily,
  this.fontSize,
  this.fontStyle,
  this.fontWeight,
  this.letterSpacing,
  this.lineHeight,
  this.textAlign,
  this.textDecoration,
  this.textTransform,
  super.key,
  required this.text,
  this.color,
});