Files
Regroup/lib/Utils/texts.dart
2024-06-05 11:52:59 +05:30

465 lines
9.3 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:regroup/Utils/colors.dart';
Widget text30BlackM(String text) {
return Text(
text,
style: TextStyle(
fontSize: 29.sp, color: AppColors.black, fontWeight: FontWeight.w500),
);
}
Widget text22400white(String text) {
return Text(
text,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 22.sp,
color: AppColors.white,
fontWeight: FontWeight.w400,
fontFamily: 'Helvetica'),
);
}
Widget text20400white(String text) {
return Text(
text,
style: TextStyle(
fontSize: 20.sp,
color: AppColors.white,
fontWeight: FontWeight.w400,
fontFamily: 'Helvetica'),
);
}
Widget text16400white(String text) {
return Text(
text,
// textAlign: TextAlign.center,
style: TextStyle(
fontSize: 16.sp,
color: AppColors.white,
fontWeight: FontWeight.w400,
fontFamily: 'Helvetica'),
);
}
Widget text25700white(String text) {
return Text(
text,
// textAlign: TextAlign.center,
style: TextStyle(
fontSize: 25.sp,
color: AppColors.white,
fontWeight: FontWeight.w700,
fontFamily: 'Helvetica'),
);
}
Widget text12400white(String text) {
return Text(
text,
style: TextStyle(
fontSize: 12.sp,
color: AppColors.white,
fontWeight: FontWeight.w400,
fontFamily: 'Helvetica'),
);
}
Widget text14400white(String text) {
return Text(
text,
// textAlign: TextAlign.center,
style: TextStyle(
fontSize: 14.sp,
color: AppColors.white,
fontWeight: FontWeight.w400,
fontFamily: 'Helvetica'),
);
}
Widget text14700white(String text) {
return Text(
text,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 14.sp,
color: AppColors.white,
fontWeight: FontWeight.w700,
fontFamily: 'Helvetica'),
);
}
Widget text20Black(String text) {
return Text(
text,
style: TextStyle(
fontSize: 20.sp,
color: AppColors.black,
// fontWeight: FontWeight.w500
),
);
}
Widget text20Blackw600(String text) {
return Text(
text,
style: TextStyle(
fontSize: 20.sp, color: AppColors.black, fontWeight: FontWeight.w600),
);
}
Widget textA4856_20500(String text) {
return Text(
text,
style: TextStyle(
fontWeight: FontWeight.w500,
fontSize: 20.sp,
color: Color(0XFF3A4856),
),
);
}
Widget text272424_18(String text) {
return Text(
text,
style: TextStyle(
fontSize: 18.sp,
color: Color(0XFF272424),
),
);
}
Widget text14Black(String text) {
return Text(
text,
style: TextStyle(
fontSize: 14.sp,
color: AppColors.black,
),
);
}
Widget text16White(String text, {TextAlign? textAlign}) {
return Text(
text,
textAlign: textAlign,
style: TextStyle(
fontSize: 16.sp,
color: AppColors.white,
),
);
}
Widget text16400Black(String text, {TextAlign? textAlign}) {
return Text(
text,
textAlign: textAlign,
style: TextStyle(
fontSize: 16.sp,
fontWeight: FontWeight.w400,
color: AppColors.black,
),
);
}
Widget text16w400white(String text, {TextAlign? textAlign}) {
return Text(
text,
textAlign: textAlign,
style: TextStyle(
fontSize: 16.sp,
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400,
color: AppColors.white,
),
);
}
Widget text18w700white(String text, {TextAlign? textAlign}) {
return Text(
text,
textAlign: textAlign,
style: TextStyle(
fontSize: 18.sp,
fontFamily: 'Helvetica',
fontWeight: FontWeight.w700,
color: AppColors.white,
),
);
}
Widget text14w400white(String text, {TextAlign? textAlign}) {
return Text(
text,
textAlign: textAlign,
style: TextStyle(
fontSize: 14.sp,
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400,
color: AppColors.white,
),
);
}
Widget text20White(String text, {TextAlign? textAlign}) {
return Text(
text,
textAlign: textAlign,
style: TextStyle(
fontSize: 20.sp,
color: AppColors.white,
),
);
}
Widget text14White(String text, {TextAlign? textAlign}) {
return Text(
text,
textAlign: textAlign,
style: TextStyle(
fontSize: 14.sp,
color: AppColors.white,
),
);
}
Widget contentText(String content) {
return Text(
content,
style: TextStyle(fontSize: 18.sp, color: const Color(0xff272424)),
);
}
Widget txt20Black(txt) {
return Text(
txt,
style: TextStyle(fontSize: 20.sp, color: const Color(0xff000000)),
);
}
Widget text16w400_FCFCFC(String text) {
return Text(
text,
style: TextStyle(
fontSize: 16.sp,
color: Color(0xFFFCFCFC),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text10400white(String text) {
return Text(
text,
style: TextStyle(
fontSize: 10.sp,
color: Colors.white,
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text16w700_FCFCFC(String text) {
return Text(
text,
style: TextStyle(
fontSize: 16.sp,
color: Color(0xFFFCFCFC),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w700),
);
}
Widget text16w700_FCFCFCUnderline(String text) {
return Text(
text,
style: TextStyle(
decoration: TextDecoration.underline,
decorationColor: Color(0xFFFCFCFC),
fontSize: 16.sp,
color: Color(0xFFFCFCFC),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w700),
);
}
Widget text16w400_white(String text) {
return Text(
text,
style: TextStyle(
fontSize: 16.sp,
color: Colors.white,
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text16w400_FCFCFCblur(String text) {
return Text(
text,
style: TextStyle(
fontSize: 16.sp,
color: Color(0xFFFCFCFC).withOpacity(0.8),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text12w400_FCFCFC(String text) {
return Text(
text,
style: TextStyle(
fontSize: 12.sp,
color: Color(0xFFFCFCFC),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text20w700_FCFCFC(String text) {
return Text(
text,
style: TextStyle(
fontSize: 20.sp,
color: Color(0xFFFCFCFC),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w700),
);
}
Widget text12w400_FCFCFC_blur(String text) {
return Text(
text,
style: TextStyle(
fontSize: 12.sp,
color: Color(0xFFFCFCFC).withOpacity(0.8),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text10w400_FCFCFC_blur(String text) {
return Text(
text,
style: TextStyle(
fontSize: 10.sp,
color: Color(0xFFFCFCFC).withOpacity(0.8),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text11w400_FCFCFC(String text) {
return Text(
text,
style: TextStyle(
fontSize: 11.sp,
color: Color(0xFFFCFCFC),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text18w400_FCFCFC(String text) {
return Text(
text,
style: TextStyle(
fontSize: 18.sp,
color: Color(0xFFFCFCFC),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text18w500_FCFCFC(String text) {
return Text(
text,
style: TextStyle(
fontSize: 18.sp,
color: Color(0xFFFCFCFC),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w500),
);
}
Widget text18w500Center_FCFCFC(String text) {
return Text(
text,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 18.sp,
color: Color(0xFFFCFCFC),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w500),
);
}
Widget text18w700_FCFCFC(String text) {
return Text(
text,
style: TextStyle(
fontSize: 18.sp,
color: Color(0xFFFCFCFC),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w700),
);
}
Widget text14w400_FCFCFC(String text) {
return Text(
text,
style: TextStyle(
fontSize: 14.sp,
color: Color(0xFFFCFCFC),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text14w400_FCFCFCblur(String text) {
return Text(
text,
style: TextStyle(
fontSize: 14.sp,
color: Color(0xFFFCFCFC).withOpacity(0.8),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text8w400_8A8A8A(String text) {
return Text(
text,
style: TextStyle(
fontSize: 8.sp,
color: Color(0xFF8A8A8A),
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text10w400_whiteCenter(String text) {
return Text(
text,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 10.sp,
color: Colors.white,
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}
Widget text8w400_white(String text) {
return Text(
text,
style: TextStyle(
fontSize: 8.sp,
color: Colors.white,
fontFamily: 'Helvetica',
fontWeight: FontWeight.w400),
);
}