136 lines
2.5 KiB
Dart
136 lines
2.5 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 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 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)),
|
|
);
|
|
}
|