bugs solved yield

This commit is contained in:
meet2711
2024-06-18 19:21:53 +05:30
parent 5c209a23f3
commit 4aab52074d
4 changed files with 130 additions and 81 deletions

View File

@@ -6,64 +6,85 @@ import 'package:tanami_app/core/styles/app_color.dart';
class TextWidget {
//Text Size 11
Widget text11W400(String text, {Color? clr}) {
return Text(text,
style: GoogleFonts.dmSans(
fontSize: 11.sp,
fontWeight: FontWeight.w400,
color: clr ?? AppColor.plainWhite));
return Text(
text,
style: GoogleFonts.dmSans(
fontSize: 11.sp,
fontWeight: FontWeight.w400,
color: clr ?? AppColor.plainWhite,
),
);
}
Widget text11W500(String text, {Color? clr}) {
return Text(text,
style: GoogleFonts.dmSans(
fontSize: 11.sp,
fontWeight: FontWeight.w500,
color: clr ?? AppColor.plainWhite));
return Text(
text,
style: GoogleFonts.dmSans(
fontSize: 11.sp,
fontWeight: FontWeight.w500,
color: clr ?? AppColor.plainWhite,
),
);
}
Widget text11W700(String text, {Color? clr}) {
return Text(text,
style: GoogleFonts.dmSans(
fontSize: 11.sp,
fontWeight: FontWeight.w700,
color: clr ?? AppColor.plainWhite));
return Text(
text,
style: GoogleFonts.dmSans(
fontSize: 11.sp,
fontWeight: FontWeight.w700,
color: clr ?? AppColor.plainWhite,
),
);
}
//Text Size 12
Widget text12W400(String text, {Color? clr}) {
return Text(text,
style: GoogleFonts.dmSans(
fontSize: 12.sp,
fontWeight: FontWeight.w400,
color: clr ?? AppColor.plainWhite));
return Text(
text,
style: GoogleFonts.dmSans(
fontSize: 12.sp,
fontWeight: FontWeight.w400,
color: clr ?? AppColor.plainWhite,
),
);
}
Widget text12W500(String text, {Color? clr}) {
return Text(text,
style: GoogleFonts.dmSans(
fontSize: 12.sp,
fontWeight: FontWeight.w500,
color: clr ?? AppColor.plainWhite));
return Text(
text,
style: GoogleFonts.dmSans(
fontSize: 12.sp,
fontWeight: FontWeight.w500,
color: clr ?? AppColor.plainWhite,
),
);
}
Widget text12W700(String text,
{Color? clr, TextDecoration? txtDec, Color? decClr}) {
return Text(text,
style: GoogleFonts.dmSans(
fontSize: 12.sp,
decorationColor: decClr ?? AppColor.plainWhite,
decoration: txtDec ?? TextDecoration.none,
fontWeight: FontWeight.w700,
color: clr ?? AppColor.plainWhite));
return Text(
text,
style: GoogleFonts.dmSans(
fontSize: 12.sp,
decorationColor: decClr ?? AppColor.plainWhite,
decoration: txtDec ?? TextDecoration.none,
fontWeight: FontWeight.w700,
color: clr ?? AppColor.plainWhite,
),
);
}
//Text Size 13
Widget text13W500(String text, {Color? clr}) {
return Text(text,
style: GoogleFonts.dmSans(
fontSize: 13,
fontWeight: FontWeight.w500,
color: clr ?? AppColor.plainWhite));
return Text(
text,
style: GoogleFonts.dmSans(
fontSize: 13,
fontWeight: FontWeight.w500,
color: clr ?? AppColor.plainWhite,
),
);
}
//Text Size 14
@@ -75,15 +96,18 @@ class TextWidget {
int? maxLine,
TextOverflow? txtOverflow,
}) {
return Text(text,
textAlign: txtAlign ?? TextAlign.center,
maxLines: maxLine ?? 20,
overflow: txtOverflow ?? TextOverflow.ellipsis,
style: GoogleFonts.dmSans(
fontSize: 14.sp,
fontWeight: FontWeight.w400,
decoration: textDecoration ?? TextDecoration.none,
color: clr ?? AppColor.plainWhite));
return Text(
text,
textAlign: txtAlign ?? TextAlign.center,
maxLines: maxLine ?? 20,
overflow: txtOverflow ?? TextOverflow.ellipsis,
style: GoogleFonts.dmSans(
fontSize: 14.sp,
fontWeight: FontWeight.w400,
decoration: textDecoration ?? TextDecoration.none,
color: clr ?? AppColor.plainWhite,
),
);
}
Widget text14W500(
@@ -110,24 +134,30 @@ class TextWidget {
TextDecoration? textDecoration,
TextAlign? txtAlign,
}) {
return Text(text,
textAlign: txtAlign ?? TextAlign.center,
style: GoogleFonts.dmSans(
fontSize: 14.sp,
fontWeight: FontWeight.w600,
decoration: textDecoration ?? TextDecoration.none,
color: clr ?? AppColor.plainWhite));
return Text(
text,
textAlign: txtAlign ?? TextAlign.center,
style: GoogleFonts.dmSans(
fontSize: 14.sp,
fontWeight: FontWeight.w600,
decoration: textDecoration ?? TextDecoration.none,
color: clr ?? AppColor.plainWhite,
),
);
}
Widget text14W700(String text,
{Color? clr, TextDecoration? textDecoration, TextAlign? txtAlign}) {
return Text(text,
textAlign: txtAlign ?? TextAlign.center,
style: GoogleFonts.dmSans(
fontSize: 14.sp,
fontWeight: FontWeight.w700,
decoration: textDecoration ?? TextDecoration.none,
color: clr ?? AppColor.plainWhite));
return Text(
text,
textAlign: txtAlign ?? TextAlign.center,
style: GoogleFonts.dmSans(
fontSize: 14.sp,
fontWeight: FontWeight.w700,
decoration: textDecoration ?? TextDecoration.none,
color: clr ?? AppColor.plainWhite,
),
);
}
//Text Size 15
@@ -138,14 +168,17 @@ class TextWidget {
TextDecoration? textDecoration,
TextAlign? txtAlign,
}) {
return Text(text,
textAlign: txtAlign ?? TextAlign.center,
style: GoogleFonts.dmSans(
decoration: textDecoration ?? TextDecoration.none,
decorationColor: clr ?? AppColor.plainWhite,
fontSize: 15.sp,
fontWeight: FontWeight.w400,
color: clr ?? AppColor.plainWhite));
return Text(
text,
textAlign: txtAlign ?? TextAlign.center,
style: GoogleFonts.dmSans(
decoration: textDecoration ?? TextDecoration.none,
decorationColor: clr ?? AppColor.plainWhite,
fontSize: 15.sp,
fontWeight: FontWeight.w400,
color: clr ?? AppColor.plainWhite,
),
);
}
Widget text15W500(
@@ -266,11 +299,14 @@ class TextWidget {
}
Widget text22W900(String text, {Color? clr}) {
return Text(text,
style: GoogleFonts.dmSans(
fontSize: 22.sp,
fontWeight: FontWeight.w900,
color: clr ?? AppColor.plainWhite));
return Text(
text,
style: GoogleFonts.dmSans(
fontSize: 22.sp,
fontWeight: FontWeight.w900,
color: clr ?? AppColor.plainWhite,
),
);
}
//Text Size 20
@@ -286,11 +322,14 @@ class TextWidget {
}
Widget text20W900(String text, {Color? clr}) {
return Text(text,
style: GoogleFonts.dmSans(
fontSize: 20,
fontWeight: FontWeight.w900,
color: clr ?? AppColor.plainWhite));
return Text(
text,
style: GoogleFonts.dmSans(
fontSize: 20,
fontWeight: FontWeight.w900,
color: clr ?? AppColor.plainWhite,
),
);
}
//Text Size 28