Commit 23aaf199 authored by Sai Srinivas's avatar Sai Srinivas
Browse files

New Screen and Api added

parent eecc769f
...@@ -26,7 +26,7 @@ android { ...@@ -26,7 +26,7 @@ android {
// You can update the following values to match your application needs. // You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config. // For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = 23 minSdk = 23
targetSdk = flutter.targetSdkVersion targetSdk = 36
versionCode = flutter.versionCode versionCode = flutter.versionCode
versionName = flutter.versionName versionName = flutter.versionName
} }
......
This image diff could not be displayed because it is too large. You can view the blob instead.
<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.7825 0.205566C9.62674 0.205566 7.51943 0.844822 5.72702 2.04249C3.9346 3.24016 2.5376 4.94246 1.71267 6.9341C0.887737 8.92574 0.671929 11.1173 1.09254 13.2316C1.51315 15.3459 2.55128 17.288 4.07565 18.8123C5.60003 20.3365 7.54217 21.3746 9.65649 21.795C11.7708 22.2155 13.9623 21.9996 15.9539 21.1745C17.9455 20.3495 19.6477 18.9524 20.8453 17.1599C22.0429 15.3674 22.682 13.2601 22.6819 11.1043C22.6817 8.21374 21.5333 5.4416 19.4893 3.3977C17.4453 1.35381 14.6731 0.205566 11.7825 0.205566Z" fill="url(#paint0_linear_202_636)"/>
<path d="M17.5689 11.1043C17.5689 11.4245 17.4417 11.7317 17.2153 11.9582C16.9889 12.1848 16.6819 12.3121 16.3616 12.3123H11.7828C11.6242 12.3123 11.4671 12.2812 11.3205 12.2205C11.1739 12.1598 11.0408 12.0708 10.9286 11.9586C10.8165 11.8464 10.7276 11.7132 10.667 11.5666C10.6064 11.42 10.5753 11.2629 10.5754 11.1043V4.00377C10.5827 3.6883 10.7131 3.38819 10.9388 3.16764C11.1645 2.94709 11.4675 2.82361 11.7831 2.82361C12.0987 2.82361 12.4017 2.94709 12.6274 3.16764C12.8531 3.38819 12.9835 3.6883 12.9908 4.00377V9.8995H16.3616C16.6813 9.89967 16.9879 10.0266 17.2142 10.2524C17.4405 10.4782 17.5681 10.7846 17.5689 11.1043Z" fill="url(#paint1_linear_202_636)"/>
<defs>
<linearGradient id="paint0_linear_202_636" x1="0.882463" y1="11.105" x2="22.6819" y2="11.105" gradientUnits="userSpaceOnUse">
<stop stop-color="#6949C6"/>
<stop offset="0.6" stop-color="#7C6EE0"/>
<stop offset="1" stop-color="#A28EEF"/>
</linearGradient>
<linearGradient id="paint1_linear_202_636" x1="16.7012" y1="12.4725" x2="9.15406" y2="4.9253" gradientUnits="userSpaceOnUse">
<stop stop-color="#BCE4ED"/>
<stop offset="0.57" stop-color="white"/>
<stop offset="1" stop-color="white"/>
</linearGradient>
</defs>
</svg>
<svg width="42" height="42" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M26.8984 21.0021L16.8208 21.0021" stroke="#1E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M20.1799 15.9634L15.1411 21.0022L20.1799 26.041" stroke="#1E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M34.4565 31.0797C36.556 28.2748 37.8157 24.7812 37.8157 21.0021C37.8157 11.7307 30.2911 4.2061 21.0197 4.20609C11.7483 4.20609 4.22368 11.7307 4.22368 21.0021C4.22367 30.2735 11.7483 37.7981 21.0197 37.7981C23.4215 37.7981 25.7226 37.2942 27.7885 36.3704" stroke="#1E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.4376 1.70711C13.8281 1.31658 13.8281 0.683417 13.4376 0.292893C13.0471 -0.0976311 12.4139 -0.097631 12.0234 0.292893L12.7305 1L13.4376 1.70711ZM-3.43156e-05 12.7305C-3.40162e-05 13.2828 0.447681 13.7305 0.999966 13.7305L9.99997 13.7305C10.5523 13.7305 11 13.2828 11 12.7305C11 12.1782 10.5523 11.7305 9.99997 11.7305L1.99997 11.7305L1.99997 3.7305C1.99997 3.17822 1.55225 2.7305 0.999965 2.7305C0.447681 2.7305 -3.46572e-05 3.17822 -3.42735e-05 3.7305L-3.43156e-05 12.7305ZM12.7305 1L12.0234 0.292893L0.292859 12.0234L0.999966 12.7305L1.70707 13.4376L13.4376 1.70711L12.7305 1Z" fill="#4CAF50"/>
</svg>
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0.292893 12.0234C-0.0976311 12.4139 -0.0976311 13.0471 0.292893 13.4376C0.683418 13.8281 1.31658 13.8281 1.70711 13.4376L1 12.7305L0.292893 12.0234ZM13.7305 0.999965C13.7305 0.44768 13.2828 -3.50516e-05 12.7305 -3.53045e-05L3.7305 -3.45037e-05C3.17822 -3.48408e-05 2.7305 0.447681 2.7305 0.999965C2.7305 1.55225 3.17822 1.99996 3.7305 1.99997L11.7305 1.99996L11.7305 9.99996C11.7305 10.5522 12.1782 11 12.7305 11C13.2828 11 13.7305 10.5522 13.7305 9.99997L13.7305 0.999965ZM1 12.7305L1.70711 13.4376L13.4376 1.70707L12.7305 0.999965L12.0234 0.292858L0.292893 12.0234L1 12.7305Z" fill="#ED3424"/>
</svg>
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.27 18.54C14.3897 18.54 18.54 14.3897 18.54 9.27C18.54 4.15032 14.3897 0 9.27 0C4.15032 0 0 4.15032 0 9.27C0 14.3897 4.15032 18.54 9.27 18.54Z" fill="#FF4C4C"/>
<path d="M11.2671 9.30439L14.0234 12.0608L12.0547 14.0299L9.29792 11.2732L9.27365 11.2978L6.54154 14.0299L4.57239 12.0608L7.32913 9.30439L4.57239 6.54765L6.54154 4.57886L9.27365 7.31097L9.29792 7.33523L12.0547 4.57886L14.0234 6.54765L11.2671 9.30439Z" fill="white"/>
</svg>
<svg width="320" height="2" viewBox="0 0 320 2" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="0.742676" y1="0.880029" x2="319.62" y2="0.880029" stroke="#777777" stroke-width="0.3"/>
</svg>
<svg width="21" height="18" viewBox="0 0 21 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M16.8848 0.286377C17.1386 0.267292 17.3906 0.345483 17.5889 0.505127C17.6726 0.58119 18.431 1.29275 19.1816 2.70435C19.6289 3.55216 19.9757 4.44922 20.2158 5.3772V5.37622C20.8355 7.83378 20.8355 10.4069 20.2158 12.8645C19.9756 13.7901 19.6276 14.6847 19.1797 15.5295C18.4316 16.9339 17.6744 17.6389 17.5879 17.717C17.3904 17.8948 17.1296 17.9877 16.8643 17.9739C16.599 17.96 16.3497 17.8411 16.1719 17.6438C15.9959 17.4474 15.9042 17.1894 15.917 16.926C15.9299 16.6624 16.0467 16.4139 16.2412 16.2356C16.2654 16.2138 16.8513 15.6524 17.4297 14.5627C17.8007 13.8571 18.088 13.1104 18.2861 12.3381C18.8121 10.2253 18.8121 8.01543 18.2861 5.90259C18.0871 5.12706 17.7997 4.37675 17.4287 3.66724C16.8473 2.5688 16.2587 2.00037 16.2363 1.97974C16.0602 1.79593 15.9609 1.55169 15.958 1.29712C15.9552 1.04254 16.0496 0.796287 16.2217 0.608643C16.3938 0.421055 16.6309 0.305557 16.8848 0.286377ZM7.54785 3.10571C8.14398 2.50202 9.06934 2.41266 9.82227 2.89673C10.6242 3.41384 11.2466 4.25025 11.4082 5.21606C11.5603 6.13177 11.7067 7.3906 11.7031 9.11353C11.6996 10.8362 11.5585 12.0949 11.4082 13.01C11.2496 13.9711 10.631 14.8048 9.83496 15.3225C9.07732 15.8142 8.13831 15.7142 7.54395 15.0969C6.55578 14.0634 5.48649 13.0293 4.3916 11.9934C3.95494 11.5858 3.37858 11.3602 2.78125 11.3625H2.06055C1.31 11.3625 0.675784 10.7841 0.65918 10.0842C0.642673 9.38448 0.64327 8.68928 0.65918 7.98364C0.675099 7.2779 1.31566 6.7054 2.06738 6.70532H2.84961C3.43663 6.70758 4.0037 6.48851 4.4375 6.09302C5.51584 5.09603 6.56973 4.09975 7.54785 3.10571ZM13.6943 2.65259C13.9476 2.63323 14.1991 2.71065 14.3975 2.86938C14.4629 2.92598 15.0273 3.45636 15.5762 4.48853C15.9002 5.10202 16.1523 5.75145 16.3262 6.4231C16.5525 7.3037 16.6651 8.21016 16.6611 9.11938C16.6643 10.0282 16.5507 10.9339 16.3232 11.8137C16.1492 12.4838 15.8968 13.131 15.5723 13.7424C15.0221 14.7713 14.4551 15.2948 14.3926 15.3538C14.1936 15.5116 13.9426 15.5881 13.6895 15.5676C13.4362 15.5471 13.1993 15.4314 13.0283 15.2434C12.8575 15.0556 12.7643 14.8098 12.7676 14.5559C12.771 14.3019 12.8711 14.0586 13.0469 13.8752C13.0705 13.8528 13.4469 13.4842 13.8213 12.7766C14.0685 12.3039 14.2598 11.804 14.3926 11.2874C14.5718 10.579 14.661 9.85099 14.6572 9.12036C14.6572 5.93219 13.1281 4.42359 13.0449 4.34399C12.8697 4.16009 12.7711 3.91636 12.7686 3.66235C12.7661 3.40817 12.8604 3.16218 13.0322 2.97485C13.204 2.78756 13.4409 2.67208 13.6943 2.65259Z" fill="url(#paint0_linear_202_640)"/>
<path d="M16.8848 0.286377C17.1386 0.267292 17.3906 0.345483 17.5889 0.505127C17.6726 0.58119 18.431 1.29275 19.1816 2.70435C19.6289 3.55216 19.9757 4.44922 20.2158 5.3772V5.37622C20.8355 7.83378 20.8355 10.4069 20.2158 12.8645C19.9756 13.7901 19.6276 14.6847 19.1797 15.5295C18.4316 16.9339 17.6744 17.6389 17.5879 17.717C17.3904 17.8948 17.1296 17.9877 16.8643 17.9739C16.599 17.96 16.3497 17.8411 16.1719 17.6438C15.9959 17.4474 15.9042 17.1894 15.917 16.926C15.9299 16.6624 16.0467 16.4139 16.2412 16.2356C16.2654 16.2138 16.8513 15.6524 17.4297 14.5627C17.8007 13.8571 18.088 13.1104 18.2861 12.3381C18.8121 10.2253 18.8121 8.01543 18.2861 5.90259C18.0871 5.12706 17.7997 4.37675 17.4287 3.66724C16.8473 2.5688 16.2587 2.00037 16.2363 1.97974C16.0602 1.79593 15.9609 1.55169 15.958 1.29712C15.9552 1.04254 16.0496 0.796287 16.2217 0.608643C16.3938 0.421055 16.6309 0.305557 16.8848 0.286377ZM7.54785 3.10571C8.14398 2.50202 9.06934 2.41266 9.82227 2.89673C10.6242 3.41384 11.2466 4.25025 11.4082 5.21606C11.5603 6.13177 11.7067 7.3906 11.7031 9.11353C11.6996 10.8362 11.5585 12.0949 11.4082 13.01C11.2496 13.9711 10.631 14.8048 9.83496 15.3225C9.07732 15.8142 8.13831 15.7142 7.54395 15.0969C6.55578 14.0634 5.48649 13.0293 4.3916 11.9934C3.95494 11.5858 3.37858 11.3602 2.78125 11.3625H2.06055C1.31 11.3625 0.675784 10.7841 0.65918 10.0842C0.642673 9.38448 0.64327 8.68928 0.65918 7.98364C0.675099 7.2779 1.31566 6.7054 2.06738 6.70532H2.84961C3.43663 6.70758 4.0037 6.48851 4.4375 6.09302C5.51584 5.09603 6.56973 4.09975 7.54785 3.10571ZM13.6943 2.65259C13.9476 2.63323 14.1991 2.71065 14.3975 2.86938C14.4629 2.92598 15.0273 3.45636 15.5762 4.48853C15.9002 5.10202 16.1523 5.75145 16.3262 6.4231C16.5525 7.3037 16.6651 8.21016 16.6611 9.11938C16.6643 10.0282 16.5507 10.9339 16.3232 11.8137C16.1492 12.4838 15.8968 13.131 15.5723 13.7424C15.0221 14.7713 14.4551 15.2948 14.3926 15.3538C14.1936 15.5116 13.9426 15.5881 13.6895 15.5676C13.4362 15.5471 13.1993 15.4314 13.0283 15.2434C12.8575 15.0556 12.7643 14.8098 12.7676 14.5559C12.771 14.3019 12.8711 14.0586 13.0469 13.8752C13.0705 13.8528 13.4469 13.4842 13.8213 12.7766C14.0685 12.3039 14.2598 11.804 14.3926 11.2874C14.5718 10.579 14.661 9.85099 14.6572 9.12036C14.6572 5.93219 13.1281 4.42359 13.0449 4.34399C12.8697 4.16009 12.7711 3.91636 12.7686 3.66235C12.7661 3.40817 12.8604 3.16218 13.0322 2.97485C13.204 2.78756 13.4409 2.67208 13.6943 2.65259Z" fill="url(#paint1_linear_202_640)"/>
<path d="M16.8848 0.286377C17.1386 0.267292 17.3906 0.345483 17.5889 0.505127C17.6726 0.58119 18.431 1.29275 19.1816 2.70435C19.6289 3.55216 19.9757 4.44922 20.2158 5.3772V5.37622C20.8355 7.83378 20.8355 10.4069 20.2158 12.8645C19.9756 13.7901 19.6276 14.6847 19.1797 15.5295C18.4316 16.9339 17.6744 17.6389 17.5879 17.717C17.3904 17.8948 17.1296 17.9877 16.8643 17.9739C16.599 17.96 16.3497 17.8411 16.1719 17.6438C15.9959 17.4474 15.9042 17.1894 15.917 16.926C15.9299 16.6624 16.0467 16.4139 16.2412 16.2356C16.2654 16.2138 16.8513 15.6524 17.4297 14.5627C17.8007 13.8571 18.088 13.1104 18.2861 12.3381C18.8121 10.2253 18.8121 8.01543 18.2861 5.90259C18.0871 5.12706 17.7997 4.37675 17.4287 3.66724C16.8473 2.5688 16.2587 2.00037 16.2363 1.97974C16.0602 1.79593 15.9609 1.55169 15.958 1.29712C15.9552 1.04254 16.0496 0.796287 16.2217 0.608643C16.3938 0.421055 16.6309 0.305557 16.8848 0.286377ZM7.54785 3.10571C8.14398 2.50202 9.06934 2.41266 9.82227 2.89673C10.6242 3.41384 11.2466 4.25025 11.4082 5.21606C11.5603 6.13177 11.7067 7.3906 11.7031 9.11353C11.6996 10.8362 11.5585 12.0949 11.4082 13.01C11.2496 13.9711 10.631 14.8048 9.83496 15.3225C9.07732 15.8142 8.13831 15.7142 7.54395 15.0969C6.55578 14.0634 5.48649 13.0293 4.3916 11.9934C3.95494 11.5858 3.37858 11.3602 2.78125 11.3625H2.06055C1.31 11.3625 0.675784 10.7841 0.65918 10.0842C0.642673 9.38448 0.64327 8.68928 0.65918 7.98364C0.675099 7.2779 1.31566 6.7054 2.06738 6.70532H2.84961C3.43663 6.70758 4.0037 6.48851 4.4375 6.09302C5.51584 5.09603 6.56973 4.09975 7.54785 3.10571ZM13.6943 2.65259C13.9476 2.63323 14.1991 2.71065 14.3975 2.86938C14.4629 2.92598 15.0273 3.45636 15.5762 4.48853C15.9002 5.10202 16.1523 5.75145 16.3262 6.4231C16.5525 7.3037 16.6651 8.21016 16.6611 9.11938C16.6643 10.0282 16.5507 10.9339 16.3232 11.8137C16.1492 12.4838 15.8968 13.131 15.5723 13.7424C15.0221 14.7713 14.4551 15.2948 14.3926 15.3538C14.1936 15.5116 13.9426 15.5881 13.6895 15.5676C13.4362 15.5471 13.1993 15.4314 13.0283 15.2434C12.8575 15.0556 12.7643 14.8098 12.7676 14.5559C12.771 14.3019 12.8711 14.0586 13.0469 13.8752C13.0705 13.8528 13.4469 13.4842 13.8213 12.7766C14.0685 12.3039 14.2598 11.804 14.3926 11.2874C14.5718 10.579 14.661 9.85099 14.6572 9.12036C14.6572 5.93219 13.1281 4.42359 13.0449 4.34399C12.8697 4.16009 12.7711 3.91636 12.7686 3.66235C12.7661 3.40817 12.8604 3.16218 13.0322 2.97485C13.204 2.78756 13.4409 2.67208 13.6943 2.65259Z" fill="url(#paint2_linear_202_640)"/>
<defs>
<linearGradient id="paint0_linear_202_640" x1="21.3216" y1="13.8632" x2="11.9121" y2="5.45341" gradientUnits="userSpaceOnUse">
<stop stop-color="#FE7838"/>
<stop offset="0.54" stop-color="#FE7636"/>
<stop offset="1" stop-color="#FFAD8A"/>
</linearGradient>
<linearGradient id="paint1_linear_202_640" x1="21.3876" y1="16.8907" x2="25.2641" y2="-2.25116" gradientUnits="userSpaceOnUse">
<stop offset="0.104545" stop-color="#E0257D"/>
<stop offset="0.809095" stop-color="#FF6BBA"/>
</linearGradient>
<linearGradient id="paint2_linear_202_640" x1="0.648051" y1="9.12919" x2="20.6805" y2="9.12919" gradientUnits="userSpaceOnUse">
<stop stop-color="#0CAA0C"/>
<stop offset="0.6" stop-color="#4BD14B"/>
<stop offset="1" stop-color="#60E260"/>
</linearGradient>
</defs>
</svg>
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_194_613)">
<path d="M10.5518 19.9245L17.0833 9.83854C17.5282 9.15166 17.1433 8.33864 16.3729 8.33864H11.764L12.6778 1.83519C12.8316 0.748332 11.4171 0.398738 10.7894 1.36791L4.25791 11.4538C3.81294 12.1411 4.19791 12.9537 4.96825 12.9537H9.5772L8.66341 19.4572C8.51034 20.544 9.9241 20.8936 10.5518 19.9245Z" fill="#F9973E"/>
<path d="M9.21415 15.5386C10.8 14.9428 12.2221 13.9796 13.3639 12.7281C14.5058 11.4766 15.3347 9.97237 15.783 8.33864H11.764L12.6778 1.83519C12.8316 0.748332 11.4171 0.398738 10.7894 1.36791L4.25791 11.4538C3.81294 12.1411 4.19791 12.9537 4.96825 12.9537H9.5772L9.21415 15.5386Z" fill="#FCA84C"/>
</g>
<defs>
<clipPath id="clip0_194_613">
<rect width="19.6911" height="19.6911" fill="white" transform="translate(0.824707 0.800659)"/>
</clipPath>
</defs>
</svg>
<svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_202_652)">
<path d="M12.7824 0.525146C6.9453 0.525146 2.21313 5.25731 2.21313 11.0944C2.21313 16.9315 6.9453 21.6632 12.7824 21.6632C18.6195 21.6632 23.3516 16.9315 23.3516 11.0944C23.3516 5.25731 18.6195 0.525146 12.7824 0.525146ZM11.1708 18.9534C10.9847 18.9534 10.8029 18.8982 10.6482 18.7949C10.4935 18.6916 10.3729 18.5447 10.3017 18.3728C10.2305 18.2009 10.2118 18.0118 10.2481 17.8293C10.2844 17.6469 10.3739 17.4793 10.5054 17.3477C10.6369 17.2161 10.8045 17.1265 10.987 17.0901C11.1694 17.0538 11.3585 17.0723 11.5304 17.1434C11.7023 17.2146 11.8493 17.3351 11.9527 17.4897C12.0561 17.6443 12.1114 17.8262 12.1115 18.0122C12.1116 18.1358 12.0873 18.2582 12.04 18.3724C11.9928 18.4865 11.9235 18.5903 11.8361 18.6777C11.7488 18.7651 11.645 18.8344 11.5309 18.8818C11.4167 18.9291 11.2943 18.9534 11.1708 18.9534ZM14.394 18.9534C14.208 18.9533 14.0262 18.8981 13.8716 18.7947C13.7169 18.6913 13.5964 18.5443 13.5253 18.3725C13.4542 18.2006 13.4356 18.0115 13.4719 17.829C13.5082 17.6466 13.5978 17.479 13.7293 17.3475C13.8608 17.216 14.0284 17.1264 14.2109 17.0901C14.3933 17.0538 14.5824 17.0723 14.7543 17.1435C14.9261 17.2146 15.0731 17.3351 15.1765 17.4898C15.2799 17.6444 15.3351 17.8262 15.3352 18.0122C15.3353 18.1358 15.311 18.2582 15.2637 18.3725C15.2164 18.4867 15.1471 18.5905 15.0597 18.6779C14.9723 18.7653 14.8685 18.8346 14.7543 18.8819C14.64 18.9292 14.5176 18.9535 14.394 18.9534ZM15.3095 8.38415C14.922 9.57724 14.5456 10.781 14.116 11.9494C13.9527 12.395 13.5492 12.7147 13.0701 12.8131C12.7041 12.8938 12.3211 12.8283 12.0028 12.6305C11.6844 12.4328 11.4559 12.1185 11.366 11.7546C11.242 11.2819 11.3495 10.7786 11.6765 10.4346C12.5334 9.53123 13.4465 8.66172 14.3431 7.78397C14.7869 7.35527 15.4951 7.79657 15.3095 8.38415ZM18.216 17.7816C18.1237 17.864 18.0157 17.9269 17.8986 17.9666C17.7814 18.0063 17.6575 18.022 17.5341 18.0127C17.4108 18.0034 17.2906 17.9693 17.1807 17.9125C17.0708 17.8557 16.9735 17.7774 16.8945 17.6821C16.8156 17.5869 16.7567 17.4767 16.7213 17.3582C16.6859 17.2397 16.6748 17.1152 16.6886 16.9923C16.7024 16.8694 16.7408 16.7505 16.8016 16.6427C16.8623 16.535 16.9442 16.4406 17.0423 16.3652C17.144 16.2805 17.2433 16.1933 17.3392 16.1036C17.0957 15.7849 16.852 15.4667 16.6082 15.1489C16.1437 14.5366 16.7942 13.7233 17.4937 14.042C17.8567 14.2106 18.2203 14.3784 18.5846 14.5453C19.4566 13.038 19.7256 11.2564 19.3374 9.55884C18.9334 9.61696 18.5297 9.67542 18.1264 9.73419C17.3649 9.84124 16.9725 8.87631 17.5935 8.42145C17.931 8.17731 18.2681 7.9322 18.605 7.68612C17.6003 5.93742 15.8487 4.6828 13.7948 4.366C13.6934 4.77323 13.5926 5.18045 13.4925 5.58767C13.3046 6.33318 12.2631 6.33318 12.0752 5.58767C11.9754 5.18077 11.8746 4.77355 11.7729 4.366C9.71901 4.68038 7.96739 5.93742 6.96274 7.68612C7.29988 7.93123 7.63703 8.17634 7.97418 8.42145C8.59373 8.87631 8.20136 9.84124 7.44133 9.73419C7.0383 9.67509 6.63463 9.61664 6.23031 9.55884C5.84209 11.2564 6.11105 13.038 6.98308 14.5453C7.34542 14.3764 7.70808 14.208 8.07106 14.0401C8.77054 13.7213 9.4211 14.5347 8.95655 15.1469C8.71241 15.4641 8.46875 15.7823 8.22558 16.1017C8.32246 16.1913 8.41935 16.2785 8.52252 16.3633C8.61749 16.4398 8.6963 16.5344 8.7544 16.6416C8.81249 16.7488 8.8487 16.8665 8.86093 16.9878C8.87316 17.1091 8.86116 17.2316 8.82563 17.3483C8.7901 17.4649 8.73174 17.5733 8.65395 17.6672C8.57617 17.7611 8.4805 17.8386 8.3725 17.8952C8.2645 17.9519 8.14634 17.9864 8.02486 17.997C7.90338 18.0075 7.78102 17.9939 7.66488 17.9567C7.54874 17.9196 7.44114 17.8597 7.34832 17.7807C6.36505 16.9666 5.57406 15.9451 5.03204 14.7894C4.49002 13.6337 4.21041 12.3724 4.21325 11.0959C4.21325 6.32736 8.05749 2.44775 12.7824 2.44775C17.5073 2.44775 21.3515 6.32736 21.3515 11.0959C21.3544 12.3724 21.0748 13.6337 20.5327 14.7894C19.9907 15.9451 19.1997 16.9666 18.2165 17.7807L18.216 17.7816ZM15.6089 22.6824C15.6037 23.1219 15.5657 23.5603 15.4951 23.9941C15.3919 24.5783 14.8615 25.1083 14.2773 25.2119C13.2862 25.365 12.2776 25.365 11.2865 25.2119C10.7024 25.1088 10.1724 24.5783 10.0687 23.9941C9.99828 23.5603 9.96039 23.1218 9.9554 22.6824C11.8129 23.1319 13.7509 23.1319 15.6084 22.6824H15.6089Z" fill="url(#paint0_linear_202_652)"/>
<path d="M12.7824 0.525146C6.9453 0.525146 2.21313 5.25731 2.21313 11.0944C2.21313 16.9315 6.9453 21.6632 12.7824 21.6632C18.6195 21.6632 23.3516 16.9315 23.3516 11.0944C23.3516 5.25731 18.6195 0.525146 12.7824 0.525146ZM11.1708 18.9534C10.9847 18.9534 10.8029 18.8982 10.6482 18.7949C10.4935 18.6916 10.3729 18.5447 10.3017 18.3728C10.2305 18.2009 10.2118 18.0118 10.2481 17.8293C10.2844 17.6469 10.3739 17.4793 10.5054 17.3477C10.6369 17.2161 10.8045 17.1265 10.987 17.0901C11.1694 17.0538 11.3585 17.0723 11.5304 17.1434C11.7023 17.2146 11.8493 17.3351 11.9527 17.4897C12.0561 17.6443 12.1114 17.8262 12.1115 18.0122C12.1116 18.1358 12.0873 18.2582 12.04 18.3724C11.9928 18.4865 11.9235 18.5903 11.8361 18.6777C11.7488 18.7651 11.645 18.8344 11.5309 18.8818C11.4167 18.9291 11.2943 18.9534 11.1708 18.9534ZM14.394 18.9534C14.208 18.9533 14.0262 18.8981 13.8716 18.7947C13.7169 18.6913 13.5964 18.5443 13.5253 18.3725C13.4542 18.2006 13.4356 18.0115 13.4719 17.829C13.5082 17.6466 13.5978 17.479 13.7293 17.3475C13.8608 17.216 14.0284 17.1264 14.2109 17.0901C14.3933 17.0538 14.5824 17.0723 14.7543 17.1435C14.9261 17.2146 15.0731 17.3351 15.1765 17.4898C15.2799 17.6444 15.3351 17.8262 15.3352 18.0122C15.3353 18.1358 15.311 18.2582 15.2637 18.3725C15.2164 18.4867 15.1471 18.5905 15.0597 18.6779C14.9723 18.7653 14.8685 18.8346 14.7543 18.8819C14.64 18.9292 14.5176 18.9535 14.394 18.9534ZM15.3095 8.38415C14.922 9.57724 14.5456 10.781 14.116 11.9494C13.9527 12.395 13.5492 12.7147 13.0701 12.8131C12.7041 12.8938 12.3211 12.8283 12.0028 12.6305C11.6844 12.4328 11.4559 12.1185 11.366 11.7546C11.242 11.2819 11.3495 10.7786 11.6765 10.4346C12.5334 9.53123 13.4465 8.66172 14.3431 7.78397C14.7869 7.35527 15.4951 7.79657 15.3095 8.38415ZM18.216 17.7816C18.1237 17.864 18.0157 17.9269 17.8986 17.9666C17.7814 18.0063 17.6575 18.022 17.5341 18.0127C17.4108 18.0034 17.2906 17.9693 17.1807 17.9125C17.0708 17.8557 16.9735 17.7774 16.8945 17.6821C16.8156 17.5869 16.7567 17.4767 16.7213 17.3582C16.6859 17.2397 16.6748 17.1152 16.6886 16.9923C16.7024 16.8694 16.7408 16.7505 16.8016 16.6427C16.8623 16.535 16.9442 16.4406 17.0423 16.3652C17.144 16.2805 17.2433 16.1933 17.3392 16.1036C17.0957 15.7849 16.852 15.4667 16.6082 15.1489C16.1437 14.5366 16.7942 13.7233 17.4937 14.042C17.8567 14.2106 18.2203 14.3784 18.5846 14.5453C19.4566 13.038 19.7256 11.2564 19.3374 9.55884C18.9334 9.61696 18.5297 9.67542 18.1264 9.73419C17.3649 9.84124 16.9725 8.87631 17.5935 8.42145C17.931 8.17731 18.2681 7.9322 18.605 7.68612C17.6003 5.93742 15.8487 4.6828 13.7948 4.366C13.6934 4.77323 13.5926 5.18045 13.4925 5.58767C13.3046 6.33318 12.2631 6.33318 12.0752 5.58767C11.9754 5.18077 11.8746 4.77355 11.7729 4.366C9.71901 4.68038 7.96739 5.93742 6.96274 7.68612C7.29988 7.93123 7.63703 8.17634 7.97418 8.42145C8.59373 8.87631 8.20136 9.84124 7.44133 9.73419C7.0383 9.67509 6.63463 9.61664 6.23031 9.55884C5.84209 11.2564 6.11105 13.038 6.98308 14.5453C7.34542 14.3764 7.70808 14.208 8.07106 14.0401C8.77054 13.7213 9.4211 14.5347 8.95655 15.1469C8.71241 15.4641 8.46875 15.7823 8.22558 16.1017C8.32246 16.1913 8.41935 16.2785 8.52252 16.3633C8.61749 16.4398 8.6963 16.5344 8.7544 16.6416C8.81249 16.7488 8.8487 16.8665 8.86093 16.9878C8.87316 17.1091 8.86116 17.2316 8.82563 17.3483C8.7901 17.4649 8.73174 17.5733 8.65395 17.6672C8.57617 17.7611 8.4805 17.8386 8.3725 17.8952C8.2645 17.9519 8.14634 17.9864 8.02486 17.997C7.90338 18.0075 7.78102 17.9939 7.66488 17.9567C7.54874 17.9196 7.44114 17.8597 7.34832 17.7807C6.36505 16.9666 5.57406 15.9451 5.03204 14.7894C4.49002 13.6337 4.21041 12.3724 4.21325 11.0959C4.21325 6.32736 8.05749 2.44775 12.7824 2.44775C17.5073 2.44775 21.3515 6.32736 21.3515 11.0959C21.3544 12.3724 21.0748 13.6337 20.5327 14.7894C19.9907 15.9451 19.1997 16.9666 18.2165 17.7807L18.216 17.7816ZM15.6089 22.6824C15.6037 23.1219 15.5657 23.5603 15.4951 23.9941C15.3919 24.5783 14.8615 25.1083 14.2773 25.2119C13.2862 25.365 12.2776 25.365 11.2865 25.2119C10.7024 25.1088 10.1724 24.5783 10.0687 23.9941C9.99828 23.5603 9.96039 23.1218 9.9554 22.6824C11.8129 23.1319 13.7509 23.1319 15.6084 22.6824H15.6089Z" fill="url(#paint1_linear_202_652)"/>
</g>
<defs>
<linearGradient id="paint0_linear_202_652" x1="20.7513" y1="25.3267" x2="4.81349" y2="0.525147" gradientUnits="userSpaceOnUse">
<stop stop-color="#0024D8"/>
<stop offset="0.6" stop-color="#1B2ACA"/>
<stop offset="1" stop-color="#466E77"/>
</linearGradient>
<linearGradient id="paint1_linear_202_652" x1="20.0709" y1="20.0715" x2="2.21313" y2="-5.90453" gradientUnits="userSpaceOnUse">
<stop stop-color="#0080DE"/>
<stop offset="0.687697" stop-color="#49BCFF"/>
<stop offset="1" stop-color="#61CAFF"/>
</linearGradient>
<clipPath id="clip0_202_652">
<rect width="24.8016" height="24.8016" fill="white" transform="translate(0.381836 0.525146)"/>
</clipPath>
</defs>
</svg>
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.02892 14.0578C10.9109 14.0578 14.0578 10.9109 14.0578 7.02892C14.0578 3.14696 10.9109 0 7.02892 0C3.14696 0 0 3.14696 0 7.02892C0 10.9109 3.14696 14.0578 7.02892 14.0578Z" fill="url(#paint0_linear_350_543)"/>
<path d="M3.88844 6.84107V5.6519H7.0224V5.26789C7.0224 5.11099 6.98936 5.00363 6.9233 4.94583C6.86549 4.88802 6.75401 4.85912 6.58884 4.85912H3.88844V3.66995H10.2926V4.85912H8.52125C8.60383 5.03254 8.66163 5.2968 8.69467 5.6519H10.2926V6.84107H8.6575C8.55015 7.46043 8.29828 7.92288 7.90189 8.22843C7.5055 8.52572 7.03065 8.67437 6.47736 8.67437C6.65078 8.78173 6.84897 8.91386 7.07194 9.07076C7.29491 9.22766 7.59634 9.3887 7.97621 9.55386C8.43866 9.76031 8.83505 9.88006 9.16538 9.91309C9.50396 9.93786 9.71867 9.95025 9.80951 9.95025L9.56177 10.9536C9.4957 10.9701 9.35119 10.9949 9.12822 11.0279C8.91351 11.061 8.64925 11.0775 8.33544 11.0775C8.00511 11.0775 7.65827 11.0238 7.29491 10.9165C6.93156 10.8091 6.55168 10.5572 6.15529 10.1608L5.53593 9.54147C5.20561 9.21115 4.93722 9.00882 4.73077 8.9345C4.52431 8.85192 4.31373 8.81063 4.09902 8.81063H3.88844V7.62146H5.94471C6.242 7.62146 6.48149 7.55952 6.66317 7.43565C6.8531 7.31178 6.96872 7.11358 7.01001 6.84107H3.88844Z" fill="white"/>
<defs>
<linearGradient id="paint0_linear_350_543" x1="11.6726" y1="14.0578" x2="-1.5754" y2="-3.17305" gradientUnits="userSpaceOnUse">
<stop offset="0.2486" stop-color="#EEA700"/>
<stop offset="0.9279" stop-color="#FFD861"/>
</linearGradient>
</defs>
</svg>
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.2687 3.78e-05C14.3876 3.78e-05 18.5374 4.14977 18.5374 9.2687C18.5374 14.3876 14.3876 18.5374 9.2687 18.5374C4.14977 18.5374 3.84453e-05 14.3876 3.84453e-05 9.2687C-0.0145272 4.16429 4.11157 0.0146034 9.21593 3.78e-05C9.23352 -1.26e-05 9.25111 -1.26e-05 9.2687 3.78e-05Z" fill="#3BB54A"/>
<path d="M14.4033 6.71442L7.82044 13.2973L4.13403 9.63722L5.63495 8.16267L7.82044 10.3219L12.9024 5.23987L14.4033 6.71442Z" fill="white"/>
</svg>
class DashboardResponse {
int? error;
String? message;
int? exist;
String? city;
String? raname;
String? mob;
String? mail;
String? address;
String? state;
String? accId;
int? otp;
List<Products>? products;
DashboardResponse(
{this.error,
this.message,
this.exist,
this.city,
this.raname,
this.mob,
this.mail,
this.address,
this.state,
this.accId,
this.otp,
this.products});
DashboardResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
message = json['message'];
exist = json['exist'];
city = json['city'];
raname = json['raname'];
mob = json['mob'];
mail = json['mail'];
address = json['address'];
state = json['state'];
accId = json['acc_id'];
otp = json['otp'];
if (json['products'] != null) {
products = <Products>[];
json['products'].forEach((v) {
products!.add(new Products.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
data['message'] = this.message;
data['exist'] = this.exist;
data['city'] = this.city;
data['raname'] = this.raname;
data['mob'] = this.mob;
data['mail'] = this.mail;
data['address'] = this.address;
data['state'] = this.state;
data['acc_id'] = this.accId;
data['otp'] = this.otp;
if (this.products != null) {
data['products'] = this.products!.map((v) => v.toJson()).toList();
}
return data;
}
}
class Products {
String? orderid;
String? productName;
String? productImage;
String? plan;
String? rentedDate;
String? expiringInColor;
String? expiringText;
String? address;
bool? hasPendingPayment;
String? pendingPaymentText;
Products(
{this.orderid,
this.productName,
this.productImage,
this.plan,
this.rentedDate,
this.expiringInColor,
this.expiringText,
this.address,
this.hasPendingPayment,
this.pendingPaymentText});
Products.fromJson(Map<String, dynamic> json) {
orderid = json['orderid'];
productName = json['productName'];
productImage = json['productImage'];
plan = json['plan'];
rentedDate = json['rentedDate'];
expiringInColor = json['ExpiringInColor'];
expiringText = json['expiringText'];
address = json['address'];
hasPendingPayment = json['hasPendingPayment'];
pendingPaymentText = json['pendingPaymentText'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['orderid'] = this.orderid;
data['productName'] = this.productName;
data['productImage'] = this.productImage;
data['plan'] = this.plan;
data['rentedDate'] = this.rentedDate;
data['ExpiringInColor'] = this.expiringInColor;
data['expiringText'] = this.expiringText;
data['address'] = this.address;
data['hasPendingPayment'] = this.hasPendingPayment;
data['pendingPaymentText'] = this.pendingPaymentText;
return data;
}
}
import 'package:flutter/foundation.dart';
import '../Models/DashboardResponse.dart';
import '../Services/api_calling.dart';
class DashboardProvider with ChangeNotifier {
DashboardResponse? _dashboardData;
bool _isLoading = false;
String? _errorMessage;
// Getters
DashboardResponse? get dashboardData => _dashboardData;
bool get isLoading => _isLoading;
String? get errorMessage => _errorMessage;
/// Fetch Dashboard API
Future<void> fetchDashboard({
required String sessionId,
required String empId,
required String mob,
}) async {
_isLoading = true;
_errorMessage = null;
notifyListeners();
try {
final response =
await ApiCalling.fetchDashboardApi(sessionId, empId, mob);
if (response != null) {
_dashboardData = response;
} else {
_errorMessage = "No data received from server.";
}
} catch (e) {
_errorMessage = "Failed to load dashboard: $e";
}
_isLoading = false;
notifyListeners();
}
/// To clear data (optional)
void clearDashboard() {
_dashboardData = null;
_errorMessage = null;
notifyListeners();
}
}
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:gen_rentals/Services/api_calling.dart';
import '../Models/rentalContactResponse.dart'; class RentalProvider extends ChangeNotifier {
import '../Services/api_calling.dart'; FetchMobileResponse? _response;
FetchMobileResponse? otpResponse;
class RentalContactProvider extends ChangeNotifier {
bool _isLoading = false; bool _isLoading = false;
RentalContactResponse? _rentalContact;
String? _errorMessage;
// Getters FetchMobileResponse? get response => _response;
bool get isLoading => _isLoading; bool get isLoading => _isLoading;
RentalContactResponse? get rentalContact => _rentalContact; bool isOtpLoading = false;
String? get errorMessage => _errorMessage;
/// Call API and fetch rental contact //Fetch registered mobile number
Future<void> fetchRentalContactData( Future<void> fetchRentalMobile(String mob) async {
BuildContext context,
String sessionId,
String empId,
String mob,
) async {
try {
_isLoading = true; _isLoading = true;
_errorMessage = null;
notifyListeners(); notifyListeners();
final data = try {
await ApiCalling.fetchRentalContactApi(sessionId, empId, mob); final result = await ApiCalling.fetchRentalMobileApi(mob);
debugPrint("############################### provider called!"); _response = result;
if (data != null) {
_rentalContact = data;
debugPrint(" Rental Contact fetched: ${data.toJson()}");
if (data.error == 0) {
// success
// toast(context, "Rental Contact fetched successfully");
} else {
// API returned error
_errorMessage = data.message ?? "Unknown error";
// toast(context, _errorMessage!);
}
} else {
_errorMessage = "No response from server";
// toast(context, _errorMessage!);
}
} catch (e) { } catch (e) {
_errorMessage = "❌ Exception: $e"; debugPrint("❌ Provider Error: $e");
debugPrint(_errorMessage); _response = null;
// toast(context, "Something went wrong");
} finally { } finally {
_isLoading = false; _isLoading = false;
notifyListeners(); notifyListeners();
} }
} }
/// Reset state if needed // Fetch OTP for mobile
void reset() { Future<void> fetchMobileOtp(String mob, String otp) async {
_rentalContact = null; isOtpLoading = true;
_errorMessage = null; notifyListeners();
_isLoading = false;
try {
final result = await ApiCalling.fetchMobileOtpApi(mob, otp);
otpResponse = result;
} catch (e) {
debugPrint("❌ OTP API Error: $e");
otpResponse = null;
} finally {
isOtpLoading = false;
notifyListeners(); notifyListeners();
} }
}
}
class FetchMobileResponse {
String? error;
String? errorMsg;
String? accId;
String? message;
FetchMobileResponse({this.error, this.errorMsg});
FetchMobileResponse.fromJson(Map<String, dynamic> json) {
error = json['error'];
errorMsg = json['error_msg'];
accId = json['acc_id'];
message = json['message'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['error'] = this.error;
data['error_msg'] = this.errorMsg;
data['acc_id'] = this.accId;
data['message'] = this.message;
return data;
}
} }
import 'package:flutter/material.dart';
import 'package:gen_rentals/Utility/AppColors.dart';
import 'package:flutter_svg/flutter_svg.dart';
import '../Utility/Reusablewidgets.dart';
class BillDetailListScreen extends StatefulWidget {
const BillDetailListScreen({super.key});
@override
State<BillDetailListScreen> createState() => _BillDetailListScreenState();
}
class _BillDetailListScreenState extends State<BillDetailListScreen> {
@override
Widget build(BuildContext context) {
return SafeArea(
top: false,
child: Scaffold(
appBar: AppBar(
backgroundColor: Colors.white,
elevation: 0,
title: Row(
children: [
InkResponse(
onTap: () => Navigator.pop(context),
child: SvgPicture.asset(
"assets/svg/continue_left_ic.svg",
height: 25,
width: 25,
),
),
const SizedBox(width: 12),
const Text(
"Bill Details",
style: TextStyle(
fontSize: 16,
fontFamily: "Poppins",
fontWeight: FontWeight.w500,
color: Colors.black87,
),
),
],
),
),
backgroundColor: AppColors.backgroundRegular,
body: Container(
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 14),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SectionHeading(title: 'Latest Bill', padding: EdgeInsets.symmetric(horizontal: 0, vertical: 6),),
const SizedBox(height: 12),
// Latest Bill Card
InkResponse(
onTap: () => showPaymentBottomSheet(context),
child: Container(
width: double.infinity,
padding: const EdgeInsets.all(20),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16), // Slightly smaller radius
gradient: const LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0xFFE9FFDD),
Color(0xFFB5FFD1),
],
),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"₹24,800",
style: TextStyle(
fontFamily: "Poppins",
color: AppColors.cardAmountText,
fontSize: 34,
fontWeight: FontWeight.w500,
),
),
Container(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
decoration: BoxDecoration(
// color: Colors.white.withOpacity(0.12),
borderRadius: BorderRadius.circular(12),
),
child: Row(
children: [
SvgPicture.asset(
"assets/svg/success_ic.svg",
height: 18,
width: 18,
),
const SizedBox(width: 6),
Text(
"Bill Paid",
style: TextStyle(
fontFamily: "Poppins",
color: const Color(0xFF212121),
fontSize: 14,
fontWeight: FontWeight.w400,
),
),
],
),
),
],
),
const SizedBox(height: 16),
// Divider
Container(
height: 1,
color: const Color(0xFF777777).withOpacity(0.3),
),
const SizedBox(height: 12),
// Bill Cycle
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"Bill Cycle",
style: TextStyle(
fontFamily: "Poppins",
color: AppColors.subtitleText,
fontWeight: FontWeight.w400,
fontSize: 12,
),
),
Text(
"7th Sep 2025 - 7th Oct 2025", // Fixed date range
style: TextStyle(
fontFamily: "Poppins",
color: AppColors.normalText,
fontWeight: FontWeight.w400, // Medium for dates
fontSize: 12,
),
),
],
),
],
),
),
),
const SizedBox(height: 24),
const SectionHeading(
title: 'All Previous Bills',
padding: EdgeInsets.symmetric(vertical: 8),
),
const SizedBox(height: 8),
// Bill List
Expanded(
child: ListView(
children: [
_buildBillItem(
fromDate: "7th Sep 2025",
toDate: "7th Oct 2025",
amount: "4,220",
),
const SizedBox(height: 8),
_buildBillItem(
fromDate: "7th Aug 2025",
toDate: "7th Sep 2025",
amount: "5,448",
),
const SizedBox(height: 8),
_buildBillItem(
fromDate: "7th Jul 2025",
toDate: "7th Aug 2025",
amount: "5,448",
),
],
),
),
],
),
),
),
);
}
Widget _buildBillItem({
String title = "Bill Cycle",
required String fromDate,
required String toDate,
required String amount,
}) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
decoration: BoxDecoration(
color: Colors.grey.shade50,
borderRadius: BorderRadius.circular(18),
// border: Border.all(
// color: Colors.grey.shade200,
// width: 1,
// ),
// boxShadow: [
// BoxShadow(
// color: Colors.black.withOpacity(0.05),
// blurRadius: 8,
// offset: const Offset(0, 2),
// ),
// ],
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: TextStyle(
fontFamily: "Poppins",
color: AppColors.subtitleText,
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
fontSize: 12,
),
),
const SizedBox(height: 2),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"$fromDate - $toDate",
style: TextStyle(
fontFamily: "Poppins",
color: AppColors.normalText,
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
fontSize: 14,
),
),
Text(
"₹$amount",
style: TextStyle(
fontFamily: "Poppins",
color: AppColors.amountText,
fontSize: 18,
fontWeight: FontWeight.w500,
),
),
],
),
],
),
);
}
void showPaymentBottomSheet(BuildContext context) {
showModalBottomSheet(
context: context,
isScrollControlled: true,
backgroundColor: Colors.transparent,
builder: (BuildContext context) {
return Container(
decoration: const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(24),
topRight: Radius.circular(24),
),
),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// Header - Drag handle
Center(
child: Container(
width: 40,
height: 4,
decoration: BoxDecoration(
color: Colors.grey.shade300,
borderRadius: BorderRadius.circular(2),
),
),
),
const SizedBox(height: 20),
Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
"₹4218",
style: TextStyle(
fontFamily: "Poppins",
fontSize: 32,
fontWeight: FontWeight.w500,
color: AppColors.cardAmountText,
),
),
Row(
children: [
SvgPicture.asset(
"assets/svg/success_ic.svg",
height: 18,
width: 18,
),
const SizedBox(width: 6),
const Text(
"Bill Paid",
style: TextStyle(
fontFamily: "Poppins",
color: Color(0xFF212121),
fontSize: 14,
fontWeight: FontWeight.w400,
),
),
],
),
],
),
const SizedBox(height: 10),
const Divider(height: 1, color: Color(0xFFEEEEEE)),
const SizedBox(height: 6),
const SectionHeading(title: "Bill Details"),
_buildDetailRow(title: "Total Amount", value: "₹421"),
_buildDetailRow(title: "Bill Cycle", value: "7th Sep,2025 - 7th Oct, 2025"),
_buildDetailRow(title: "Bill Generated Date", value: "8th Oct, 2025"),
_buildDetailRow(title: "Payable Amount", value: "₹421"),
_buildDetailRow(title: "Paid Date/Due Date", value: "7th Oct, 2025"),
const SizedBox(height: 6),
const Divider(height: 1, color: Color(0xFFEEEEEE)),
const SizedBox(height: 14),
// Buttons Row
Row(
children: [
// Download Bill Button - White background
Expanded(
child: Container(
margin: const EdgeInsets.only(right: 8),
child: ElevatedButton(
onPressed: () {
// Handle download bill
},
style: ElevatedButton.styleFrom(
backgroundColor: Colors.white, // White background
foregroundColor: const Color(0xFF008CDE), // Blue text
side: const BorderSide(
color: AppColors.subtitleText, // Blue border
width: 1,
),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
padding: const EdgeInsets.symmetric(vertical: 16),
elevation: 0,
),
child: const Padding(
padding: EdgeInsets.symmetric(horizontal: 10),
child: Text(
"Download Bill",
style: TextStyle(
color: AppColors.normalText,
fontSize: 16,
fontWeight: FontWeight.w500,
),
),
),
),
),
),
// Continue Payment Button - Blue background
Expanded(
child: Container(
margin: const EdgeInsets.only(left: 8),
child: ElevatedButton(
onPressed: () {
// Handle continue payment
},
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFF008CDE),
foregroundColor: Colors.white,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
padding: const EdgeInsets.symmetric(vertical: 16),
),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 10),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text(
"Pay Now",
style: TextStyle(
color: Color(0xFFFFFFFF),
fontSize: 16,
fontWeight: FontWeight.w500,
),
),
const SizedBox(width: 8),
SvgPicture.asset(
"assets/svg/continue_ic.svg",
color: const Color(0xFFFFFFFF),
height: 20,
width: 20,
),
],
),
),
),
),
),
],
),
const SizedBox(height: 8),
],
),
),
);
},
);
}
Widget _buildDetailRow({
required String title,
required String value,
TextStyle? valueStyle,
}) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 12),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
title,
style: const TextStyle(
fontFamily: "Poppins",
fontSize: 14,
fontWeight: FontWeight.w400,
color: Color(0xFF777777),
),
),
Row(
children: [
if (value == "Paid")
SvgPicture.asset(
"assets/svg/success_ic.svg",
height: 18,
width: 18,
),
if (value == "Pending")
SvgPicture.asset(
"assets/svg/failed_ic.svg",
height: 18,
width: 18,
),
const SizedBox(width: 4),
Text(
value,
style: valueStyle ?? const TextStyle(
fontFamily: "Poppins",
fontSize: 14,
fontWeight: FontWeight.w400,
color: AppColors.normalText,
),
),
],
),
],
),
);
}
}
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment