8 changed files with 307 additions and 4 deletions
-
BINassets/images/world_map.png
-
99assets/svg/magnifier.svg
-
3lib/common_ui/resources/my_assets.dart
-
140lib/features/battle_league/presentation/ui/battle_find_page.dart
-
6lib/features/topic/presentation/ui/topic_page.dart
-
8lib/l10n/app_en.arb
-
36lib/l10n/app_localizations.dart
-
19lib/l10n/app_localizations_en.dart
|
After Width: 279 | Height: 279 | Size: 9.5 KiB |
@ -0,0 +1,99 @@ |
|||||
|
<svg width="73" height="96" viewBox="0 0 73 96" fill="none" xmlns="http://www.w3.org/2000/svg"> |
||||
|
<path d="M69.3156 88.7806C69.3156 88.7806 69.2781 91 64.2106 93.5076C59.3114 95.9366 57.3577 94.7052 57.3577 94.7052L41.9043 59.6814L50.8343 55.2538L69.3156 88.7806Z" fill="url(#paint0_linear_150_1001)"/> |
||||
|
<path style="mix-blend-mode:multiply" opacity="0.57" d="M69.3159 88.7807C69.3159 88.7807 69.2785 91.0001 64.2109 93.5077C59.3117 95.9366 57.3581 94.7053 57.3581 94.7053L44.1353 64.7378L53.7913 60.5685C53.7913 60.5685 46.5642 66.4669 54.4425 83.6121C60.2848 96.3146 69.3159 88.7807 69.3159 88.7807Z" fill="url(#paint1_linear_150_1001)"/> |
||||
|
<path d="M54.75 54.75C64.8292 44.6708 64.8292 28.3292 54.75 18.25C44.6708 8.1708 28.3292 8.17081 18.25 18.25C8.1708 28.3292 8.1708 44.6708 18.25 54.75C28.3292 64.8292 44.6708 64.8292 54.75 54.75Z" fill="url(#paint2_linear_150_1001)"/> |
||||
|
<path d="M35.7777 60.8529C50.0318 60.8529 61.5871 49.2976 61.5871 35.0435C61.5871 20.7893 50.0318 9.23407 35.7777 9.23407C21.5235 9.23407 9.96826 20.7893 9.96826 35.0435C9.96826 49.2976 21.5235 60.8529 35.7777 60.8529Z" fill="url(#paint3_linear_150_1001)"/> |
||||
|
<path d="M35.789 54.4902C46.5189 54.4902 55.2172 45.7919 55.2172 35.0621C55.2172 24.3322 46.5189 15.6339 35.789 15.6339C25.0591 15.6339 16.3608 24.3322 16.3608 35.0621C16.3608 45.7919 25.0591 54.4902 35.789 54.4902Z" fill="#230067"/> |
||||
|
<path d="M54.3367 37.8251C55.6074 27.7101 48.4376 18.4802 38.3225 17.2096C28.2075 15.9389 18.9776 23.1087 17.707 33.2237C16.4363 43.3387 23.6061 52.5686 33.7211 53.8393C43.8361 55.1099 53.066 47.9402 54.3367 37.8251Z" fill="url(#paint4_radial_150_1001)"/> |
||||
|
<g opacity="0.6"> |
||||
|
<mask id="mask0_150_1001" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="17" y="16" width="38" height="38"> |
||||
|
<path d="M49.2371 48.3937C56.4457 41.185 56.4457 29.4976 49.2371 22.289C42.0285 15.0803 30.341 15.0803 23.1324 22.289C15.9238 29.4976 15.9238 41.185 23.1324 48.3937C30.341 55.6023 42.0285 55.6023 49.2371 48.3937Z" fill="white"/> |
||||
|
</mask> |
||||
|
<g mask="url(#mask0_150_1001)"> |
||||
|
<path d="M-61.5791 30.9386C-61.5791 30.9386 -41.1255 60.3896 -27.7417 78.6762C-19.6398 89.704 -12.2457 101.235 -5.60385 113.199L8.7268 117.742C14.2397 106.458 17.305 78.6014 27.7133 63.5634C39.9294 45.9167 97.0461 -21.1667 112.152 -43.0201L103.884 -42.3577C103.884 -42.3577 27.7507 28.2888 -0.697224 75.9928C-14.7135 63.1779 -39.2466 38.9404 -52.5368 31.1744C-55.546 31.544 -58.5933 31.4645 -61.5791 30.9386Z" fill="#B25AB6"/> |
||||
|
<path d="M-52.5371 31.1744C-52.5371 31.1744 -29.3289 58.3349 -15.9488 78.6762C-3.49701 97.6066 8.72653 117.742 8.72653 117.742C8.72653 117.742 23.903 84.5784 39.0795 62.6577C54.256 40.7369 112.151 -43.0201 112.151 -43.0201C112.151 -43.0201 35.378 28.0006 6.40608 77.632C-13.2654 59.6448 -52.5371 31.1744 -52.5371 31.1744Z" fill="#ED74F3"/> |
||||
|
<path opacity="0.3" d="M-35.8825 50.7299C-35.8825 50.7299 -27.177 62.6764 -19.4821 73.4141C-11.7872 84.1518 9.19041 116.739 8.72632 117.735C8.26223 118.73 33.0312 71.9395 33.0312 71.9395C33.0312 71.9395 13.0828 106.219 10.3619 108.139C7.41265 110.219 -3.79663 93.0556 -9.79986 84.2379C-16.3233 74.653 -36.5337 50.7299 -36.5337 50.7299H-35.8825Z" fill="white"/> |
||||
|
<path opacity="0.3" d="M6.40625 77.6321C6.40625 77.6321 35.2734 41.5192 45.3 29.8233C59.7579 12.9589 104.849 -36.1149 104.849 -36.1149C104.849 -36.1149 40.4982 28.0568 23.136 52.9904C9.24319 72.95 6.40625 77.6321 6.40625 77.6321Z" fill="white"/> |
||||
|
</g> |
||||
|
</g> |
||||
|
<g style="mix-blend-mode:color-dodge" opacity="0.41"> |
||||
|
<path d="M27.817 18.9876C24.5444 20.6075 21.8258 23.1616 20.0051 26.3269C18.1844 29.4921 17.3434 33.1263 17.5885 36.7696C17.8336 40.4129 19.1538 43.9017 21.3821 46.7946C23.6103 49.6874 26.6465 51.8544 30.1066 53.0214C33.5666 54.1884 37.2951 54.3029 40.8202 53.3505C44.3454 52.398 47.5089 50.4215 49.9105 47.6708C52.3121 44.9202 53.8439 41.519 54.3121 37.8976C54.7804 34.2762 54.164 30.5972 52.541 27.3262C50.3664 22.9435 46.5408 19.6034 41.9048 18.0398C37.2688 16.4762 32.2017 16.8171 27.817 18.9876ZM38.8316 46.2903C32.0649 49.6587 23.9695 47.1099 20.7583 40.6276C17.5471 34.1453 20.4252 26.1697 27.1957 22.8163C33.9661 19.4629 42.0578 21.9929 45.2727 28.4752C48.4877 34.9575 45.6021 42.9331 38.8316 46.2903Z" fill="#3378D2"/> |
||||
|
</g> |
||||
|
<path style="mix-blend-mode:multiply" d="M27.817 18.9876C24.5444 20.6075 21.8258 23.1616 20.0051 26.3269C18.1844 29.4921 17.3434 33.1263 17.5885 36.7696C17.8336 40.4129 19.1538 43.9017 21.3821 46.7946C23.6103 49.6874 26.6465 51.8544 30.1066 53.0214C33.5666 54.1884 37.2951 54.3029 40.8202 53.3505C44.3454 52.398 47.5089 50.4215 49.9105 47.6708C52.3121 44.9202 53.8439 41.519 54.3121 37.8976C54.7804 34.2762 54.164 30.5972 52.541 27.3262C50.3664 22.9435 46.5408 19.6034 41.9048 18.0398C37.2688 16.4762 32.2017 16.8171 27.817 18.9876ZM43.2442 50.3623C34.3816 54.7562 23.7824 51.4364 19.5794 42.9481C15.3763 34.4597 19.1452 24.0327 28.0116 19.6276C36.8779 15.2224 47.4734 18.5497 51.6764 27.038C55.8794 35.5264 52.1106 45.9684 43.2442 50.3623Z" fill="url(#paint5_radial_150_1001)"/> |
||||
|
<path opacity="0.4" d="M34.7632 15.6602L34.2729 9.27143C34.2729 9.27143 39.7821 8.3657 46.373 11.517C52.9638 14.6683 56.1638 19.2157 56.1638 19.2157L50.7481 22.6739C50.7481 22.6739 48.6073 19.3055 43.4574 17.2246C38.3075 15.1437 34.7632 15.6602 34.7632 15.6602Z" fill="white"/> |
||||
|
<path opacity="0.4" d="M52.354 24.7398L58.0728 21.9028L59.8431 25.7166L53.7575 27.573L52.354 24.7398Z" fill="white"/> |
||||
|
<path opacity="0.4" d="M22.4688 49.2133C22.4688 49.2133 26.3424 53.0795 33.5021 54.3483C40.4298 55.5833 46.6763 51.1445 46.6763 51.1445C46.6763 51.1445 40.8265 56.504 33.0231 55.4224C30.9388 55.1431 28.9314 54.45 27.1189 53.3837C25.3064 52.3174 23.7253 50.8995 22.4688 49.2133Z" fill="white"/> |
||||
|
<path opacity="0.5" d="M21.1029 13.8225C21.1029 13.8225 11.0651 20.2898 10.1444 32.0118C8.86812 48.1914 20.2982 55.7029 20.2982 55.7029C20.2982 55.7029 10.2941 46.3462 10.8892 33.2844C11.4468 20.9747 21.1029 13.8225 21.1029 13.8225Z" fill="white"/> |
||||
|
<path d="M12.4945 34.3849C12.4945 36.6305 12.008 38.4532 11.4129 38.4532C10.8178 38.4532 10.3425 36.6305 10.3462 34.3811C10.35 32.1318 10.829 30.3129 11.4241 30.3129C12.0192 30.3129 12.4945 32.1355 12.4945 34.3849Z" fill="white"/> |
||||
|
<path opacity="0.2" d="M28.0865 52.0312C32.69 54.2431 37.3009 54.1271 38.3376 53.8427C39.3744 53.5582 41.1596 48.0827 34.1421 44.3513C25.5153 39.7515 20.2269 48.2549 28.0865 52.0312Z" fill="url(#paint6_linear_150_1001)"/> |
||||
|
<path d="M35.2165 52.2336C35.9348 52.5873 36.7419 52.7202 37.5357 52.6154C38.3295 52.5106 39.0744 52.1728 39.6763 51.6447C40.2782 51.1167 40.71 50.422 40.9172 49.6486C41.1244 48.8752 41.0977 48.0577 40.8404 47.2995C40.5832 46.5412 40.1069 45.8763 39.4718 45.3886C38.8367 44.901 38.0713 44.6126 37.2723 44.5599C36.4734 44.5071 35.6767 44.6924 34.983 45.0924C34.2894 45.4923 33.7298 46.0888 33.3751 46.8067C33.1393 47.2839 32.9999 47.8028 32.9648 48.3339C32.9298 48.865 32.9998 49.3978 33.1708 49.9018C33.3418 50.4059 33.6105 50.8712 33.9615 51.2713C34.3126 51.6714 34.739 51.9984 35.2165 52.2336Z" fill="white"/> |
||||
|
<path d="M52.8403 60.6172L44.4044 65.0822C44.2378 65.1673 44.0554 65.2171 43.8687 65.2285C43.682 65.2398 43.4949 65.2125 43.3192 65.1482C43.1435 65.0839 42.983 64.984 42.8477 64.8548C42.7125 64.7256 42.6053 64.5698 42.533 64.3973L42.0989 63.4504C41.9326 63.0952 41.9061 62.6905 42.0247 62.3167C42.1433 61.9429 42.3983 61.6274 42.7389 61.4331L51.1711 56.9681C51.3377 56.883 51.5201 56.8331 51.7068 56.8218C51.8935 56.8104 52.0806 56.8377 52.2563 56.902C52.432 56.9663 52.5925 57.0662 52.7278 57.1955C52.863 57.3247 52.9702 57.4804 53.0424 57.653L53.4766 58.5999C53.6432 58.9546 53.6702 59.359 53.5523 59.7328C53.4345 60.1065 53.1803 60.4222 52.8403 60.6172Z" fill="url(#paint7_linear_150_1001)"/> |
||||
|
<path style="mix-blend-mode:multiply" opacity="0.8" d="M47.3351 59.5203C43.671 61.0772 41.6612 63.3865 44.1688 65.2054C43.7945 65.516 42.8963 65.2054 42.5819 64.5093L42.0617 63.3303C41.9011 63.0304 41.8586 62.6814 41.9424 62.3517C42.0262 62.022 42.2303 61.7356 42.5146 61.5488L51.4183 56.8443C51.9797 56.5449 52.6909 56.8443 53.0052 57.5404L53.5404 58.7119C52.0172 56.8555 49.1316 58.7568 47.3351 59.5203Z" fill="url(#paint8_linear_150_1001)"/> |
||||
|
<path opacity="0.5" d="M46.519 63.9629C46.519 63.9629 52.8816 60.6282 53.0762 60.4934C53.3253 60.3343 53.514 60.0965 53.6123 59.8177C53.7106 59.539 53.713 59.2354 53.6189 58.9552C53.675 59.9994 52.5747 60.5346 51.3396 61.1035C49.6617 61.9314 48.0501 62.8873 46.519 63.9629Z" fill="white"/> |
||||
|
<path opacity="0.4" d="M50.0277 62.0072C51.6445 61.1253 52.6535 59.8573 52.2814 59.175C51.9092 58.4927 50.2968 58.6545 48.68 59.5364C47.0631 60.4183 46.0541 61.6863 46.4263 62.3686C46.7984 63.0509 48.4108 62.8891 50.0277 62.0072Z" fill="white"/> |
||||
|
<path d="M52.3765 59.5168C52.631 60.0744 52.0771 60.9315 51.1377 61.4293C50.1983 61.927 49.2289 61.8784 48.9744 61.3207C48.7199 60.7631 49.2739 59.906 50.2133 59.4082C51.1527 58.9105 52.122 58.9591 52.3765 59.5168Z" fill="white"/> |
||||
|
<path opacity="0.2" d="M65.0438 89.0041C66.4719 88.2425 65.6277 83.8711 63.1582 79.2403C60.6887 74.6095 57.529 71.4728 56.1009 72.2344C54.6728 72.996 55.5171 77.3674 57.9866 81.9982C60.4561 86.629 63.6158 89.7657 65.0438 89.0041Z" fill="white"/> |
||||
|
<path opacity="0.5" d="M61.1491 86.4789C62.2083 88.4662 63.8737 89.6451 64.8655 89.1174C65.8574 88.5897 65.8087 86.5462 64.7495 84.5589C63.6904 82.5715 62.0249 81.3888 61.0293 81.9203C60.0338 82.4517 60.0712 84.4915 61.1491 86.4789Z" fill="white"/> |
||||
|
<path opacity="0.2" d="M41.6424 21.1543C41.373 23.1005 45.8829 25.3161 47.0543 31.4616C47.5596 34.1114 46.6202 37.8803 49.5469 37.1317C51.5118 36.6302 53.6639 34.0852 51.7401 28.5236C49.3186 21.4799 41.9793 18.6991 41.6424 21.1543Z" fill="white"/> |
||||
|
<defs> |
||||
|
<linearGradient id="paint0_linear_150_1001" x1="49.2804" y1="78.3061" x2="61.2921" y2="72.4337" gradientUnits="userSpaceOnUse"> |
||||
|
<stop stop-color="#6141AE"/> |
||||
|
<stop offset="0.02" stop-color="#673FAC"/> |
||||
|
<stop offset="0.13" stop-color="#8037A2"/> |
||||
|
<stop offset="0.23" stop-color="#90329C"/> |
||||
|
<stop offset="0.3" stop-color="#95309A"/> |
||||
|
<stop offset="0.39" stop-color="#9B3497"/> |
||||
|
<stop offset="0.87" stop-color="#B74687"/> |
||||
|
</linearGradient> |
||||
|
<linearGradient id="paint1_linear_150_1001" x1="50.4961" y1="80.792" x2="62.5078" y2="74.9196" gradientUnits="userSpaceOnUse"> |
||||
|
<stop stop-color="#6141AE"/> |
||||
|
<stop offset="0.02" stop-color="#673FAC"/> |
||||
|
<stop offset="0.13" stop-color="#8037A2"/> |
||||
|
<stop offset="0.23" stop-color="#90329C"/> |
||||
|
<stop offset="0.3" stop-color="#95309A"/> |
||||
|
<stop offset="0.39" stop-color="#9B3497"/> |
||||
|
<stop offset="0.87" stop-color="#B74687"/> |
||||
|
</linearGradient> |
||||
|
<linearGradient id="paint2_linear_150_1001" x1="56.564" y1="52.0859" x2="21.9346" y2="25.1909" gradientUnits="userSpaceOnUse"> |
||||
|
<stop stop-color="#8A79A1"/> |
||||
|
<stop offset="0.52" stop-color="#A597B2"/> |
||||
|
<stop offset="1" stop-color="#C1B7C4"/> |
||||
|
</linearGradient> |
||||
|
<linearGradient id="paint3_linear_150_1001" x1="55.9869" y1="50.4729" x2="21.4447" y2="23.3383" gradientUnits="userSpaceOnUse"> |
||||
|
<stop stop-color="#B9C2D9"/> |
||||
|
<stop offset="0.25" stop-color="#AB8EC5"/> |
||||
|
<stop offset="0.4" stop-color="#C5ACD5"/> |
||||
|
<stop offset="0.56" stop-color="#E6D2E8"/> |
||||
|
<stop offset="1" stop-color="#A9A9D9"/> |
||||
|
</linearGradient> |
||||
|
<radialGradient id="paint4_radial_150_1001" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(25.0067 29.643) rotate(-26.3705) scale(31.806)"> |
||||
|
<stop stop-color="#523DBE"/> |
||||
|
<stop offset="0.43" stop-color="#515BC6"/> |
||||
|
<stop offset="1" stop-color="#4F8AD2"/> |
||||
|
</radialGradient> |
||||
|
<radialGradient id="paint5_radial_150_1001" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(36.0186 35.5251) rotate(-0.92) scale(18.4626)"> |
||||
|
<stop stop-color="#3E23BE"/> |
||||
|
<stop offset="0.39" stop-color="#3A41C5"/> |
||||
|
<stop offset="1" stop-color="#3378D2"/> |
||||
|
</radialGradient> |
||||
|
<linearGradient id="paint6_linear_150_1001" x1="23.7128" y1="49.3223" x2="38.3806" y2="50.6747" gradientUnits="userSpaceOnUse"> |
||||
|
<stop stop-color="#FF9EFF"/> |
||||
|
<stop offset="0.35" stop-color="#FFBCFF"/> |
||||
|
<stop offset="1" stop-color="white"/> |
||||
|
</linearGradient> |
||||
|
<linearGradient id="paint7_linear_150_1001" x1="54.9561" y1="57.3264" x2="39.0918" y2="65.0823" gradientUnits="userSpaceOnUse"> |
||||
|
<stop stop-color="#B9C2D9"/> |
||||
|
<stop offset="0.02" stop-color="#B7BCD7"/> |
||||
|
<stop offset="0.13" stop-color="#B1A3CD"/> |
||||
|
<stop offset="0.23" stop-color="#AC93C7"/> |
||||
|
<stop offset="0.3" stop-color="#AB8EC5"/> |
||||
|
<stop offset="0.61" stop-color="#CDB5D9"/> |
||||
|
<stop offset="0.87" stop-color="#E6D2E8"/> |
||||
|
</linearGradient> |
||||
|
<linearGradient id="paint8_linear_150_1001" x1="54.9609" y1="57.3281" x2="39.0879" y2="65.0882" gradientUnits="userSpaceOnUse"> |
||||
|
<stop stop-color="#8A79A1"/> |
||||
|
<stop offset="0.52" stop-color="#A597B2"/> |
||||
|
<stop offset="1" stop-color="#C1B7C4"/> |
||||
|
</linearGradient> |
||||
|
</defs> |
||||
|
</svg> |
||||
@ -0,0 +1,140 @@ |
|||||
|
import 'package:flutter/material.dart'; |
||||
|
import 'package:get/get.dart'; |
||||
|
import 'package:shia_game_flutter/common_ui/resources/my_assets.dart'; |
||||
|
import 'package:shia_game_flutter/common_ui/resources/my_colors.dart'; |
||||
|
import 'package:shia_game_flutter/common_ui/resources/my_text_style.dart'; |
||||
|
import 'package:shia_game_flutter/core/utils/gap.dart'; |
||||
|
import 'package:shia_game_flutter/core/utils/my_localization.dart'; |
||||
|
import 'package:shia_game_flutter/core/utils/screen_size.dart'; |
||||
|
import 'package:shia_game_flutter/core/widgets/container/my_container.dart'; |
||||
|
import 'package:shia_game_flutter/core/widgets/image/my_image.dart'; |
||||
|
import 'package:shia_game_flutter/core/widgets/text/gradient_text.dart'; |
||||
|
import 'package:shia_game_flutter/features/battle_league/presentation/controller/battle_league_controller.dart'; |
||||
|
|
||||
|
class BattleFindPage extends GetView<BattleLeagueController> { |
||||
|
const BattleFindPage({super.key}); |
||||
|
|
||||
|
@override |
||||
|
Widget build(BuildContext context) { |
||||
|
return Scaffold( |
||||
|
backgroundColor: MyColors.battleLeagueBackgroundColor, |
||||
|
body: SafeArea( |
||||
|
child: Padding( |
||||
|
padding: const EdgeInsets.symmetric(horizontal: 30), |
||||
|
child: Column( |
||||
|
children: [ |
||||
|
20.h.gapHeight, |
||||
|
_rankTitle(context), |
||||
|
const Spacer(), |
||||
|
_findingImage(context), |
||||
|
const Spacer(), |
||||
|
_description(context), |
||||
|
37.h.gapHeight, |
||||
|
const BattlePurpleButton(), |
||||
|
], |
||||
|
), |
||||
|
), |
||||
|
), |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
Container _rankTitle(BuildContext context) { |
||||
|
return Container( |
||||
|
height: 42.h, |
||||
|
width: context.widthScreen, |
||||
|
alignment: Alignment.center, |
||||
|
padding: const EdgeInsets.symmetric(horizontal: 17), |
||||
|
decoration: const ShapeDecoration( |
||||
|
shape: StadiumBorder(), |
||||
|
color: Color(0XFF2E0869), |
||||
|
), |
||||
|
child: Row( |
||||
|
mainAxisAlignment: MainAxisAlignment.center, |
||||
|
children: [ |
||||
|
Expanded( |
||||
|
child: FittedBox( |
||||
|
child: Text( |
||||
|
'${context.translate.quiz_league} (june) | ${context.translate.your_place} (1,569)', |
||||
|
textAlign: TextAlign.center, |
||||
|
maxLines: 1, |
||||
|
style: Lexend.semiBold.copyWith(fontSize: 12.sp), |
||||
|
), |
||||
|
), |
||||
|
), |
||||
|
15.w.gapWidth, |
||||
|
const MyImage(asset: MyAssets.iconRank), |
||||
|
4.w.gapWidth, |
||||
|
Text('265', style: Lexend.bold.copyWith(fontSize: 12.sp)), |
||||
|
], |
||||
|
), |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
Widget _findingImage(BuildContext context) { |
||||
|
return Stack( |
||||
|
alignment: Alignment.center, |
||||
|
children: [ |
||||
|
const MyImage(asset: MyAssets.worldMap), |
||||
|
const MyImage(asset: MyAssets.magnifier), |
||||
|
Positioned( |
||||
|
bottom: 0, |
||||
|
child: Text( |
||||
|
context.translate.finding_player, |
||||
|
style: Lexend.semiBold.copyWith(fontSize: 20.sp), |
||||
|
), |
||||
|
), |
||||
|
], |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
Column _description(BuildContext context) { |
||||
|
return Column( |
||||
|
children: [ |
||||
|
Text('،،', style: Lexend.black.copyWith(fontSize: 84.sp, height: 1)), |
||||
|
Text( |
||||
|
context.translate.find_hint, |
||||
|
textAlign: TextAlign.center, |
||||
|
style: Lexend.regular.copyWith( |
||||
|
fontSize: 14.sp, |
||||
|
color: const Color(0XFFC9B7E8), |
||||
|
), |
||||
|
), |
||||
|
], |
||||
|
); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
class BattlePurpleButton extends StatelessWidget { |
||||
|
const BattlePurpleButton({super.key}); |
||||
|
|
||||
|
@override |
||||
|
Widget build(BuildContext context) { |
||||
|
return MyContainer( |
||||
|
onTap: () {}, |
||||
|
width: context.widthScreen, |
||||
|
height: 64.h, |
||||
|
borderRadius: const BorderRadius.all(Radius.circular(20)), |
||||
|
borderGradient: LinearGradient( |
||||
|
begin: AlignmentDirectional.topStart, |
||||
|
end: AlignmentDirectional.bottomEnd, |
||||
|
colors: [ |
||||
|
const Color(0XFF7F4CD4), |
||||
|
const Color(0XFF7F4CD4).withValues(alpha: 0), |
||||
|
], |
||||
|
), |
||||
|
gradient: const RadialGradient( |
||||
|
radius: 5, |
||||
|
center: Alignment(-0.5, 0), |
||||
|
colors: [Color(0xFF6A36BF), Color(0xFF562A9E)], |
||||
|
), |
||||
|
child: GradientText( |
||||
|
text: context.translate.stop_finding, |
||||
|
fontSize: 22.sp, |
||||
|
color: const Color(0xFFE1E1E1), |
||||
|
offset: const Offset(0, 1.04), |
||||
|
blurRadius: 1.9, |
||||
|
shadowColor: const Color(0xFF898989), |
||||
|
), |
||||
|
); |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue