appText function

Widget appText(
  1. String word,
  2. double z,
  3. FontWeight w, {
  4. Color col = appDarkText,
  5. TextAlign align = TextAlign.left,
  6. int maxLines = 5,
  7. int shadow = 0,
})

Implementation

Widget appText(String word, double z, FontWeight w,
    {Color col = appDarkText, TextAlign align = TextAlign.left, int maxLines = 5, int shadow = 0}) {
  return Text(
    word,
    softWrap: true,
    maxLines: maxLines,
    overflow: TextOverflow.ellipsis,
    textAlign: align,
    style: TextStyle(
      color: col,
      fontFamily: 'Open Sans',
      fontSize: z,
      fontWeight: w,
      shadows: shadow > 0 ? elevation(Colors.black38, shadow) : [],
    ),
  );
}