@ -23,8 +23,7 @@ extension CapExtension on String {
extension EmailValidator on String {
Widget get toWidget = > Text ( this ) ;
Widget toText8 ( { Color ? color , FontWeight ? fontWeight , bool isBold = false , int ? maxlines , FontStyle ? fontStyle , TextOverflow ? textOverflow } ) = >
Text (
Widget toText8 ( { Color ? color , FontWeight ? fontWeight , bool isBold = false , int ? maxlines , FontStyle ? fontStyle , TextOverflow ? textOverflow } ) = > Text (
this ,
maxLines: maxlines ,
overflow: textOverflow ,
@ -38,7 +37,8 @@ extension EmailValidator on String {
) ;
Widget toText10 (
{ Color ? color ,
{ bool isEnglishOnly = false ,
Color ? color ,
FontWeight ? weight ,
bool isBold = false ,
bool isUnderLine = false ,
@ -59,19 +59,20 @@ extension EmailValidator on String {
color: color ? ? AppColors . blackColor ,
letterSpacing: letterSpacing ,
decoration: isUnderLine ? TextDecoration . underline : null ,
fontFamily: isEnglishOnly ? " Poppins " : getIt . get < AppState > ( ) . getLanguageCode ( ) = = " ar " ? ' GESSTwo ' : ' Poppins ' ,
decorationColor: color ? ? AppColors . blackColor ) ,
) ;
Widget toText9 (
{ Color ? color ,
FontWeight ? weight ,
bool isBold = false ,
bool isUnderLine = false ,
bool isCenter = false ,
int ? maxlines ,
FontStyle ? fontStyle ,
TextOverflow ? textOverflow ,
double letterSpacing = 0 } ) = >
{ Color ? color ,
FontWeight ? weight ,
bool isBold = false ,
bool isUnderLine = false ,
bool isCenter = false ,
int ? maxlines ,
FontStyle ? fontStyle ,
TextOverflow ? textOverflow ,
double letterSpacing = 0 } ) = >
Text (
this ,
textAlign: isCenter ? TextAlign . center : null ,
@ -87,15 +88,7 @@ extension EmailValidator on String {
decorationColor: color ? ? AppColors . blackColor ) ,
) ;
Widget toText11 (
{ Color ? color ,
FontWeight ? weight ,
bool isUnderLine = false ,
bool isCenter = false ,
bool isBold = false ,
int maxLine = 0 ,
double letterSpacing = 0 } ) = >
Text (
Widget toText11 ( { Color ? color , FontWeight ? weight , bool isUnderLine = false , bool isCenter = false , bool isBold = false , int maxLine = 0 , double letterSpacing = 0 } ) = > Text (
this ,
textAlign: isCenter ? TextAlign . center : null ,
maxLines: ( maxLine > 0 ) ? maxLine : null ,
@ -110,7 +103,7 @@ extension EmailValidator on String {
) ;
Widget toText12 (
{ Color ? color ,
{ bool isEnglishOnly = false , Color ? color ,
bool isUnderLine = false ,
TextAlign textAlignment = TextAlign . start ,
bool isBold = false ,
@ -131,6 +124,7 @@ extension EmailValidator on String {
height: height ,
decorationColor: isUnderLine ? AppColors . blackColor : null ,
decoration: isUnderLine ? TextDecoration . underline : null ,
fontFamily: isEnglishOnly ? " Poppins " : getIt . get < AppState > ( ) . getLanguageCode ( ) = = " ar " ? ' GESSTwo ' : ' Poppins ' ,
) ,
) ;
@ -176,15 +170,7 @@ extension EmailValidator on String {
) ,
) ;
Widget toText13 (
{ Color ? color ,
bool isUnderLine = false ,
bool isBold = false ,
bool isCenter = false ,
int maxLine = 0 ,
FontWeight ? weight ,
double ? letterSpacing = 0 } ) = >
Text (
Widget toText13 ( { Color ? color , bool isUnderLine = false , bool isBold = false , bool isCenter = false , int maxLine = 0 , FontWeight ? weight , double ? letterSpacing = 0 } ) = > Text (
this ,
textAlign: isCenter ? TextAlign . center : null ,
maxLines: ( maxLine > 0 ) ? maxLine : null ,
@ -197,6 +183,7 @@ extension EmailValidator on String {
) ;
Widget toText14 ( {
bool isEnglishOnly = false ,
Color ? color ,
bool isUnderLine = false ,
bool isBold = false ,
@ -219,18 +206,11 @@ extension EmailValidator on String {
height: height ,
fontWeight: weight ? ? ( isBold ? FontWeight . bold : FontWeight . normal ) ,
decoration: isUnderLine ? TextDecoration . underline : null ,
fontFamily: isEnglishOnly ? " Poppins " : getIt . get < AppState > ( ) . getLanguageCode ( ) = = " ar " ? ' GESSTwo ' : ' Poppins ' ,
decorationColor: color ? ? AppColors . blackColor ) ,
) ;
Widget toText15 (
{ Color ? color ,
bool isUnderLine = false ,
bool isBold = false ,
bool isCenter = false ,
FontWeight ? weight ,
int ? maxlines ,
double ? letterSpacing = - 1 } ) = >
Text (
Widget toText15 ( { Color ? color , bool isUnderLine = false , bool isBold = false , bool isCenter = false , FontWeight ? weight , int ? maxlines , double ? letterSpacing = - 1 } ) = > Text (
this ,
textAlign: isCenter ? TextAlign . center : null ,
maxLines: maxlines ,
@ -270,11 +250,10 @@ extension EmailValidator on String {
decorationColor: decorationColor ) ,
) ;
Widget toText17 ( { Color ? color , bool isBold = false , bool isCenter = false } ) = > Text (
Widget toText17 ( { bool isEnglishOnly = false , Color ? color , bool isBold = false , bool isCenter = false } ) = > Text (
this ,
textAlign: isCenter ? TextAlign . center : null ,
style: TextStyle (
color: color ? ? AppColors . blackColor , fontSize: 17. f , letterSpacing: - 1 , fontWeight: isBold ? FontWeight . bold : FontWeight . normal ) ,
style: TextStyle ( color: color ? ? AppColors . blackColor , fontSize: 17. f , letterSpacing: - 1 , fontWeight: isBold ? FontWeight . bold : FontWeight . normal , fontFamily: isEnglishOnly ? " Poppins " : getIt . get < AppState > ( ) . getLanguageCode ( ) = = " ar " ? ' GESSTwo ' : ' Poppins ' ) ,
) ;
Widget toText18 ( { Color ? color , FontWeight ? weight , bool isBold = false , bool isCenter = false , int ? maxlines , TextOverflow ? textOverflow } ) = > Text (
@ -282,17 +261,12 @@ extension EmailValidator on String {
textAlign: isCenter ? TextAlign . center : null ,
this ,
overflow: textOverflow ,
style: TextStyle (
fontSize: 18. f ,
fontWeight: weight ? ? ( isBold ? FontWeight . bold : FontWeight . normal ) ,
color: color ? ? AppColors . blackColor ,
letterSpacing: - 0.4 ) ,
style: TextStyle ( fontSize: 18. f , fontWeight: weight ? ? ( isBold ? FontWeight . bold : FontWeight . normal ) , color: color ? ? AppColors . blackColor , letterSpacing: - 0.4 ) ,
) ;
Widget toText19 ( { Color ? color , bool isBold = false } ) = > Text (
this ,
style: TextStyle (
fontSize: 19. f , fontWeight: isBold ? FontWeight . bold : FontWeight . normal , color: color ? ? AppColors . blackColor , letterSpacing: - 0.4 ) ,
style: TextStyle ( fontSize: 19. f , fontWeight: isBold ? FontWeight . bold : FontWeight . normal , color: color ? ? AppColors . blackColor , letterSpacing: - 0.4 ) ,
) ;
Widget toText20 ( {
@ -302,86 +276,51 @@ extension EmailValidator on String {
} ) = >
Text (
this ,
style: TextStyle (
fontSize: 20. f ,
fontWeight: weight ? ? ( isBold ? FontWeight . bold : FontWeight . normal ) ,
color: color ? ? AppColors . blackColor ,
letterSpacing: - 0.4 ) ,
style: TextStyle ( fontSize: 20. f , fontWeight: weight ? ? ( isBold ? FontWeight . bold : FontWeight . normal ) , color: color ? ? AppColors . blackColor , letterSpacing: - 0.4 ) ,
) ;
Widget toText21 ( { Color ? color , bool isBold = false , FontWeight ? weight , int ? maxlines } ) = > Text (
this ,
maxLines: maxlines ,
style: TextStyle (
color: color ? ? AppColors . blackColor ,
fontSize: 21. f ,
letterSpacing: - 1 ,
fontWeight: weight ? ? ( isBold ? FontWeight . bold : FontWeight . normal ) ) ,
style: TextStyle ( color: color ? ? AppColors . blackColor , fontSize: 21. f , 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. f ,
letterSpacing: - 1 ,
fontWeight: isBold ? FontWeight . bold : FontWeight . normal ) ,
style: TextStyle ( height: 1 , color: color ? ? AppColors . blackColor , fontSize: 22. f , letterSpacing: - 1 , fontWeight: isBold ? FontWeight . bold : FontWeight . normal ) ,
) ;
Widget toText24 ( { Color ? color , bool isBold = false , bool isCenter = false , FontWeight ? fontWeight , double ? letterSpacing } ) = > Text (
this ,
textAlign: isCenter ? TextAlign . center : null ,
style: TextStyle (
height: 23 / 24 ,
color: color ? ? AppColors . blackColor ,
fontSize: 24. f ,
letterSpacing: letterSpacing ? ? - 1 ,
fontWeight: isBold ? FontWeight . bold : fontWeight ? ? FontWeight . normal ) ,
height: 23 / 24 , color: color ? ? AppColors . blackColor , fontSize: 24. f , letterSpacing: letterSpacing ? ? - 1 , fontWeight: isBold ? FontWeight . bold : fontWeight ? ? FontWeight . normal ) ,
) ;
Widget toText26 ( { Color ? color , bool isBold = false , double ? height , bool isCenter = false , FontWeight ? weight , double ? letterSpacing } ) = > Text (
this ,
textAlign: isCenter ? TextAlign . center : null ,
style: TextStyle (
height: height ? ? 23 / 26 ,
color: color ? ? AppColors . blackColor ,
fontSize: 26. f ,
letterSpacing: letterSpacing ? ? - 1 ,
fontWeight: weight ? ? ( isBold ? FontWeight . bold : FontWeight . normal ) ) ,
height: height ? ? 23 / 26 , color: color ? ? AppColors . blackColor , fontSize: 26. f , letterSpacing: letterSpacing ? ? - 1 , fontWeight: weight ? ? ( isBold ? FontWeight . bold : FontWeight . normal ) ) ,
) ;
Widget toText28 ( { Color ? color , bool isBold = false , double ? height , bool isCenter = false , double ? letterSpacing } ) = > Text (
Widget toText28 ( { bool isEnglishOnly = false , Color ? color , bool isBold = false , double ? height , bool isCenter = false , double ? letterSpacing } ) = > Text (
this ,
textAlign: isCenter ? TextAlign . center : null ,
style: TextStyle (
height: height ? ? 23 / 28 ,
color: color ? ? AppColors . blackColor ,
fontSize: 28. f ,
letterSpacing: letterSpacing ? ? - 1 ,
fontWeight: isBold ? FontWeight . bold : FontWeight . normal ) ,
style: TextStyle ( height: height ? ? 23 / 28 , color: color ? ? AppColors . blackColor , fontSize: 28. f , letterSpacing: letterSpacing ? ? - 1 , fontWeight: isBold ? FontWeight . bold : FontWeight . normal , fontFamily: isEnglishOnly ? " Poppins " : getIt . get < AppState > ( ) . getLanguageCode ( ) = = " ar " ? ' GESSTwo ' : ' Poppins ' ) ,
) ;
Widget toText32 ( { FontWeight ? weight , 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. f ,
letterSpacing: - 1 ,
fontWeight: isBold ? FontWeight . bold : weight ? ? FontWeight . normal ) ,
height: 32 / 32 , color: color ? ? AppColors . blackColor , fontSize: 32. f , letterSpacing: - 1 , fontFamily: " Poppins " , fontWeight: isBold ? FontWeight . bold : weight ? ? FontWeight . normal ) ,
) ;
Widget toText44 ( { Color ? color , bool isBold = false } ) = > Text (
this ,
style: TextStyle (
height: 32 / 32 ,
color: color ? ? AppColors . blackColor ,
fontSize: 44. f ,
letterSpacing: - 1 ,
fontWeight: isBold ? FontWeight . bold : FontWeight . normal ) ,
style: TextStyle ( height: 32 / 32 , color: color ? ? AppColors . blackColor , fontSize: 44. f , letterSpacing: - 1 , fontWeight: isBold ? FontWeight . bold : FontWeight . normal ) ,
) ;
Widget toSectionHeading ( { String upperHeading = " " , String lowerHeading = " " } ) {
@ -417,9 +356,7 @@ extension EmailValidator on String {
}
bool isValidEmail ( ) {
return RegExp (
r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$' )
. hasMatch ( this ) ;
return RegExp ( r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$' ) . hasMatch ( this ) ;
}
String toFormattedDate ( ) {