styles.dart 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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(0.04, 0.21),
  8. end: Alignment(0.98, 0.76),
  9. colors: [const Color(0xFF7D46FC), const Color(0xFFBC87FF)],
  10. ),
  11. shape: RoundedRectangleBorder(
  12. borderRadius: BorderRadius.circular(radius),
  13. ),
  14. );
  15. }
  16. static Decoration getInactiveButtonDecoration(double radius) {
  17. return ShapeDecoration(
  18. color: const Color(0xFF7D46FC).withAlpha(100),
  19. shape: RoundedRectangleBorder(
  20. borderRadius: BorderRadius.circular(radius),
  21. ),
  22. );
  23. }
  24. static TextStyle getTextStyleBlack204W400(double? sp) {
  25. return TextStyle(
  26. color: Colors.black.withAlpha(204),
  27. fontSize: sp,
  28. fontWeight: FontWeight.w400,
  29. );
  30. }
  31. static TextStyle getTextStyleBlack204W500(double? sp) {
  32. return TextStyle(
  33. color: Colors.black.withAlpha(204),
  34. fontSize: sp,
  35. fontWeight: FontWeight.w500,
  36. );
  37. }
  38. static TextStyle getTextStyleBlack153W400(double? sp) {
  39. return TextStyle(
  40. color: Colors.black.withAlpha(153),
  41. fontSize: sp,
  42. fontWeight: FontWeight.w400,
  43. );
  44. }
  45. static TextStyle getTextStyleBlack178W500(double?sp){
  46. return TextStyle(
  47. color: Colors.black.withAlpha(178),
  48. fontSize: sp,
  49. fontWeight: FontWeight.w500,
  50. );
  51. }
  52. static TextStyle getTextStyleBlack102W500(double? sp) {
  53. return TextStyle(
  54. color: Colors.black.withAlpha(102),
  55. fontSize: sp,
  56. fontWeight: FontWeight.w500,
  57. );
  58. }
  59. static TextStyle getTextStyleWhiteW500(double? sp) {
  60. return TextStyle(
  61. color: Colors.white,
  62. fontSize: sp,
  63. fontWeight: FontWeight.w500,
  64. );
  65. }
  66. static TextStyle getTextStyleWhiteW400(double? sp) {
  67. return TextStyle(
  68. color: Colors.white,
  69. fontSize: sp,
  70. fontWeight: FontWeight.w400,
  71. );
  72. }
  73. static TextStyle getTextStyleFF663300W700(double? sp) {
  74. return TextStyle(
  75. color: const Color(0xFF663300),
  76. fontSize: sp,
  77. fontWeight: FontWeight.w700,
  78. );
  79. }
  80. static TextStyle getTextStyleFF663300W500(double? sp) {
  81. return TextStyle(
  82. color: const Color(0xFF663300),
  83. fontSize: sp,
  84. fontWeight: FontWeight.w500,
  85. );
  86. }
  87. static TextStyle getTextStyleFF663300W400(double? sp) {
  88. return TextStyle(
  89. color: const Color(0xFF663300),
  90. fontSize: sp,
  91. fontWeight: FontWeight.w400,
  92. );
  93. }
  94. static TextStyle getTextStyle99673300W400(double? sp) {
  95. return TextStyle(
  96. color: const Color(0x99673300),
  97. fontSize: sp,
  98. fontWeight: FontWeight.w400,
  99. );
  100. }
  101. static TextStyle getTextStyleFFECBBW500(double? sp) {
  102. return TextStyle(
  103. color: const Color(0xFFFFECBB),
  104. fontSize: sp,
  105. fontWeight: FontWeight.w500,
  106. );
  107. }
  108. static TextStyle getTextStyleFF7F14W500(double? sp) {
  109. return TextStyle(
  110. color: const Color(0xFFFF7F14),
  111. fontSize: sp,
  112. fontWeight: FontWeight.w500,
  113. );
  114. }
  115. }