dreampad/lib/app/shared/constants/styles.dart

526 lines
14 KiB
Dart
Raw Normal View History

2023-11-28 10:44:58 +08:00
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'dimens.dart';
import 'colors.dart';
class Shadows {
static Shadow txtShadow032 = Shadow(
color: const Color(0xFF0D0C0A),
offset: Offset(0.0, 3.h),
blurRadius: 2.r,
);
static Shadow txtShadow034 = Shadow(
color: const Color(0xFF0D0C0A),
offset: Offset(0.0, 3.h),
blurRadius: 4.r,
);
static Shadow txtShadow014 = Shadow(
color: const Color(0xFF0D0C0A),
offset: Offset(0.0, 1.h),
blurRadius: 4.r,
);
static Shadow txtShadow022 = Shadow(
color: const Color(0xFF000000),
offset: Offset(0.0, 2.h),
blurRadius: 2.r,
);
static Shadow txtShadow002 = Shadow(
color: const Color(0xFF000000),
offset: Offset(0.0, 0.h),
blurRadius: 2.r,
);
static Shadow txtShadow111_2 = Shadow(
color: const Color(0xFF000000),
offset: Offset(1.w, 1.h),
blurRadius: 1.r,
);
static Shadow txtShadow110 = Shadow(
color: const Color(0xFF513892),
offset: Offset(1.0, 1.h),
blurRadius: 0.r,
);
static Shadow txtShadow024 = Shadow(
color: const Color(0xFF000000),
offset: Offset(0.0, 2.h),
blurRadius: 4.r,
);
static Shadow txtShadow200 = Shadow(
color: const Color(0xFFF15BFF),
offset: Offset(2.w, 0.0),
blurRadius: 0,
);
static Shadow txtShadow100 = Shadow(
color: const Color(0xFFF15BFF),
offset: Offset(1.w, 0.0),
blurRadius: 0,
);
static Shadow txtShadow101 = Shadow(
color: const Color(0xFFD77D6D),
offset: Offset(1.w, 0.0),
blurRadius: 1.r,
);
static Shadow txtShadow012 = Shadow(
color: const Color(0xFF14326D),
offset: Offset(0.0, 1.h),
blurRadius: 2.r,
);
static Shadow txtShadow114 = Shadow(
color: const Color(0xFF149CDE),
offset: Offset(1.w, 1.h),
blurRadius: 4.r,
);
static Shadow txtShadow111 = Shadow(
color: const Color(0xFF0E5FCC),
offset: Offset(1.w, 1.h),
blurRadius: 1.r,
);
static Shadow txtShadow111_1 = Shadow(
color: const Color(0xFFD1757F),
offset: Offset(1.w, 1.h),
blurRadius: 1.r,
);
static Shadow txtShadow012_1 = Shadow(
color: const Color(0xFFD3472A),
offset: const Offset(0, 1.0),
blurRadius: 2.r,
);
static Shadow txtShadow012_2 = Shadow(
color: const Color(0xFF000000),
offset: Offset(0.0, 1.h),
blurRadius: 2.r,
);
static Shadow txtShadow104 = Shadow(
color: const Color(0xFFC44400),
offset: Offset(1.w, 0.h),
blurRadius: 4.r,
);
}
class TextStyles {
static TextStyle pmzdWhiteShadow26_022 = TextStyle(
fontFamily: 'pmzd',
fontSize: Dimens.font_sp26.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow022],
);
static TextStyle pmzdWhiteShadow22_022 = TextStyle(
fontSize: Dimens.font_sp22.sp,
fontFamily: 'pmzd',
color: Colors.white,
fontWeight: FontWeight.w400,
shadows: [Shadows.txtShadow022],
);
static TextStyle mediumWhiteShadow28_022 = TextStyle(
fontSize: Dimens.font_sp28.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow022],
);
static TextStyle mediumWhiteShadow26_034 = TextStyle(
fontSize: Dimens.font_sp26.sp,
color: Colors.white,
shadows: [Shadows.txtShadow034],
fontWeight: FontWeight.w500,
);
static TextStyle mediumWhiteShadow26_014 = TextStyle(
fontSize: Dimens.font_sp26.sp,
color: Colors.white,
shadows: [Shadows.txtShadow014],
fontWeight: FontWeight.w500,
);
static TextStyle mediumWhiteShadowHeight26_034 = TextStyle(
fontSize: Dimens.font_sp26.sp,
color: Colors.white,
shadows: [Shadows.txtShadow034],
fontWeight: FontWeight.w500,
height: 1.8,
);
static TextStyle mediumWhiteShadow16_034 = TextStyle(
fontSize: Dimens.font_sp16.sp,
color: Colors.white,
shadows: [Shadows.txtShadow034],
fontWeight: FontWeight.w500,
);
static TextStyle mediumWhite26 = TextStyle(
fontSize: Dimens.font_sp26.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
);
static TextStyle mediumWhite18 = TextStyle(
fontSize: Dimens.font_sp18.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
);
static TextStyle mediumWhite20 = TextStyle(
fontSize: Dimens.font_sp20.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
);
static TextStyle mediumColor16 = TextStyle(
fontSize: Dimens.font_sp16.sp,
color: const Color(0xFF95C3E1),
fontWeight: FontWeight.w500,
);
static TextStyle mediumColor18 = TextStyle(
fontSize: Dimens.font_sp18.sp,
color: const Color(0xFF95C3E1),
fontWeight: FontWeight.w500,
);
static TextStyle mediumWhiteShadow18_034 = TextStyle(
fontSize: Dimens.font_sp18.sp,
color: Colors.white,
shadows: [Shadows.txtShadow034],
);
static TextStyle mediumWhiteShadowHeight18_034 = TextStyle(
fontSize: Dimens.font_sp18.sp,
color: Colors.white,
shadows: [Shadows.txtShadow034],
height: 1.8,
);
static TextStyle mediumWhite20_022 = TextStyle(
fontSize: Dimens.font_sp20.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow022],
);
static TextStyle mediumWhite20_014 = TextStyle(
fontSize: Dimens.font_sp20.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow014],
);
static TextStyle mediumColorShadow16_032 = TextStyle(
fontSize: Dimens.font_sp16.sp,
color: const Color(0xFF8899F1),
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow032],
);
static TextStyle mediumWhiteShadow20_114 = TextStyle(
fontSize: Dimens.font_sp20.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow114],
);
static TextStyle mediumWhiteShadow26_100 = TextStyle(
fontSize: Dimens.font_sp26.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow100],
);
static TextStyle boldWhiteShadow28_110 = TextStyle(
fontSize: Dimens.font_sp28.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow110],
);
static TextStyle boldWhite20_014 = TextStyle(
fontSize: Dimens.font_sp20.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow014],
);
static TextStyle boldWhiteShadow26_002 = TextStyle(
fontSize: Dimens.font_sp26.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow002],
);
static TextStyle boldWhiteShadow22_100 = TextStyle(
fontSize: Dimens.font_sp22.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.bold,
shadows: [Shadows.txtShadow100],
);
static TextStyle boldWhiteShadow22_104 = TextStyle(
fontSize: Dimens.font_sp22.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.bold,
shadows: [Shadows.txtShadow104],
);
static TextStyle boldWhiteShadow22_101 = TextStyle(
fontSize: Dimens.font_sp22.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.bold,
shadows: [Shadows.txtShadow101],
);
static TextStyle boldColorShadow28_012 = TextStyle(
fontSize: Dimens.font_sp28.sp,
fontFamily: 'alph-b',
color: const Color(0xFF20D2F2),
fontWeight: FontWeight.bold,
shadows: [Shadows.txtShadow012],
);
static TextStyle boldWhite20 = TextStyle(
fontSize: Dimens.font_sp20.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.bold,
);
static TextStyle boldWhiteShadow18_111 = TextStyle(
fontSize: Dimens.font_sp18.sp,
color: Colors.white,
fontFamily: 'alph-b',
fontWeight: FontWeight.bold,
shadows: [Shadows.txtShadow111],
);
2023-11-30 14:58:48 +08:00
static TextStyle boldWhiteShadow12_111 = TextStyle(
fontSize: Dimens.font_sp12.sp,
color: Colors.white,
fontFamily: 'alph-b',
fontWeight: FontWeight.bold,
shadows: [Shadows.txtShadow111_1],
);
2023-11-28 10:44:58 +08:00
static TextStyle boldWhiteShadow14_111 = TextStyle(
fontSize: Dimens.font_sp14.sp,
color: Colors.white,
fontFamily: 'alph-b',
fontWeight: FontWeight.bold,
shadows: [Shadows.txtShadow111_1],
);
static TextStyle boldWhiteShadow22_012 = TextStyle(
fontSize: Dimens.font_sp22.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.bold,
shadows: [Shadows.txtShadow012_1],
);
static TextStyle boldWhiteShadow34_200 = TextStyle(
fontSize: Dimens.font_sp34.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.bold,
shadows: [Shadows.txtShadow200],
);
static TextStyle mediumWhiteShadow14_101 = TextStyle(
fontSize: Dimens.font_sp14.sp,
color: Colors.white,
shadows: [Shadows.txtShadow101],
);
static TextStyle mediumWhiteShadow12_111 = TextStyle(
fontSize: Dimens.font_sp12.sp,
color: Colors.white,
shadows: [Shadows.txtShadow111],
);
static TextStyle mediumWhite21_024 = TextStyle(
fontSize: Dimens.font_sp21.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow024],
);
static TextStyle mediumWhite23_111_2 = TextStyle(
fontSize: Dimens.font_sp23.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow111_2],
);
static TextStyle mediumWhite22_012_2 = TextStyle(
fontSize: Dimens.font_sp22.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
shadows: [Shadows.txtShadow012_2],
);
static TextStyle boldWhite30 = TextStyle(
fontSize: Dimens.font_sp30.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.bold,
);
static TextStyle boldColor20 = TextStyle(
fontSize: Dimens.font_sp20.sp,
fontFamily: 'alph-b',
color: const Color(0xFF392B6B),
fontWeight: FontWeight.bold,
);
static TextStyle boldColor22 = TextStyle(
fontSize: Dimens.font_sp22.sp,
fontFamily: 'alph-b',
color: const Color(0xFF300970),
fontWeight: FontWeight.bold,
);
static TextStyle boldWhite22 = TextStyle(
fontSize: Dimens.font_sp22.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.bold,
);
2023-11-30 01:56:40 +08:00
static TextStyle boldColor10 = TextStyle(
fontSize: Dimens.font_sp10.sp,
fontFamily: 'alph-b',
color: const Color(0xFFAAAAAA),
fontWeight: FontWeight.bold,
);
2023-11-28 10:44:58 +08:00
static TextStyle boldColor24 = TextStyle(
fontSize: Dimens.font_sp24.sp,
fontFamily: 'alph-b',
color: const Color(0xFF392B6B),
fontWeight: FontWeight.bold,
);
static TextStyle boldColor21 = TextStyle(
fontSize: Dimens.font_sp21.sp,
fontFamily: 'alph-b',
color: Colours.text,
fontWeight: FontWeight.bold,
);
static TextStyle boldWhite24 = TextStyle(
fontSize: Dimens.font_sp24.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.bold,
);
static TextStyle boldWhite16 = TextStyle(
fontSize: Dimens.font_sp16.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.bold,
);
static TextStyle boldWhite18 = TextStyle(
fontSize: Dimens.font_sp18.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.w200,
);
static TextStyle boldWhite21 = TextStyle(
fontSize: Dimens.font_sp21.sp,
fontFamily: 'alph-b',
color: Colors.white,
fontWeight: FontWeight.bold,
);
static TextStyle mediumWhite12 = TextStyle(
fontSize: Dimens.font_sp12.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
);
static TextStyle mediumColor12 = TextStyle(
fontSize: Dimens.font_sp12.sp,
color: Colours.text,
fontWeight: FontWeight.w500,
);
static TextStyle mediumWhite10 = TextStyle(
fontSize: Dimens.font_sp10.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
);
static TextStyle mediumWhite15 = TextStyle(
fontSize: Dimens.font_sp15.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
);
static TextStyle mediumWhite24 = TextStyle(
fontSize: Dimens.font_sp24.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
);
static TextStyle mediumColor21 = TextStyle(
fontSize: Dimens.font_sp21.sp,
color: const Color(0xFF95C3E1),
fontWeight: FontWeight.w500,
);
static TextStyle mediumColor22 = TextStyle(
fontSize: Dimens.font_sp22.sp,
color: const Color(0xFFD2C6FF),
fontWeight: FontWeight.w500,
);
static TextStyle mediumColor24 = TextStyle(
fontSize: Dimens.font_sp24.sp,
color: Colours.text,
fontWeight: FontWeight.w500,
);
static TextStyle mediumGray3315 = TextStyle(
fontSize: Dimens.font_sp15.sp,
color: Colours.gray_33,
fontWeight: FontWeight.w500,
);
static TextStyle mediumGray3318 = TextStyle(
fontSize: Dimens.font_sp18.sp,
color: Colours.gray_33,
fontWeight: FontWeight.w500,
);
static TextStyle mediumGray3321 = TextStyle(
fontSize: Dimens.font_sp21.sp,
color: Colours.gray_33,
fontWeight: FontWeight.w500,
);
static TextStyle mediumGray3324 = TextStyle(
fontSize: Dimens.font_sp24.sp,
color: Colours.gray_33,
fontWeight: FontWeight.w500,
);
static TextStyle mediumGray9912 = TextStyle(
fontSize: Dimens.font_sp12.sp,
color: Colours.gray_99,
fontWeight: FontWeight.w500,
);
static TextStyle mediumGray9915 = TextStyle(
fontSize: Dimens.font_sp15.sp,
color: Colours.gray_99,
fontWeight: FontWeight.w500,
);
static TextStyle mediumGray9918 = TextStyle(
fontSize: Dimens.font_sp18.sp,
color: Colours.gray_99,
fontWeight: FontWeight.w500,
);
static TextStyle mediumGray6615 = TextStyle(
fontSize: Dimens.font_sp15.sp,
color: Colours.text_gray,
fontWeight: FontWeight.w500,
);
static TextStyle mediumGray6621 = TextStyle(
fontSize: Dimens.font_sp21.sp,
color: Colours.text_gray,
fontWeight: FontWeight.w500,
);
static TextStyle textGray12 = TextStyle(
fontSize: Dimens.font_sp12.sp,
color: const Color(0xFF666666),
);
static TextStyle textDarkGray14 = TextStyle(
fontSize: Dimens.font_sp14.sp,
color: Colours.dark_text_gray,
);
static TextStyle text = TextStyle(
fontSize: Dimens.font_sp14.sp,
color: Colours.text,
textBaseline: TextBaseline.alphabetic,
);
static TextStyle textDark = TextStyle(
fontSize: Dimens.font_sp14.sp,
color: Colours.dark_text,
textBaseline: TextBaseline.alphabetic,
);
static TextStyle textDarkGray12 = TextStyle(
fontSize: Dimens.font_sp12.sp,
color: Colours.dark_text_gray,
fontWeight: FontWeight.normal,
);
static TextStyle textHint14 = TextStyle(
fontSize: Dimens.font_sp14.sp,
color: Colours.dark_unselected_item_color,
);
}