Faq screen done

This commit is contained in:
priyanka
2024-03-22 04:02:01 -07:00
parent 4a1d70acb9
commit 0d486ac70d
16 changed files with 665 additions and 137 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -0,0 +1,3 @@
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M20.453 19.4222L14.7147 13.6751C15.846 12.3172 16.5264 10.582 16.5264 8.68685C16.5264 4.36319 12.9809 0.847656 8.61982 0.847656C4.25872 0.847656 0.705078 4.36729 0.705078 8.69095C0.705078 13.0146 4.25052 16.5301 8.61163 16.5301C10.4643 16.5301 12.1694 15.8943 13.522 14.8319L19.2808 20.5954C19.6169 20.9318 20.1169 20.9318 20.453 20.5954C20.7891 20.259 20.7891 19.7585 20.453 19.4222ZM2.38558 8.69095C2.38558 5.29438 5.18095 2.53364 8.61163 2.53364C12.0423 2.53364 14.8377 5.29438 14.8377 8.69095C14.8377 12.0875 12.0423 14.8483 8.61163 14.8483C5.18095 14.8483 2.38558 12.0834 2.38558 8.69095Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 722 B

View File

@@ -0,0 +1,8 @@
<svg width="30" height="26" viewBox="0 0 30 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M21.9023 0.219183C20.4668 1.38129 18.5459 2.23578 16.6523 2.57075C16.3174 2.62543 16.0029 2.70747 15.9551 2.74848C15.7295 2.93305 15.6953 3.37055 15.6885 5.74946C15.6885 8.3061 15.75 8.97602 16.1055 10.3295C16.502 11.8403 17.4316 13.1801 19.0723 14.6225C19.7148 15.1831 20.8633 15.976 21.6904 16.4135C22.374 16.7827 22.5723 16.769 23.3789 16.2973C25.5117 15.0532 26.9404 13.7817 27.9043 12.2778C28.6084 11.184 28.916 10.1586 29.1211 8.24457C29.21 7.44477 29.2168 4.40961 29.1279 3.54145C29.0664 2.85786 28.9639 2.70063 28.5811 2.63227C26.2979 2.24262 24.5342 1.4975 23.0508 0.301214C22.5791 -0.0747623 22.292 -0.0952702 21.9023 0.219183ZM23.0713 1.75727C24.3701 2.62543 25.874 3.26118 27.4258 3.59614C27.9316 3.70551 27.9453 3.71235 27.9863 3.93793C28.0615 4.32758 28.041 7.5268 27.959 8.17622C27.7881 9.6186 27.5352 10.5551 27.1318 11.2797C26.6191 12.1889 25.5049 13.4057 24.4727 14.1713C23.8438 14.643 22.5586 15.4565 22.4355 15.4565C22.3193 15.4565 21.2393 14.8002 20.5557 14.3149C19.9062 13.85 18.5869 12.5786 18.1973 12.0385C17.4111 10.9448 17.0762 9.95356 16.8848 8.17622C16.8096 7.44477 16.7822 4.31391 16.8574 3.93793C16.8916 3.72602 16.9189 3.71235 17.3154 3.63032C18.8535 3.30903 20.5557 2.58442 21.8066 1.72309C22.1279 1.50434 22.3877 1.31977 22.3945 1.31293C22.3945 1.31293 22.7021 1.51118 23.0713 1.75727Z" fill="white"/>
<path d="M23.5498 7.80029L21.7725 9.57764L20.6445 8.44971C20.0225 7.82764 19.4482 7.30127 19.3594 7.28076C19.168 7.22607 18.8125 7.36963 18.7305 7.53369C18.6895 7.60205 18.6621 7.75244 18.6621 7.88232C18.6621 8.08057 18.8125 8.25146 20.084 9.52295C21.458 10.897 21.5127 10.9448 21.7725 10.9448C22.0459 10.9448 22.0938 10.897 24.124 8.8667L26.2021 6.78174L26.1611 6.52197C26.1064 6.20068 25.9014 6.02295 25.5801 6.02295C25.3477 6.02295 25.2178 6.13916 23.5498 7.80029Z" fill="white"/>
<path d="M1.05957 6.20068C0.601562 6.43311 0.396484 6.64502 0.177734 7.08252L0 7.45166V15.8667V24.2817L0.177734 24.6509C0.369141 25.0542 0.758789 25.4233 1.18945 25.6011C1.42871 25.6968 2.57031 25.7104 13.1523 25.7104C24.4727 25.7104 24.8555 25.7036 25.1357 25.5806C25.498 25.4097 25.9492 24.9585 26.1201 24.5962C26.2363 24.3228 26.25 24.0903 26.25 20.5083V16.7075L26.0928 16.564C25.874 16.3589 25.498 16.3657 25.3066 16.5708C25.1631 16.7212 25.1631 16.7554 25.1426 20.3442C25.1221 24.4321 25.1357 24.2954 24.6094 24.5073C24.3564 24.6099 23.3105 24.6167 13.125 24.6167C0.519531 24.6167 1.49707 24.6577 1.23047 24.1108C1.09375 23.8169 1.09375 23.769 1.10742 15.7915C1.12793 8.79834 1.1416 7.73877 1.23047 7.56104C1.44922 7.13037 1.13477 7.15088 8.01855 7.1167C14.1367 7.08252 14.3008 7.07568 14.3965 6.95264C14.5469 6.74072 14.5195 6.34424 14.335 6.17334L14.1777 6.02295H7.78613L1.40137 6.02979L1.05957 6.20068Z" fill="white"/>
<path d="M8.4082 9.83068C7.33496 9.94005 6.30273 10.569 5.7627 11.4371C5.3457 12.1139 5.25 12.401 5.21582 13.2076C5.16113 14.2399 5.35938 14.8619 5.98145 15.6617L6.27539 16.0445L5.9541 16.1608C5.09277 16.4615 4.2041 17.275 3.75977 18.15C3.37695 18.9088 3.28125 19.319 3.28125 20.2281C3.28125 20.9186 3.30176 21.0416 3.45898 21.3697C3.56152 21.5885 3.75293 21.8414 3.91699 21.9781C4.49805 22.4498 4.2998 22.4293 8.77734 22.4293C13.3369 22.4293 13.1045 22.4498 13.6719 21.8824C14.123 21.4313 14.2188 21.1578 14.2188 20.2486C14.2188 19.319 14.1094 18.8336 13.7266 18.109C13.2686 17.2477 12.3799 16.4547 11.5459 16.1608L11.2314 16.0445L11.498 15.7027C12.1201 14.9235 12.3389 14.233 12.2842 13.2076C12.25 12.4078 12.127 12.0182 11.7031 11.3688C11.0469 10.357 9.63867 9.7008 8.4082 9.83068ZM9.74121 11.2115C10.582 11.6012 11.1494 12.4488 11.1494 13.3307C11.1494 13.8776 11.1084 14.0895 10.8965 14.4996C10.6162 15.0738 9.93945 15.6139 9.33789 15.7574C9.22168 15.7848 8.9209 15.8053 8.66113 15.8053C7.52637 15.8053 6.51465 14.8824 6.36426 13.7203C6.125 11.8336 8.01855 10.4254 9.74121 11.2115ZM10.2539 17.0289C11.8809 17.2272 13.0361 18.5055 13.0771 20.1461C13.0908 20.816 12.9746 21.069 12.5781 21.2262C12.3389 21.3219 11.8672 21.3356 8.75 21.3356C4.69629 21.3356 4.76465 21.3424 4.51172 20.8297C4.38867 20.5631 4.38184 20.4811 4.44336 19.9C4.51855 19.1412 4.75098 18.6012 5.22949 18.068C5.7627 17.4801 6.40527 17.1383 7.21191 17.0358C7.82031 16.9537 9.59082 16.9469 10.2539 17.0289Z" fill="white"/>
<path d="M16.5567 18.2114C16.3516 18.4302 16.3584 18.8062 16.5635 18.9976C16.7207 19.1479 16.7686 19.1479 18.6143 19.1479C20.419 19.1479 20.5147 19.1411 20.6446 19.0112C20.8428 18.813 20.8291 18.396 20.6241 18.2046C20.4668 18.061 20.419 18.0542 18.587 18.0542C16.7071 18.0542 16.7002 18.0542 16.5567 18.2114Z" fill="white"/>
<path d="M16.5567 21.4927C16.3516 21.7114 16.3584 22.0874 16.5635 22.2788C16.7207 22.4292 16.7344 22.4292 19.7081 22.4292C22.6065 22.4292 22.7022 22.4224 22.8321 22.2925C23.0303 22.0942 23.0166 21.6772 22.8116 21.4858C22.6543 21.3354 22.6407 21.3354 19.6807 21.3354H16.7002L16.5567 21.4927Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -0,0 +1,8 @@
<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M24.1293 21.0165L19.4351 17.4298C21.1093 15.2471 21.8904 12.5092 21.6204 9.77188C21.3503 7.03454 20.0491 4.50225 17.9807 2.6885C15.9122 0.874837 13.2313 -0.0841904 10.4821 0.00580608C7.73253 0.095825 5.12022 1.22796 3.17481 3.17289C1.22935 5.11782 0.096422 7.72977 0.00587639 10.4792C-0.0846693 13.2283 0.873964 15.9093 2.6872 17.978C4.50049 20.0467 7.03273 21.3482 9.77032 21.6188C12.5081 21.8894 15.2464 21.1089 17.4294 19.4354L21.0171 24.1309C21.4066 24.6376 21.9952 24.9524 22.6331 24.9949C22.6816 24.9982 22.7302 24.9999 22.7792 24.9999C23.3684 25.0006 23.9338 24.767 24.3505 24.3501C24.7673 23.9335 25.001 23.3681 25.0001 22.7787C25.0022 22.0874 24.6797 21.4347 24.1293 21.0165ZM0.868074 10.8544C0.868074 8.20619 1.92005 5.66632 3.79267 3.79418C5.66532 1.92168 8.20525 0.869844 10.8535 0.869844C13.5017 0.869844 16.0416 1.92172 17.9143 3.79418C19.787 5.66667 20.8391 8.20637 20.8391 10.8544C20.8391 13.5024 19.7869 16.042 17.9143 17.9146C16.0416 19.7871 13.5017 20.8391 10.8535 20.8391C8.20609 20.836 5.66809 19.7831 3.79578 17.9111C1.92383 16.0393 0.871065 13.5014 0.868074 10.8544ZM23.7624 23.7606C23.4773 24.0411 23.0869 24.1877 22.6876 24.1645C22.289 24.1377 21.9211 23.9406 21.6778 23.6235L18.071 18.9035C18.3632 18.6414 18.6409 18.3636 18.9032 18.0716L23.6231 21.6769C23.941 21.9198 24.1384 22.2879 24.165 22.687C24.1919 23.086 24.0448 23.4774 23.7624 23.7606Z" fill="white"/>
<path d="M5.18037 14.4296C5.28532 14.6171 5.43836 14.7731 5.6236 14.8816C5.809 14.99 6.01993 15.0472 6.23469 15.0469H15.4883C15.7031 15.0472 15.914 14.99 16.0994 14.8816C16.2848 14.7731 16.4378 14.6171 16.5426 14.4296C16.7686 14.0357 16.7674 13.5514 16.5393 13.1587L11.9139 5.21395C11.773 4.96418 11.5479 4.77282 11.2789 4.67385C11.0099 4.57486 10.7145 4.57486 10.4453 4.67385C10.1763 4.77285 9.95118 4.9642 9.81037 5.21395L5.18403 13.1583C5.07172 13.3512 5.01243 13.5702 5.01173 13.7934C5.01102 14.0166 5.06928 14.236 5.18037 14.4296ZM5.90626 13.5792L10.5344 5.63042C10.5993 5.50939 10.7257 5.43418 10.863 5.4347C11.0002 5.43505 11.1261 5.51113 11.1903 5.63235L15.8175 13.5793C15.8964 13.7131 15.8964 13.8793 15.8175 14.0131C15.7519 14.134 15.6258 14.2097 15.4883 14.2108H6.23521C6.09772 14.2095 5.97147 14.134 5.90552 14.0131C5.82715 13.879 5.82719 13.713 5.90626 13.5792Z" fill="white"/>
<path d="M10.9019 1.70898C10.671 1.70898 10.4838 1.89614 10.4838 2.12701C10.4838 2.35772 10.671 2.54487 10.9019 2.54487C13.0307 2.54592 15.0787 3.35976 16.6279 4.81993C18.1769 6.28006 19.1103 8.27665 19.2369 10.4018C19.3637 12.527 18.6744 14.6203 17.3097 16.2541C15.9453 17.8881 14.0083 18.9395 11.8949 19.1936C9.78142 19.4478 7.65036 18.8855 5.93734 17.6214C4.22444 16.3573 3.05851 14.4872 2.67808 12.3928C2.29747 10.2983 2.73091 8.13745 3.88983 6.35152C5.0486 4.56587 6.84545 3.28973 8.91333 2.78424C9.13757 2.72932 9.27487 2.50299 9.21995 2.27876C9.16503 2.05453 8.9387 1.91722 8.71447 1.97215C6.43734 2.52854 4.45874 3.93324 3.18229 5.89938C1.90598 7.86553 1.42847 10.2447 1.84722 12.551C2.26614 14.8573 3.54964 16.9167 5.4355 18.3088C7.32155 19.7008 9.66795 20.3201 11.9953 20.0404C14.3227 19.7607 16.4553 18.6032 17.9578 16.8041C19.4603 15.0048 20.2192 12.7 20.0796 10.3603C19.9401 8.02032 18.9125 5.82214 17.2067 4.21421C15.501 2.60627 13.2459 1.71006 10.9019 1.70898Z" fill="white"/>
<path d="M22.7883 22.1974C22.6244 22.039 22.3636 22.0412 22.2026 22.2025C22.0412 22.3636 22.039 22.6244 22.1975 22.7883L22.6153 23.2061C22.7793 23.3645 23.04 23.3623 23.2011 23.2011C23.3624 23.04 23.3646 22.7794 23.2063 22.6153L22.7883 22.1974Z" fill="white"/>
<path d="M10.8536 11.2808C10.9643 11.2808 11.0706 11.2367 11.149 11.1583C11.2274 11.08 11.2714 10.9736 11.2714 10.8629V7.93738C11.2714 7.70667 11.0843 7.51953 10.8536 7.51953C10.6227 7.51953 10.4355 7.70667 10.4355 7.93738V10.8629C10.4355 10.9736 10.4796 11.08 10.558 11.1583C10.6363 11.2367 10.7427 11.2808 10.8536 11.2808Z" fill="white"/>
<path d="M10.8536 13.3534C10.9643 13.3534 11.0706 13.3093 11.149 13.2309C11.2274 13.1526 11.2714 13.0462 11.2714 12.9353V12.5175C11.2714 12.2866 11.0843 12.0996 10.8536 12.0996C10.6227 12.0996 10.4355 12.2866 10.4355 12.5175V12.9353C10.4355 13.0462 10.4796 13.1526 10.558 13.2309C10.6363 13.3093 10.7427 13.3534 10.8536 13.3534Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -0,0 +1,4 @@
<svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.22905 2.979H4.94855C3.88688 2.979 3.02563 3.84025 3.02563 4.903V13.8773C3.02563 14.939 3.88688 15.8003 4.94855 15.8003H6.23122C7.29288 15.8003 8.15413 14.9401 8.15413 13.8773V4.903C8.15413 3.84134 7.29288 2.979 6.23122 2.979" stroke="#E33838" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M22.9232 12.7366L21.3849 5.0438C21.2676 4.4535 20.9465 3.92324 20.4777 3.54578C20.0089 3.16831 19.4224 2.96768 18.8207 2.97897H10.7173C10.0372 2.97897 9.38502 3.24913 8.90413 3.73002C8.42324 4.21091 8.15308 4.86314 8.15308 5.54322V13.236C8.17375 13.7297 8.29873 14.2135 8.51981 14.6555C8.74089 15.0974 9.05304 15.4876 9.43574 15.8002L10.4996 22.2114C10.5236 22.3609 10.5826 22.5026 10.6717 22.625C10.7609 22.7474 10.8778 22.847 11.0127 22.9156C11.1477 22.9843 11.297 23.02 11.4484 23.02C11.5998 23.02 11.7491 22.9842 11.8841 22.9156L13.0757 22.3273C13.8636 21.9377 14.4942 21.2901 14.8628 20.4923C15.2314 19.6944 15.3156 18.7944 15.1016 17.942L14.5642 15.8132H20.4099C20.7901 15.8131 21.1656 15.7285 21.5091 15.5656C21.8526 15.4026 22.1556 15.1653 22.3961 14.8708C22.6366 14.5764 22.8087 14.2321 22.8999 13.863C22.991 13.4939 22.999 13.1091 22.9232 12.7366Z" stroke="#E33838" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,3 @@
<svg width="23" height="21" viewBox="0 0 23 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M21.8516 6.82422C21.6316 6.57493 21.3611 6.37529 21.058 6.23857C20.7549 6.10186 20.4262 6.03118 20.0938 6.03125H14.625V4.46875C14.625 3.43275 14.2135 2.43918 13.4809 1.70661C12.7483 0.97405 11.7548 0.5625 10.7188 0.5625C10.5736 0.562396 10.4313 0.602726 10.3078 0.678966C10.1843 0.755207 10.0845 0.864344 10.0195 0.994141L6.33008 8.375H2.125C1.7106 8.375 1.31317 8.53962 1.02015 8.83265C0.72712 9.12567 0.5625 9.5231 0.5625 9.9375V18.5312C0.5625 18.9457 0.72712 19.3431 1.02015 19.6361C1.31317 19.9291 1.7106 20.0938 2.125 20.0938H18.9219C19.4929 20.0939 20.0443 19.8857 20.4726 19.5081C20.9009 19.1305 21.1767 18.6095 21.248 18.043L22.4199 8.66797C22.4615 8.33791 22.4323 8.0028 22.3343 7.6849C22.2363 7.367 22.0717 7.07361 21.8516 6.82422ZM2.125 9.9375H6.03125V18.5312H2.125V9.9375ZM20.8691 8.47266L19.6973 17.8477C19.6735 18.0365 19.5816 18.2102 19.4388 18.336C19.296 18.4619 19.1122 18.5313 18.9219 18.5312H7.59375V9.34082L11.1787 2.16992C11.71 2.27627 12.1881 2.56343 12.5316 2.98256C12.875 3.40169 13.0627 3.92687 13.0625 4.46875V6.8125C13.0625 7.0197 13.1448 7.21841 13.2913 7.36493C13.4378 7.51144 13.6366 7.59375 13.8438 7.59375H20.0938C20.2046 7.59371 20.3142 7.61727 20.4153 7.66286C20.5163 7.70844 20.6065 7.77502 20.6799 7.85815C20.7532 7.94129 20.808 8.03908 20.8407 8.14503C20.8733 8.25098 20.883 8.36266 20.8691 8.47266Z" fill="#34C759"/>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -6,8 +6,7 @@ import 'package:flutter_svg/svg.dart';
import 'package:glassmorphism/glassmorphism.dart';
import 'package:traderscircuit/Utils/Common/MainController.dart';
GlassmorphicContainer bottomnavigationbar(
MainController _mainController) {
GlassmorphicContainer bottomnavigationbar(MainController _mainController) {
return GlassmorphicContainer(
width: double.infinity,
height: 83.h,
@@ -76,9 +75,9 @@ GlassmorphicContainer bottomnavigationbar(
shape: BoxShape.circle,
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.4),
color: Colors.grey.withOpacity(0.2),
spreadRadius: 15,
blurRadius: 10,
blurRadius: 5,
offset: Offset(0, 10),
),
],

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:glassmorphism/glassmorphism.dart';
class CustomTextFormField extends StatefulWidget {
@@ -145,3 +146,156 @@ class _CustomTextFormFieldState extends State<CustomTextFormField> {
);
}
}
class CustomTextFormField1 extends StatefulWidget {
const CustomTextFormField1({
Key? key,
this.validator,
this.textEditingController,
this.hintText,
this.leadingIcon,
this.prefixIconColor = const Color(0xFF737373),
this.isInputPassword = false,
this.validatorText,
this.value,
this.readonly = false,
this.enabled = true,
this.maxlines = 1,
this.texttype,
this.inputFormatters,
this.onInput,
this.onTap,
this.suffixIcon,
}) : super(key: key);
final dynamic validator;
final TextEditingController? textEditingController;
final String? hintText;
final Widget? leadingIcon;
final Color prefixIconColor;
final bool isInputPassword;
final String? validatorText;
final String? value;
final bool readonly;
final bool enabled;
final int maxlines;
final TextInputType? texttype;
final dynamic inputFormatters;
final Function(String)? onInput;
final VoidCallback? onTap;
final Widget? suffixIcon;
@override
State<CustomTextFormField1> createState() => _CustomTextFormField1State();
}
class _CustomTextFormField1State extends State<CustomTextFormField1> {
late bool obscureText;
@override
void initState() {
super.initState();
obscureText = widget.isInputPassword;
}
@override
Widget build(BuildContext context) {
return GlassmorphicContainer(
width: double.infinity,
height: 50,
borderRadius: 8,
blur: 10,
alignment: Alignment.bottomCenter,
border: 0.8,
linearGradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0xFFffffff).withOpacity(0.1),
Color(0xFFFFFFFF).withOpacity(0.05),
],
stops: [
0.1,
1,
]),
borderGradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0xff3A3A3A),
Color(0xFF3A3A3A),
],
),
child: TextFormField(
cursorColor: Colors.red,
initialValue: widget.value,
readOnly: widget.readonly,
onTap: widget.onTap,
enabled: widget.enabled,
enableInteractiveSelection: false,
maxLines: widget.maxlines,
autovalidateMode: AutovalidateMode.onUserInteraction,
obscureText: obscureText,
controller: widget.textEditingController,
decoration: InputDecoration(
hintText: widget.hintText,
prefixIconColor: widget.prefixIconColor,
hintStyle: TextStyle(
fontSize: 16.sp,
color: Colors.white,
fontWeight: FontWeight.w400,
fontFamily: 'manrope'),
// ignore: prefer_null_aware_operators
prefixIcon: widget.leadingIcon == null ? null : widget.leadingIcon!,
suffixIcon: widget.isInputPassword
? GestureDetector(
onTap: () => setState(() => obscureText = !obscureText),
child: obscureText
? const Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Padding(
padding: EdgeInsets.only(right: 20.0),
child: Icon(Icons.remove_red_eye),
),
],
)
: const Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Padding(
padding: EdgeInsets.only(right: 20.0),
child: Icon(
Icons.remove_red_eye_outlined,
color: Color(0xFF959595),
),
),
],
),
)
: widget.suffixIcon == null
? null
: widget.suffixIcon!,
border: InputBorder.none,
contentPadding: EdgeInsets.symmetric(horizontal: 10, vertical: 10),
),
style: TextStyle(color: Colors.white),
keyboardType: widget.texttype,
// validator: widget.validator ??
// (value) {
// if (value == null || value.isEmpty) {
// return "Empty value";
// }
// return null;
// },
inputFormatters: widget.inputFormatters,
onChanged: (value) {
widget.onInput?.call(value);
},
),
);
}
}

View File

@@ -1,5 +1,8 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:glassmorphism/glassmorphism.dart';
import 'package:traderscircuit/Utils/Common/sized_box.dart';
import 'package:traderscircuit/Utils/text.dart';
Widget CommonBtn({void Function()? onTap, required String text}) {
return InkWell(
@@ -23,3 +26,81 @@ Widget CommonBtn({void Function()? onTap, required String text}) {
),
));
}
Widget CommonYesNoBtn({
void Function()? yesonTap,
void Function()? noonTap,
}) {
return Row(
children: [
GestureDetector(
onTap: yesonTap,
child: GlassmorphicContainer(
width: 170.w,
height: 50.h,
borderRadius: 8,
blur: 10,
alignment: Alignment.center,
border: 0.9,
linearGradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Colors.white.withOpacity(0.1),
Color(0xFFFFFFFF).withOpacity(0.05),
],
stops: [
0.1,
1,
],
),
borderGradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color.fromRGBO(70, 5, 1, 0.8),
Color.fromRGBO(102, 102, 102, 0.8),
],
),
child: Center(
child: text18W500('Yes'),
),
),
),
sizedBoxWidth(10.w),
GestureDetector(
onTap: noonTap,
child: Container(
height: 50.h,
width: 170.w,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.r),
border: Border.all(color: Color(0xFF9A0000), width: 1.w),
color: Color(0xFF6C0000)),
child: Center(child: text18W500('No')),
),
)
],
);
// InkWell(
// onTap: onTap,
// child: Container(
// width: double.infinity,
// height: 50.h,
// decoration: BoxDecoration(
// color: Color(0xff9A0000), borderRadius: BorderRadius.circular(5)),
// child: Center(
// child: Text(
// text,
// textAlign: TextAlign.center,
// style: TextStyle(
// color: Colors.white,
// fontSize: 20.sp,
// fontFamily: 'Cambria',
// fontWeight: FontWeight.w400,
// ),
// ),
// ),
// ));
}

View File

@@ -12,6 +12,18 @@ Widget text20W400(String text) {
);
}
Widget text20W400_center(String text) {
return Text(
text,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 20.sp,
color: Colors.white,
fontWeight: FontWeight.w400,
fontFamily: 'manrope'),
);
}
Widget text18W800(String text) {
return Text(
text,
@@ -154,6 +166,7 @@ Widget text12W400(String text) {
fontFamily: 'manrope'),
);
}
Widget text12W500(String text) {
return Text(
text,
@@ -231,8 +244,8 @@ Widget text14W300(String text) {
);
}
Widget text14W400(String text) { return Text(
Widget text14W400(String text) {
return Text(
text,
style: TextStyle(
fontSize: 14.sp,
@@ -243,13 +256,11 @@ Widget text14W400(String text) { return Text(
}
Widget text14W500(String text) {
return Text(
text,
style: TextStyle(
fontSize: 14.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
fontFamily: 'manrope'),
);
@@ -261,13 +272,11 @@ Widget text16W400_DADADA(String text) {
style: TextStyle(
fontSize: 16.sp,
color: Color(0xFFDADADA),
fontWeight: FontWeight.w400,
fontFamily: 'manrope'),
);
}
Widget text14W400_979797(String text) {
return Text(
text,
@@ -311,4 +320,3 @@ Widget text14W500_black(String text) {
fontFamily: 'manrope'),
);
}

View File

@@ -39,4 +39,6 @@ class RouteName {
static const String termsandcondition = '/termsandcondition';
static const String privacypolicy = '/privacypolicy';
static const String aboutus = '/aboutus';
static const String faqscreen = '/faqscreen';
}

View File

@@ -3,6 +3,7 @@ import 'package:traderscircuit/Utils/Common/noInternet.dart';
import 'package:traderscircuit/resources/routes/route_name.dart';
import 'package:traderscircuit/view/MainScreen/ExploreUnseen.dart';
import 'package:traderscircuit/view/Sidemenu/AboutUs.dart';
import 'package:traderscircuit/view/Sidemenu/FaqScreen.dart';
import 'package:traderscircuit/view/Sidemenu/PrivacyPolicy.dart';
import 'package:traderscircuit/view/Sidemenu/TermsAndCondition.dart';
@@ -133,6 +134,10 @@ class AppRoutes {
GetPage(
name: RouteName.aboutus,
page: () => const AboutUs(),
),
GetPage(
name: RouteName.faqscreen,
page: () => const FaqScreen(),
),
];
}

View File

@@ -30,7 +30,7 @@ class _ShortTradeState extends State<ShortTrade> {
return Scaffold(
key: _scaffoldKey1,
backgroundColor: Colors.black,
drawer: Container(width: 320.w, child: SideMenu()),
drawer: Container(child: SideMenu()),
extendBody: true,
appBar: AppBar(
scrolledUnderElevation: 0.0,
@@ -50,6 +50,7 @@ class _ShortTradeState extends State<ShortTrade> {
),
),
),
// title: text22W600('Short'),
),
// CommonAppbar(
@@ -136,7 +137,7 @@ class _ShortTradeState extends State<ShortTrade> {
Widget ActiveCallsTab() {
return Obx(() {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (selectedIndex == 1) _unlockbottomsheet();
if (selectedIndex == 1 || selectedIndex == 2) _unlockbottomsheet();
});
return selectedIndex == 0
? Column(
@@ -235,18 +236,16 @@ class _ShortTradeState extends State<ShortTrade> {
void _unlockbottomsheet() {
Get.bottomSheet(
SizedBox(
height: 500,
child: commonGlassContainer(
width: double.infinity,
height: 500,
borderradius: 0,
customWidget: SizedBox(
height: 100,
commonGlassContainer(
width: double.infinity,
height: 439.h,
borderradius: 4,
customWidget: Center(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 35.w),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
sizedBoxHeight(50.h),
// Image.asset(
// 'assets/images/png/Group 1000003722.png',
// height: 100.h,
@@ -254,7 +253,11 @@ class _ShortTradeState extends State<ShortTrade> {
// sizedBoxHeight(25.h),
text20W400('Please subscribed to unlock'),
sizedBoxHeight(30.h),
CommonBtn(text: 'Subscribe Now'),
CommonBtn(
text: 'Subscribe Now',
onTap: () {},
),
SizedBox(
height: 100,
)

View File

@@ -0,0 +1,324 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_svg/svg.dart';
import 'package:get/get.dart';
import 'package:traderscircuit/Utils/Common/CommonAppBar.dart';
import 'package:traderscircuit/Utils/Common/CustomTextFormField.dart';
import 'package:traderscircuit/Utils/Common/comonGlassmorphicContainer.dart';
import 'package:traderscircuit/Utils/Common/sized_box.dart';
import 'package:traderscircuit/Utils/text.dart';
import 'package:traderscircuit/view/onBoarding/splashScreen1.dart';
class FaqScreen extends StatefulWidget {
const FaqScreen({super.key});
@override
State<FaqScreen> createState() => _FaqScreenState();
}
class _FaqScreenState extends State<FaqScreen> {
List<String> containerTexts = [
"Subscriptions",
"Investments",
"App features"
];
final selectedIndex = 0.obs;
late RxList<bool> isExpandedList;
@override
void initState() {
isExpandedList = RxList.generate(Faqcard.length, (index) => index == 0);
super.initState();
}
List<Map<String, String>> Faqcard = [
{
'title': 'How to create new account?',
'content':
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since. Lorem Ipsum has been the industry's standard dummy text ever since.",
},
{
'title': 'What is Traders Circuits ?',
'content':
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since. Lorem Ipsum has been the industry's standard dummy text ever since.",
},
{
'title': 'What is Traders Circuits ?',
'content':
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since. Lorem Ipsum has been the industry's standard dummy text ever since.",
},
{
'title': 'What is Traders Circuits ?',
'content':
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since. Lorem Ipsum has been the industry's standard dummy text ever since.",
},
{
'title': 'What is Traders Circuits ?',
'content':
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since. Lorem Ipsum has been the industry's standard dummy text ever since.",
},
];
List<Map<String, String>> Faqcard2 = [
{
'title': 'How to create new account?',
'content':
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since. Lorem Ipsum has been the industry's standard dummy text ever since.",
},
{
'title': 'What is Traders Circuits ?',
'content':
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since. Lorem Ipsum has been the industry's standard dummy text ever since.",
},
];
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: CommonAppbar(
titleTxt: "",
),
backgroundColor: Colors.black,
extendBody: true,
body: Stack(children: [
CommonBlurLeft(),
CommonBlurRight(),
Stack(children: [
Padding(
padding: EdgeInsets.symmetric(horizontal: 16),
child: ListView(physics: BouncingScrollPhysics(), children: [
text25W600('FAQ'),
sizedBoxHeight(20),
CustomTextFormField1(
hintText: 'Search Chats',
leadingIcon: Container(
height: 20,
width: 20,
child: Center(
child: SvgPicture.asset(
'assets/images/svg/search-svgrepo-com.svg',
),
),
),
),
sizedBoxHeight(20.h),
SizedBox(
height: 60,
width: double.infinity,
// color: Colors.amber,
child: ListView.builder(
shrinkWrap: true,
scrollDirection: Axis.horizontal,
itemCount: containerTexts.length,
itemBuilder: (context, index) {
return GestureDetector(
onTap: () {
selectedIndex.value = index;
},
child: Row(
children: [
topContainer(containerTexts[index], index),
sizedBoxWidth(10.w)
],
),
);
}),
),
sizedBoxHeight(20.h),
Obx(() {
return selectedIndex == 0
? Column(
children: List.generate(Faqcard.length, (index) {
return customExpandableItem(
isExpanded: isExpandedList[index],
title: Faqcard[index]['title']!,
content: Faqcard[index]['content']!,
toggleExpansion: () => toggleExpansion(index),
);
}))
: Column(
children: List.generate(Faqcard2.length, (index) {
return customExpandableItem(
isExpanded: isExpandedList[index],
title: Faqcard2[index]['title']!,
content: Faqcard2[index]['content']!,
toggleExpansion: () => toggleExpansion(index),
);
}));
}),
// ListView.builder(
// shrinkWrap: true,
// itemCount: Faqcard.length,
// itemBuilder: (BuildContext context, int index) {
// return Obx(
// () {
// return customExpandableItem(
// isExpanded: isExpandedList[index],
// title: Faqcard[index]['title']!,
// content: Faqcard[index]['content']!,
// toggleExpansion: () => toggleExpansion(index),
// );
// },
// );
// },
// ),
sizedBoxHeight(30.h),
]))
])
]));
}
Widget topContainer(String text, int index) {
return Obx(() {
return selectedIndex.value == index
? Container(
height: 38.h,
width: 136.w,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5),
color: Color(0XFF3F0502),
border: Border.all(color: Color(0xFF9A0000), width: 1)),
child: Center(child: text16W500(text)),
)
: commonGlassContainer(
width: 136.w,
height: 38.h,
borderradius: 5,
customWidget: Center(child: text16W400(text)),
);
});
}
void toggleExpansion(int index) {
// isExpandedList[index] = !isExpandedList[index];
for (int i = 0; i < isExpandedList.length; i++) {
if (i != index) {
isExpandedList[i] = false;
}
}
// Toggle the expansion state of the container being toggled
isExpandedList[index] = !isExpandedList[index];
}
Widget customExpandableItem({
required bool isExpanded,
required String title,
required String content,
required VoidCallback toggleExpansion,
}) {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
GestureDetector(
onTap: toggleExpansion,
child: commonGlassContainer(
width: double.infinity,
height: isExpanded ? 55.h : 65.h,
borderradius: 8,
customWidget: Padding(
padding: EdgeInsets.only(right: 13.w, left: 13.w),
child: Center(
child: Row(
children: [
Text(
title,
style: TextStyle(
fontFamily: 'manrope',
fontSize: 16.sp,
fontWeight: FontWeight.w500,
color: Colors.white,
),
),
Spacer(),
Icon(
isExpanded
? Icons.keyboard_arrow_up_outlined
: Icons.keyboard_arrow_down_outlined,
color: Colors.white,
size: 25.sp,
),
],
),
),
),
),
),
Visibility(
visible: isExpanded,
child: Column(
children: [
Container(
height: 198.h,
width: double.infinity,
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(8.r),
bottomRight: Radius.circular(8.r),
),
color: Colors.black,
border: Border.all(color: Color(0xFF3A3A3A), width: 0.5)),
child: Padding(
padding: EdgeInsets.only(
top: 11.h, left: 14.w, bottom: 25.h, right: 28.w),
child: Text(
content,
style: TextStyle(
color: Color(0xFFFFFFFF),
fontFamily: 'manrope',
fontSize: 14.sp,
fontWeight: FontWeight.w400,
),
),
),
),
sizedBoxHeight(12.h),
commonGlassContainer(
width: double.infinity,
height: 65.h,
borderradius: 8,
customWidget: Padding(
padding: EdgeInsets.only(right: 8.w, left: 13.w),
child: Center(
child: Row(children: [
Text(
'Was this answer helpful?',
style: TextStyle(
fontFamily: 'manrope',
fontSize: 16.sp,
fontWeight: FontWeight.w500,
color: Colors.white,
),
),
Spacer(),
Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
text16W500('Yes'),
sizedBoxWidth(2.w),
SvgPicture.asset(
'assets/images/svg/thumbs-up.svg'),
sizedBoxWidth(8.w),
text16W500('No'),
sizedBoxWidth(2.w),
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
sizedBoxHeight(5.h),
SvgPicture.asset(
'assets/images/svg/thumbs-down.svg'),
],
)
],
)
]),
)))
],
),
),
isExpanded ? sizedBoxHeight(40.h) : sizedBoxHeight(18.h),
],
);
}
}

View File

@@ -2,6 +2,8 @@ import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_svg/svg.dart';
import 'package:get/get.dart';
import 'package:traderscircuit/Utils/Common/commonBotton.dart';
import 'package:traderscircuit/Utils/Common/comonGlassmorphicContainer.dart';
import 'package:traderscircuit/Utils/Common/sized_box.dart';
import 'package:traderscircuit/Utils/text.dart';
import 'package:traderscircuit/resources/routes/route_name.dart';
@@ -108,7 +110,7 @@ class _SideMenuState extends State<SideMenu> {
decoration: ShapeDecoration(
image: DecorationImage(
image: AssetImage(
"assets/images/png/Ellipse 560.png"),
"assets/images/png/Ellipse 560 (1).png"),
fit: BoxFit.fill,
),
shape: const OvalBorder(),
@@ -141,11 +143,8 @@ class _SideMenuState extends State<SideMenu> {
),
),
ListTile(
leading: SizedBox(
width: 25.w,
height: 25.h,
child: SvgPicture.asset(
'assets/images/svg/sidemenu/sub.svg')),
leading:
SvgPicture.asset('assets/images/svg/sidemenu/sub.svg'),
title: text18W400('My Subscription'),
trailing: Container(
height: 35.h,
@@ -176,11 +175,8 @@ class _SideMenuState extends State<SideMenu> {
),
),
ListTile(
leading: SizedBox(
width: 25.w,
height: 25.h,
child: SvgPicture.asset(
'assets/images/svg/sidemenu/content.svg')),
leading: SvgPicture.asset(
'assets/images/svg/sidemenu/content.svg'),
title: text18W400('Content bytes'),
selected: true,
onTap: () {
@@ -206,7 +202,7 @@ class _SideMenuState extends State<SideMenu> {
width: 25.w,
height: 25.h,
child: SvgPicture.asset(
'assets/images/svg/sidemenu/sub.svg')),
'assets/images/svg/sidemenu/Gray.svg')),
title: text18W400('Update My KYC'),
trailing: Container(
height: 40.h,
@@ -256,11 +252,8 @@ class _SideMenuState extends State<SideMenu> {
),
),
ListTile(
leading: SizedBox(
width: 25.w,
height: 25.h,
child: SvgPicture.asset(
'assets/images/svg/sidemenu/sub.svg')),
leading: SvgPicture.asset(
'assets/images/svg/sidemenu/Group 51347.svg'),
title: text18W400('My Subscription'),
trailing: Container(
height: 35.h,
@@ -402,7 +395,7 @@ void navigateTo(int index, BuildContext context) {
switch (index) {
case 0:
{
// Get.toNamed(RouteName.FAQScreen);
Get.toNamed(RouteName.faqscreen);
}
break;
@@ -420,124 +413,57 @@ void navigateTo(int index, BuildContext context) {
case 3:
{
// Get.toNamed(RouteName.contactUs);
Get.toNamed(RouteName.termsandcondition);
}
break;
case 4:
{
Get.toNamed(RouteName.termsandcondition);
Get.toNamed(RouteName.privacypolicy);
}
break;
case 5:
{
Get.toNamed(RouteName.privacypolicy);
Get.toNamed(RouteName.aboutus);
}
break;
case 6:
{
Get.toNamed(RouteName.aboutus);
// Get.toNamed(RouteName.settings);
}
break;
case 7:
{
Get.bottomSheet(
Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
SizedBox(
width: double.infinity,
child: SvgPicture.asset('assets/images/svg/logout.svg'),
),
Text(
'Are You Sure You Want To Logout?',
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.black,
fontSize: 20.sp,
commonGlassContainer(
width: double.infinity,
height: 363.h,
borderradius: 4,
customWidget: Center(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 20.w),
child: Column(
children: [
sizedBoxHeight(60.h),
// Image.asset(
// 'assets/images/png/Group 1000003722.png',
// height: 100.h,
// ),
// sizedBoxHeight(25.h),
text22W600('Confirm Logout'),
sizedBoxHeight(30.h),
text20W400_center(
'Are you sure you want to logout your account?'),
sizedBoxHeight(50.h),
CommonYesNoBtn(),
],
),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
InkWell(
onTap: () {
Navigator.of(context).pop();
},
child: Container(
width: 150.w,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(5.r),
border: Border.all(
color: Colors.black,
),
),
child: Padding(
padding: const EdgeInsets.all(18.0),
child: Text(
'No',
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.black,
fontSize: 16.sp,
),
),
),
),
),
InkWell(
// onTap: () async {
// FirebaseAuth auth = FirebaseAuth.instance;
// final GoogleSignIn googleSignIn = GoogleSignIn();
// if (auth.currentUser != null &&
// auth.currentUser?.providerData.any((userInfo) =>
// userInfo.providerId == 'google.com') ==
// true) {
// await googleSignIn.signOut();
// Navigator.of(context).pop();
// Get.back();
// Get.toNamed(RouteName.login);
// } else {
// SharedPreferences prefs =
// await SharedPreferences.getInstance();
// prefs.remove('token');
// Navigator.of(context).pop();
// Get.back();
// Get.toNamed(RouteName.login);
// }
// },
onTap: () {
Get.back();
// Get.toNamed(RouteName.login);
},
child: Container(
width: 150.w,
decoration: BoxDecoration(
color: Color(0xFF3192D8),
borderRadius: BorderRadius.circular(5.r),
),
child: Padding(
padding: const EdgeInsets.all(18.0),
child: Text(
'Yes',
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white,
fontSize: 16.sp,
),
),
),
),
),
],
)
],
),
),
backgroundColor: Colors.white,
backgroundColor: Colors.black.withOpacity(0.3),
);
}
break;