getCustomTextWithoutMaxLine function
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,
);
}