styles.dart 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. import 'package:flutter/material.dart';
  2. class Styles {
  3. Styles._();
  4. static Decoration getActivateButtonDecoration(double radius) {
  5. return ShapeDecoration(
  6. gradient: LinearGradient(
  7. begin: Alignment.centerLeft,
  8. end: Alignment.centerRight,
  9. transform: GradientRotation(0.5),
  10. colors: [const Color(0xFF7D46FC), const Color(0xFFBC87FF)],
  11. ),
  12. shape: RoundedRectangleBorder(
  13. borderRadius: BorderRadius.circular(radius),
  14. ),
  15. );
  16. }
  17. static Decoration getInactiveButtonDecoration(double radius) {
  18. return ShapeDecoration(
  19. color: const Color(0xFFCAB3FB),
  20. shape: RoundedRectangleBorder(
  21. borderRadius: BorderRadius.circular(radius),
  22. ),
  23. );
  24. }
  25. static TextStyle getTextStyleBlack204W400(double? sp) {
  26. return TextStyle(
  27. color: Colors.black.withAlpha(204),
  28. fontSize: sp,
  29. fontWeight: FontWeight.w400,
  30. );
  31. }
  32. static TextStyle getTextStyleBlack204W500(double? sp) {
  33. return TextStyle(
  34. color: Colors.black.withAlpha(204),
  35. fontSize: sp,
  36. fontWeight: FontWeight.w500,
  37. );
  38. }
  39. static TextStyle getTextStyleBlack128W400(double? sp) {
  40. return TextStyle(
  41. color: Colors.black.withAlpha(128),
  42. fontSize: sp,
  43. fontWeight: FontWeight.w400,
  44. );
  45. }
  46. static TextStyle getTextStyleBlack153W400(double? sp) {
  47. return TextStyle(
  48. color: Colors.black.withAlpha(153),
  49. fontSize: sp,
  50. fontWeight: FontWeight.w400,
  51. );
  52. }
  53. static TextStyle getTextStyleBlack178W500(double?sp){
  54. return TextStyle(
  55. color: Colors.black.withAlpha(178),
  56. fontSize: sp,
  57. fontWeight: FontWeight.w500,
  58. );
  59. }
  60. static TextStyle getTextStyleBlack102W500(double? sp) {
  61. return TextStyle(
  62. color: Colors.black.withAlpha(102),
  63. fontSize: sp,
  64. fontWeight: FontWeight.w500,
  65. );
  66. }
  67. static TextStyle getTextStyleWhiteW500(double? sp) {
  68. return TextStyle(
  69. color: Colors.white,
  70. fontSize: sp,
  71. fontWeight: FontWeight.w500,
  72. );
  73. }
  74. static TextStyle getTextStyleWhiteW400(double? sp) {
  75. return TextStyle(
  76. color: Colors.white,
  77. fontSize: sp,
  78. fontWeight: FontWeight.w400,
  79. );
  80. }
  81. static TextStyle getTextStyleFF663300W700(double? sp) {
  82. return TextStyle(
  83. color: const Color(0xFF663300),
  84. fontSize: sp,
  85. fontWeight: FontWeight.w700,
  86. );
  87. }
  88. static TextStyle getTextStyleFF663300W500(double? sp) {
  89. return TextStyle(
  90. color: const Color(0xFF663300),
  91. fontSize: sp,
  92. fontWeight: FontWeight.w500,
  93. );
  94. }
  95. static TextStyle getTextStyleFF663300W400(double? sp) {
  96. return TextStyle(
  97. color: const Color(0xFF663300),
  98. fontSize: sp,
  99. fontWeight: FontWeight.w400,
  100. );
  101. }
  102. static TextStyle getTextStyle99673300W400(double? sp) {
  103. return TextStyle(
  104. color: const Color(0x99673300),
  105. fontSize: sp,
  106. fontWeight: FontWeight.w400,
  107. );
  108. }
  109. static TextStyle getTextStyleFFECBBW500(double? sp) {
  110. return TextStyle(
  111. color: const Color(0xFFFFECBB),
  112. fontSize: sp,
  113. fontWeight: FontWeight.w500,
  114. );
  115. }
  116. static TextStyle getTextStyleFF7F14W500(double? sp) {
  117. return TextStyle(
  118. color: const Color(0xFFFF7F14),
  119. fontSize: sp,
  120. fontWeight: FontWeight.w500,
  121. );
  122. }
  123. }