|
|
|
|
@ -30,7 +30,7 @@ extension EmailValidator on String {
|
|
|
|
|
fontStyle: fontStyle ?? FontStyle.normal,
|
|
|
|
|
fontWeight: isBold ? FontWeight.bold : FontWeight.normal,
|
|
|
|
|
color: color ?? AppColors.blackColor,
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -43,7 +43,7 @@ extension EmailValidator on String {
|
|
|
|
|
fontStyle: fontStyle ?? FontStyle.normal,
|
|
|
|
|
fontWeight: isBold ? FontWeight.bold : FontWeight.normal,
|
|
|
|
|
color: color ?? AppColors.blackColor,
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
decoration: isUnderLine ? TextDecoration.underline : null,
|
|
|
|
|
decorationColor: color ?? AppColors.blackColor),
|
|
|
|
|
);
|
|
|
|
|
@ -57,7 +57,7 @@ extension EmailValidator on String {
|
|
|
|
|
fontSize: 11.fSize,
|
|
|
|
|
fontWeight: weight ?? (isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
color: color ?? AppColors.blackColor,
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
decoration: isUnderLine ? TextDecoration.underline : null,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
@ -70,7 +70,7 @@ extension EmailValidator on String {
|
|
|
|
|
fontSize: 12.fSize,
|
|
|
|
|
fontWeight: fontWeight ?? (isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
color: color ?? AppColors.blackColor,
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
height: height,
|
|
|
|
|
decorationColor: isUnderLine ? AppColors.blackColor : null,
|
|
|
|
|
decoration: isUnderLine ? TextDecoration.underline : null,
|
|
|
|
|
@ -86,7 +86,7 @@ extension EmailValidator on String {
|
|
|
|
|
fontSize: 12.fSize,
|
|
|
|
|
fontWeight: isBold ? FontWeight.bold : FontWeight.normal,
|
|
|
|
|
color: color ?? AppColors.blackColor,
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
decoration: isUnderLine ? TextDecoration.underline : null,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
@ -134,7 +134,7 @@ extension EmailValidator on String {
|
|
|
|
|
fontSize: 13.fSize,
|
|
|
|
|
fontWeight: isBold ? FontWeight.bold : FontWeight.normal,
|
|
|
|
|
color: color ?? AppColors.blackColor,
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
decoration: isUnderLine ? TextDecoration.underline : null),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -145,7 +145,7 @@ extension EmailValidator on String {
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: color ?? AppColors.blackColor,
|
|
|
|
|
fontSize: 14.fSize,
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
fontWeight: weight ?? (isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
decoration: isUnderLine ? TextDecoration.underline : null),
|
|
|
|
|
);
|
|
|
|
|
@ -157,7 +157,7 @@ extension EmailValidator on String {
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: color ?? AppColors.blackColor,
|
|
|
|
|
fontSize: 15.fSize,
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
fontWeight: weight ?? (isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
decoration: isUnderLine ? TextDecoration.underline : null),
|
|
|
|
|
);
|
|
|
|
|
@ -188,7 +188,7 @@ extension EmailValidator on String {
|
|
|
|
|
Widget toText17({Color? color, bool isBold = false, bool isCenter = false}) => Text(
|
|
|
|
|
this,
|
|
|
|
|
textAlign: isCenter ? TextAlign.center : null,
|
|
|
|
|
style: TextStyle(color: color ?? AppColors.blackColor, fontSize: 17.fSize, letterSpacing: -0.4, fontWeight: isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
style: TextStyle(color: color ?? AppColors.blackColor, fontSize: 17.fSize, letterSpacing: -1, fontWeight: isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Widget toText18({Color? color, bool isBold = false, bool isCenter = false, int? maxlines}) => Text(
|
|
|
|
|
@ -211,19 +211,19 @@ extension EmailValidator on String {
|
|
|
|
|
Widget toText21({Color? color, bool isBold = false, FontWeight? weight, int? maxlines}) => Text(
|
|
|
|
|
this,
|
|
|
|
|
maxLines: maxlines,
|
|
|
|
|
style: TextStyle(color: color ?? AppColors.blackColor, fontSize: 21.fSize, letterSpacing: -0.4, fontWeight: weight ?? (isBold ? FontWeight.bold : FontWeight.normal)),
|
|
|
|
|
style: TextStyle(color: color ?? AppColors.blackColor, fontSize: 21.fSize, letterSpacing: -1, fontWeight: weight ?? (isBold ? FontWeight.bold : FontWeight.normal)),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Widget toText22({Color? color, bool isBold = false, bool isCenter = false}) => Text(
|
|
|
|
|
this,
|
|
|
|
|
textAlign: isCenter ? TextAlign.center : null,
|
|
|
|
|
style: TextStyle(height: 1, color: color ?? AppColors.blackColor, fontSize: 22.fSize, letterSpacing: -0.4, fontWeight: isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
style: TextStyle(height: 1, color: color ?? AppColors.blackColor, fontSize: 22.fSize, letterSpacing: -1, fontWeight: isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Widget toText24({Color? color, bool isBold = false, bool isCenter = false}) => Text(
|
|
|
|
|
this,
|
|
|
|
|
textAlign: isCenter ? TextAlign.center : null,
|
|
|
|
|
style: TextStyle(height: 23 / 24, color: color ?? AppColors.blackColor, fontSize: 24.fSize, letterSpacing: -0.4, fontWeight: isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
style: TextStyle(height: 23 / 24, color: color ?? AppColors.blackColor, fontSize: 24.fSize, letterSpacing: -1, fontWeight: isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Widget toText26({Color? color, bool isBold = false, double? height, bool isCenter = false}) => Text(
|
|
|
|
|
@ -241,12 +241,12 @@ extension EmailValidator on String {
|
|
|
|
|
Widget toText32({Color? color, bool isBold = false, bool isCenter = false}) => Text(
|
|
|
|
|
this,
|
|
|
|
|
textAlign: isCenter ? TextAlign.center : null,
|
|
|
|
|
style: TextStyle(height: 32 / 32, color: color ?? AppColors.blackColor, fontSize: 32.fSize, letterSpacing: -0.4, fontWeight: isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
style: TextStyle(height: 32 / 32, color: color ?? AppColors.blackColor, fontSize: 32.fSize, letterSpacing: -1, fontWeight: isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Widget toText44({Color? color, bool isBold = false}) => Text(
|
|
|
|
|
this,
|
|
|
|
|
style: TextStyle(height: 32 / 32, color: color ?? AppColors.blackColor, fontSize: 44.fSize, letterSpacing: -0.4, fontWeight: isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
style: TextStyle(height: 32 / 32, color: color ?? AppColors.blackColor, fontSize: 44.fSize, letterSpacing: -1, fontWeight: isBold ? FontWeight.bold : FontWeight.normal),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Widget toSectionHeading({String upperHeading = "", String lowerHeading = ""}) {
|
|
|
|
|
|