getCustomTextWithoutMaxLine function

Widget getCustomTextWithoutMaxLine(
  1. String text, {
  2. Color? color,
  3. TextAlign align = TextAlign.center,
  4. FontWeight weight = FontWeight.w400,
  5. double? size,
  6. double? txtHeight,
})

Implementation

Widget getCustomTextWithoutMaxLine(
  String text, {
  Color? color,
  TextAlign align = TextAlign.center,
  FontWeight weight = FontWeight.w400,
  double? size,
  double? txtHeight,
}) {
  return Text(
    text,
    style: TextStyle(
      decoration: TextDecoration.none,
      fontSize: size ?? MahasDimensions.getInputTextSize(),
      fontStyle: FontStyle.normal,
      color: color ?? MahasColors.greyColor,
      fontFamily: MahasHelper.assetImagePath,
      height: txtHeight ??
          MahasDimensions.getHeightPercentSize(
                  MahasDimensions.fontSizeExtraSmall) *
              .12,
      fontWeight: weight,
    ),
    textAlign: align,
  );
}