AppText constructor

const AppText({
  1. Key? key,
  2. required String title,
  3. Color? color,
  4. bool isGoogleFont = false,
  5. double? fontSize = 14,
  6. String? fontFamily,
  7. TextAlign? textAlign = TextAlign.center,
  8. TextDecoration? textDecoration,
  9. FontWeight? fontWeight = FontWeight.w400,
  10. int maxLines = 1,
  11. double? height,
})

Implementation

const AppText(
    {super.key,
      required this.title,
      this.color,
      this.isGoogleFont = false,
      this.fontSize = 14,
      this.fontFamily,
      this.textAlign = TextAlign.center,
      this.textDecoration,
      this.fontWeight = FontWeight.w400, this.maxLines = 1, this.height });