updated the code

dev
suresh 1 year ago
parent b963a37fe0
commit 349cf79fd4

@ -0,0 +1,5 @@
<svg width="108" height="108" viewBox="0 0 56 53" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M55.5919 41.501L51.9098 31.5854C51.6414 31.1518 51.2405 30.8141 50.7653 30.6211C50.2902 30.4281 49.7653 30.3899 49.2667 30.512L36.4615 33.5966L30.2745 25.4471C30.1349 25.2063 29.9467 24.9965 29.7216 24.8308C29.4966 24.6652 29.2394 24.5472 28.9663 24.4843L28.9317 24.4764C28.5147 24.3665 28.0741 24.3826 27.6665 24.5226C27.2588 24.6627 26.9028 24.9203 26.6442 25.2623C26.3856 25.6044 26.2362 26.0152 26.2153 26.442C26.1944 26.8687 26.3029 27.2919 26.5268 27.6572L36.9455 44.5713L37.9453 46.4739L33.6435 45.7393C33.5074 45.7073 30.2728 44.9786 28.9791 47.5107L28.9765 47.5159C28.9418 47.5856 28.9221 47.6617 28.9188 47.7394C28.9155 47.817 28.9287 47.8945 28.9574 47.9668C28.9861 48.0392 29.0297 48.1048 29.0855 48.1594C29.1413 48.2141 29.208 48.2566 29.2813 48.2843C31.6836 49.2025 40.7232 52.4287 40.7232 52.4287C42.0804 52.9131 43.5293 53.0929 44.9653 52.9551C46.4013 52.8172 47.7884 52.3653 49.0264 51.6318L52.7518 49.4349C54.0852 48.648 55.0989 47.4243 55.6176 45.9755C56.1362 44.5267 56.1271 42.9439 55.5919 41.501Z" fill="#0D4E84"/>
<path d="M19.8578 13.9316H21.5787C22.0351 13.9316 22.4728 14.1166 22.7955 14.4459C23.1182 14.7752 23.2995 15.2218 23.2995 15.6874V22.86C23.8738 23.0671 24.3579 23.4747 24.6662 24.0108C24.9744 24.5469 25.087 25.1769 24.9841 25.7894C24.8811 26.402 24.5692 26.9577 24.1035 27.3584C23.6378 27.759 23.0482 27.9787 22.4391 27.9787C21.8299 27.9787 21.2404 27.759 20.7747 27.3584C20.309 26.9577 19.9971 26.402 19.8941 25.7894C19.7911 25.1769 19.9037 24.5469 20.212 24.0108C20.5203 23.4747 21.0043 23.0671 21.5787 22.86V15.6874H19.8578V18.3212L15.9859 14.8095L19.8578 11.2979V13.9316ZM11.2536 17.294C10.6792 17.0869 10.1952 16.6793 9.88691 16.1432C9.57865 15.6072 9.46605 14.9772 9.56903 14.3646C9.672 13.752 9.98391 13.1963 10.4496 12.7957C10.9153 12.3951 11.5049 12.1753 12.114 12.1753C12.7231 12.1753 13.3127 12.3951 13.7784 12.7957C14.2441 13.1963 14.556 13.752 14.659 14.3646C14.7619 14.9772 14.6493 15.6072 14.3411 16.1432C14.0328 16.6793 13.5487 17.0869 12.9744 17.294V22.86C13.5487 23.0671 14.0328 23.4747 14.3411 24.0108C14.6493 24.5469 14.7619 25.1769 14.659 25.7894C14.556 26.402 14.2441 26.9577 13.7784 27.3584C13.3127 27.759 12.7231 27.9787 12.114 27.9787C11.5049 27.9787 10.9153 27.759 10.4496 27.3584C9.98391 26.9577 9.672 26.402 9.56903 25.7894C9.46605 25.1769 9.57865 24.5469 9.88691 24.0108C10.1952 23.4747 10.6792 23.0671 11.2536 22.86V17.294Z" fill="#0D4E84"/>
<path d="M27.7978 50.0909C27.4032 49.9379 27.0447 49.7034 26.7455 49.4024C26.4463 49.1014 26.2129 48.7407 26.0604 48.3434C25.9079 47.9461 25.8396 47.5211 25.86 47.0956C25.8804 46.6701 25.9889 46.2536 26.1787 45.873C26.5526 45.1084 27.0872 44.4349 27.7455 43.8994C28.4038 43.3638 29.1699 42.9791 29.9906 42.7719C30.007 42.7678 30.0214 42.7578 30.031 42.7437C30.0406 42.7296 30.0447 42.7125 30.0425 42.6956C30.0404 42.6787 30.0321 42.6631 30.0193 42.6519C30.0065 42.6408 29.99 42.6348 29.9731 42.635H5.6451C5.05302 42.6309 4.48637 42.3921 4.06777 41.9703C3.64918 41.5484 3.41234 40.9775 3.40851 40.381V6.26219C3.41197 5.66561 3.64869 5.09445 4.06737 4.67251C4.48604 4.25058 5.05292 4.01189 5.64511 4.00818H32.4826C33.0748 4.01188 33.6417 4.25058 34.0603 4.67251C34.479 5.09444 34.7157 5.66561 34.7192 6.26219V26.2706L37.1245 29.4938L38.1271 29.2481V6.26219C38.1377 5.51406 37.9961 4.77168 37.7109 4.0808C37.4258 3.38993 37.0032 2.76521 36.4693 2.24516C35.9531 1.70731 35.3332 1.28165 34.6475 0.994409C33.9618 0.707169 33.2251 0.564437 32.4826 0.57501H5.6451C4.9026 0.564438 4.16581 0.70717 3.48016 0.99441C2.79451 1.28165 2.17452 1.70731 1.6584 2.24516C1.12443 2.76521 0.701863 3.38993 0.416736 4.0808C0.13161 4.77168 -0.0100284 5.51406 0.000551929 6.26219V44.9309C-0.0100169 45.6788 0.131634 46.421 0.416766 47.1116C0.701898 47.8022 1.12446 48.4266 1.6584 48.9463C2.1744 49.4843 2.79438 49.9101 3.48006 50.1973C4.16573 50.4846 4.90257 50.6272 5.6451 50.6164H29.1812C29.1812 50.6164 29.0426 50.5644 28.9753 50.5391C28.5042 50.3621 28.1012 50.2089 27.7978 50.0909ZM20.6523 48.365C20.286 48.7241 19.8077 48.9445 19.2985 48.9888C18.7893 49.0332 18.2805 48.8987 17.8584 48.6083C17.4364 48.3178 17.1271 47.8893 16.9829 47.3953C16.8387 46.9013 16.8686 46.3722 17.0675 45.8979C17.2663 45.4236 17.6219 45.0331 18.0739 44.7928C18.5259 44.5524 19.0466 44.477 19.5475 44.5792C20.0484 44.6815 20.4989 44.9551 20.8224 45.3537C21.1459 45.7524 21.3226 46.2515 21.3225 46.7664C21.3248 47.0648 21.2666 47.3605 21.1514 47.6354C21.0361 47.9103 20.8663 48.1586 20.6523 48.365Z" fill="#0D4E84"/>
</svg>

After

Width:  |  Height:  |  Size: 4.5 KiB

@ -0,0 +1,5 @@
<svg width="108" height="108" viewBox="0 0 86 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M50.4528 20.7168L51.1871 24.2068C51.4003 25.2173 51.988 26.1279 52.8495 26.7826C53.7109 27.4373 54.7926 27.7954 55.909 27.7954C57.0254 27.7954 58.107 27.4373 58.9685 26.7826C59.83 26.1279 60.4177 25.2173 60.6308 24.2068L61.3652 20.7168C61.4626 20.0562 61.4056 19.384 61.1979 18.7454C60.9903 18.1068 60.6368 17.5166 60.1613 17.0144C59.6858 16.5122 59.0992 16.1096 58.441 15.8338C57.7828 15.5579 57.0681 15.4151 56.3451 15.415H55.4729C54.7498 15.4151 54.0352 15.5579 53.377 15.8338C52.7188 16.1097 52.1322 16.5122 51.6567 17.0144C51.1811 17.5166 50.8277 18.1068 50.6201 18.7454C50.4124 19.384 50.3554 20.0562 50.4528 20.7168Z" fill="#0D4E84"/>
<path d="M22.941 20.7168L23.6753 24.2068C23.8884 25.2173 24.4761 26.1279 25.3376 26.7826C26.1991 27.4373 27.2807 27.7954 28.3971 27.7954C29.5135 27.7954 30.5952 27.4373 31.4566 26.7826C32.3181 26.1279 32.9058 25.2173 33.119 24.2068L33.8533 20.7168C33.9507 20.0562 33.8937 19.384 33.6861 18.7454C33.4784 18.1068 33.125 17.5166 32.6495 17.0144C32.174 16.5122 31.5874 16.1096 30.9291 15.8338C30.2709 15.5579 29.5563 15.4151 28.8333 15.415H27.961C27.238 15.4151 26.5234 15.5579 25.8651 15.8338C25.2069 16.1097 24.6203 16.5122 24.1448 17.0144C23.6693 17.5166 23.3159 18.1068 23.1082 18.7454C22.9006 19.384 22.8436 20.0562 22.941 20.7168Z" fill="#0D4E84"/>
<path d="M85.0678 27.6903C84.9816 27.1875 84.7782 26.712 84.474 26.3024C84.1699 25.8927 83.7735 25.5605 83.317 25.3326C80.2728 23.8146 73.5927 21.5727 73.5927 21.5727V19.367L73.7786 19.2267C75.0755 18.2345 75.9427 16.783 76.2018 15.1709L76.2392 14.9358H76.4205C76.9102 14.9356 77.3888 14.7895 77.7951 14.5162C78.2015 14.243 78.5173 13.8548 78.7022 13.4014C78.9225 13.0033 79.038 12.5558 79.0379 12.1009C79.0379 11.7877 78.9784 11.4773 78.8624 11.1864C78.8043 10.8681 78.6275 10.5839 78.3677 10.3911L77.7514 10.0169L77.9046 9.34793C79.018 4.4945 75.258 0.122903 70.2093 0.00243945C70.0865 9.23414e-05 69.9649 -0.00105386 69.8444 0.0012723C69.724 -0.00105386 69.6023 9.23414e-05 69.4795 0.00243945C64.4308 0.122896 60.6709 4.4945 61.7842 9.34793L61.9375 10.0169L61.3211 10.3911C61.0614 10.5839 60.8845 10.8681 60.8264 11.1864C60.7105 11.4773 60.651 11.7877 60.651 12.1009C60.6509 12.5558 60.7664 13.0033 60.9867 13.4014C61.1716 13.8548 61.4873 14.243 61.8937 14.5162C62.3001 14.7895 62.7786 14.9356 63.2683 14.9358H63.4496L63.4871 15.1709C63.7462 16.783 64.6134 18.2345 65.9102 19.2267L66.0962 19.367V21.5727C66.0962 21.5727 59.416 23.8146 56.3718 25.3326C56.3617 25.3377 56.3527 25.3443 56.3427 25.3494C56.3327 25.3443 56.3236 25.3377 56.3135 25.3326C53.2693 23.8146 46.5892 21.5727 46.5892 21.5727V19.367L46.7751 19.2267C48.0719 18.2345 48.9392 16.783 49.1983 15.1709L49.2357 14.9358H49.417C49.9067 14.9356 50.3853 14.7895 50.7916 14.5162C51.198 14.2429 51.5138 13.8548 51.6987 13.4014C51.919 13.0033 52.0345 12.5558 52.0344 12.1009C52.0344 11.7877 51.9749 11.4773 51.8589 11.1864C51.8008 10.8681 51.624 10.5839 51.3642 10.3911L50.7479 10.0169L50.9011 9.34793C52.0145 4.4945 48.2545 0.122903 43.2058 0.00243945C43.083 9.23414e-05 42.9614 -0.00105386 42.8409 0.0012723C42.7205 -0.00105386 42.5988 9.23414e-05 42.476 0.00243945C37.4273 0.122896 33.6674 4.4945 34.7807 9.34793L34.9339 10.0169L34.3176 10.3911C34.0578 10.5839 33.881 10.8681 33.8229 11.1864C33.707 11.4773 33.6475 11.7877 33.6475 12.1009C33.6474 12.5559 33.7629 13.0033 33.9831 13.4014C34.1681 13.8548 34.4838 14.2429 34.8902 14.5162C35.2966 14.7895 35.7751 14.9356 36.2648 14.9358H36.4461L36.4835 15.1709C36.7426 16.783 37.6099 18.2345 38.9067 19.2267L39.0927 19.367V21.5727C39.0927 21.5727 32.4125 23.8146 29.3683 25.3326C29.3582 25.3377 29.3492 25.3443 29.3391 25.3494C29.3291 25.3443 29.3201 25.3377 29.31 25.3326C26.2658 23.8146 19.5856 21.5727 19.5856 21.5727V19.367L19.7716 19.2267C21.0684 18.2345 21.9356 16.783 22.1948 15.1709L22.2322 14.9358H22.4135C22.9032 14.9356 23.3817 14.7895 23.7881 14.5162C24.1945 14.243 24.5102 13.8548 24.6952 13.4014C24.9154 13.0033 25.0309 12.5559 25.0308 12.1009C25.0308 11.7877 24.9713 11.4774 24.8554 11.1864C24.7973 10.8682 24.6204 10.5839 24.3607 10.3911L23.7443 10.0169L23.8975 9.34794C25.0109 4.4945 21.251 0.122909 16.2023 0.00244478C16.0794 9.76709e-05 15.9578 -0.00104853 15.8374 0.00127763C15.7169 -0.00104853 15.5953 9.76709e-05 15.4725 0.00244478C10.4238 0.122902 6.66384 4.4945 7.77718 9.34794L7.93038 10.0169L7.31407 10.3911C7.05429 10.5839 6.87745 10.8682 6.81936 11.1864C6.70343 11.4774 6.6439 11.7877 6.64394 12.1009C6.64383 12.5559 6.75932 13.0033 6.97958 13.4014C7.1645 13.8548 7.48028 14.243 7.88665 14.5162C8.29302 14.7895 8.77157 14.9356 9.26127 14.9358H9.44255L9.47998 15.1709C9.73913 16.783 10.6063 18.2345 11.9032 19.2267L12.0891 19.367V21.5727C12.0891 21.5727 5.40896 23.8146 2.36475 25.3326C1.90829 25.5605 1.51193 25.8927 1.20776 26.3024C0.903604 26.712 0.700197 27.1875 0.61402 27.6903C0.251297 30.4026 0.0462787 33.1337 0 35.8698H85.6818C85.6355 33.1337 85.4305 30.4026 85.0678 27.6903Z" fill="#0D4E84"/>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

@ -0,0 +1,8 @@
<svg width="108" height="108" viewBox="0 0 60 46" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M27.643 4.00264C32.0365 8.39612 32.0365 15.5194 27.643 19.9128C23.2496 24.3063 16.1263 24.3063 11.7329 19.9128C7.33937 15.5193 7.33937 8.39609 11.7329 4.00264C16.1263 -0.390852 23.2496 -0.390852 27.643 4.00264Z" fill="#0D4E84"/>
<path d="M36.945 31.316C26.6891 24.3862 12.6867 24.3862 2.43077 31.316C0.909135 32.3432 0 34.0791 0 35.9605V45.7083H39.3757V35.9605C39.3757 34.0791 38.4666 32.3432 36.945 31.316Z" fill="#0D4E84"/>
<path d="M57.9984 8.38086H37.3181C36.3831 8.38086 35.625 9.13899 35.625 10.074C35.625 11.0089 36.3831 11.7671 37.3181 11.7671H58.0003C58.9353 11.7671 59.6934 11.0089 59.6934 10.074C59.6934 9.13899 58.9334 8.38086 57.9984 8.38086Z" fill="#0D4E84"/>
<path d="M37.3181 3.38621H45.6106C46.5455 3.38621 47.3037 2.62807 47.3037 1.6931C47.3037 0.758134 46.5455 0 45.6106 0H37.3181C36.3831 0 35.625 0.758134 35.625 1.6931C35.625 2.62807 36.3831 3.38621 37.3181 3.38621Z" fill="#0D4E84"/>
<path d="M57.9984 16.7617H37.3181C36.3831 16.7617 35.625 17.5199 35.625 18.4548C35.625 19.3898 36.3831 20.1479 37.3181 20.1479H58.0003C58.9353 20.1479 59.6934 19.3898 59.6934 18.4548C59.6934 17.5199 58.9334 16.7617 57.9984 16.7617Z" fill="#0D4E84"/>
<path d="M57.9984 25.1426H37.3181C36.3831 25.1426 35.625 25.9007 35.625 26.8357C35.625 27.7707 36.3831 28.5288 37.3181 28.5288H58.0003C58.9353 28.5288 59.6934 27.7707 59.6934 26.8357C59.6934 25.9007 58.9334 25.1426 57.9984 25.1426Z" fill="#0D4E84"/>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

@ -0,0 +1,12 @@
<svg width="108" height="108" viewBox="0 0 72 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.59098 40.8067C2.69576 40.8067 1.40988 41.0269 1.4065 39.9655C1.40313 38.9606 1.39258 32.411 1.39258 29.4907C1.39258 29.025 1.77058 28.647 2.23633 28.647H42.0006C43.0852 28.647 43.1101 30.256 42.0765 30.3315V39.1226C43.1101 39.1981 43.0852 40.8071 42.0006 40.8071H38.5958C39.0902 35.697 35.0689 31.2736 29.9481 31.2736C24.827 31.2736 20.8061 35.6978 21.3005 40.8071H20.8867C21.3811 35.6978 17.361 31.2736 12.239 31.2736C7.11787 31.2736 3.09612 35.6965 3.59098 40.8067Z" fill="#0D4E84"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M29.9486 47.2455C25.9323 47.2455 22.6661 43.9785 22.6661 39.9622C22.6661 35.9464 25.9332 32.679 29.9486 32.679C33.964 32.679 37.231 35.946 37.231 39.9622C37.231 43.9785 33.964 47.2455 29.9486 47.2455ZM29.9486 44.0882C27.6738 44.0882 25.823 42.2374 25.823 39.9627C25.823 37.6875 27.6738 35.8367 29.9486 35.8367C32.2229 35.8367 34.0741 37.6875 34.0741 39.9627C34.0741 42.237 32.2238 44.0882 29.9486 44.0882ZM29.9486 37.5246C26.7398 37.5246 26.7398 42.4003 29.9486 42.4003C33.1574 42.4003 33.1578 37.5246 29.9486 37.5246Z" fill="#0D4E84"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.2391 47.2455C8.22324 47.2455 4.95581 43.9785 4.95581 39.9622C4.95581 35.9464 8.22282 32.679 12.2391 32.679C16.2554 32.679 19.5215 35.946 19.5215 39.9622C19.5215 43.9785 16.2549 47.2455 12.2391 47.2455ZM12.2391 44.0882C9.96475 44.0882 8.11356 42.2374 8.11356 39.9627C8.11356 37.6875 9.96433 35.8367 12.2391 35.8367C14.5138 35.8367 16.3646 37.6875 16.3646 39.9627C16.3646 42.237 14.5143 44.0882 12.2391 44.0882ZM12.2391 37.5246C9.03029 37.5246 9.03029 42.4003 12.2391 42.4003C15.4479 42.4003 15.4479 37.5246 12.2391 37.5246Z" fill="#0D4E84"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5579 31.0383C31.7044 31.0383 31.0109 30.3451 31.0109 29.4912L31.0117 25.1733H34.1036L34.1045 29.4912C34.1045 30.3451 33.4113 31.0383 32.5575 31.0383H32.5579ZM10.2731 31.0383C9.41964 31.0383 8.72607 30.3451 8.72607 29.4912L8.72692 25.1733H11.8189L11.8197 29.4912C11.8197 30.3451 11.127 31.0383 10.2731 31.0383V31.0383Z" fill="#0D4E84"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.4044 26.0637H10.8667C10.7342 26.0637 10.6026 26.0608 10.4714 26.0557C10.9574 26.0633 11.3367 25.123 11.3367 25.123V4.33203H32.4048C38.3958 4.33203 43.2702 9.20639 43.2702 15.1975C43.2702 21.1885 38.3954 26.0637 32.4044 26.0637ZM10.4495 26.0549C4.65036 25.8351 0.000854492 21.0497 0.000854492 15.1979C0.000854492 9.61772 4.2289 5.0083 9.64875 4.4008V25.1238C9.64875 25.6216 10.004 26.0296 10.4495 26.0549Z" fill="#0D4E84"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M33.2718 6.01966C32.6807 6.01966 26.7977 6.01966 26.021 6.01966C25.5552 6.01966 25.1772 5.64166 25.1772 5.17591V1.59839C25.1772 1.13264 25.5552 0.754639 26.021 0.754639H33.2718C33.7375 0.754639 34.1155 1.13264 34.1155 1.59839V5.17591C34.1155 5.64166 33.7384 6.01966 33.2718 6.01966Z" fill="#0D4E84"/>
<path d="M69.8645 14.9395H47.8059C46.8087 14.9395 46 15.7481 46 16.7454C46 17.7427 46.8087 18.5513 47.8059 18.5513H69.8666C70.8638 18.5513 71.6725 17.7427 71.6725 16.7454C71.6725 15.7481 70.8618 14.9395 69.8645 14.9395Z" fill="#0D4E84"/>
<path d="M47.8059 9.61189H56.6511C57.6483 9.61189 58.457 8.80323 58.457 7.80594C58.457 6.80866 57.6483 6 56.6511 6H47.8059C46.8087 6 46 6.80866 46 7.80594C46 8.80323 46.8087 9.61189 47.8059 9.61189Z" fill="#0D4E84"/>
<path d="M69.8645 23.8789H47.8059C46.8087 23.8789 46 24.6876 46 25.6848C46 26.6821 46.8087 27.4908 47.8059 27.4908H69.8666C70.8638 27.4908 71.6725 26.6821 71.6725 25.6848C71.6725 24.6876 70.8618 23.8789 69.8645 23.8789Z" fill="#0D4E84"/>
<path d="M69.8645 32.8184H47.8059C46.8087 32.8184 46 33.627 46 34.6243C46 35.6216 46.8087 36.4302 47.8059 36.4302H69.8666C70.8638 36.4302 71.6725 35.6216 71.6725 34.6243C71.6725 33.627 70.8618 32.8184 69.8645 32.8184Z" fill="#0D4E84"/>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

@ -99,14 +99,6 @@ class _ConectedPendingCustomersState extends State<ConectedPendingCustomers> wit
}); });
} }
} }
@override @override
void initState() { void initState() {
// TODO: implement initState // TODO: implement initState
@ -115,10 +107,6 @@ class _ConectedPendingCustomersState extends State<ConectedPendingCustomers> wit
getPendingSuppliersData(); getPendingSuppliersData();
super.initState(); super.initState();
} }
Widget connectedCustomers(){ Widget connectedCustomers(){
if(connectedCustomersList.length!=0){ if(connectedCustomersList.length!=0){

@ -123,6 +123,7 @@ class _DashboardState extends State<Dashboard> {
); );
}, },
child: Container( child: Container(
height: 100,
padding: EdgeInsets.all(05), padding: EdgeInsets.all(05),
margin: EdgeInsets.only(left:15, top:10, right: 0, bottom:0), margin: EdgeInsets.only(left:15, top:10, right: 0, bottom:0),
//height: MediaQuery.of(context).size.height * .05, //height: MediaQuery.of(context).size.height * .05,
@ -132,17 +133,20 @@ class _DashboardState extends State<Dashboard> {
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
), ),
// Change button text when light changes state. // Change button text when light changes state.
child: Center(
child: Column( child: Column(
children: [ children: [
Container( Container(
padding: EdgeInsets.fromLTRB(35, 10,0,0), //height: 50,
child: new SvgPicture.asset("assets/images/tanklevels.svg") padding: EdgeInsets.fromLTRB(0, 15,0,0),
child: new SvgPicture.asset("assets/images/tankersview.svg")
), ),
SizedBox(height: 5,),
Text('Takers View',style: dashboardTextStyle(),), Text('Takers View',style: dashboardTextStyle(),),
], ],
), ),
)
), ),
)), )),
@ -160,28 +164,30 @@ class _DashboardState extends State<Dashboard> {
); );
}, },
child: Container( child: Container(
height: 100,
padding: EdgeInsets.all(05), padding: EdgeInsets.all(05),
margin: EdgeInsets.only(left:0, top:10, right: 15, bottom:0), margin: EdgeInsets.only(left:15, top:10, right: 0, bottom:0),
// height: MediaQuery.of(context).size.height * .16, //height: MediaQuery.of(context).size.height * .05,
// width: MediaQuery.of(context).size.width * .40, //width: MediaQuery.of(context).size.width * .45,
//color: Colors.white,
//margin: const EdgeInsets.all(15.0),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
), ),
// Change button text when light changes state. // Change button text when light changes state.
child: Center(
child: Column( child: Column(
children: [ children: [
Container( Container(
//height: 50,
padding: EdgeInsets.fromLTRB(0, 10,0,0), padding: EdgeInsets.fromLTRB(0, 15,0,0),
child: new SvgPicture.asset("assets/images/watertanker.svg") child: new SvgPicture.asset("assets/images/deliveryboyview.svg")
), ),
Text('Deliveryboys View',style: dashboardTextStyle(),) SizedBox(height: 5,),
Text('Deliveryboys View',style: dashboardTextStyle(),),
], ],
), ),
)
), ),
), ),
) )
@ -199,6 +205,7 @@ class _DashboardState extends State<Dashboard> {
); );
}, },
child: Container( child: Container(
height: 100,
padding: EdgeInsets.all(05), padding: EdgeInsets.all(05),
margin: EdgeInsets.only(left:15, top:10, right: 0, bottom:0), margin: EdgeInsets.only(left:15, top:10, right: 0, bottom:0),
//height: MediaQuery.of(context).size.height * .05, //height: MediaQuery.of(context).size.height * .05,
@ -208,17 +215,20 @@ class _DashboardState extends State<Dashboard> {
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
), ),
// Change button text when light changes state. // Change button text when light changes state.
child: Center(
child: Column( child: Column(
children: [ children: [
Container( Container(
padding: EdgeInsets.fromLTRB(35, 10,0,0), //height: 50,
child: new SvgPicture.asset("assets/images/resources.svg") padding: EdgeInsets.fromLTRB(0, 15,0,0),
child: new SvgPicture.asset("assets/images/customers.svg")
), ),
SizedBox(height: 5,),
Text('Customers',style: dashboardTextStyle(),), Text('Customers',style: dashboardTextStyle(),),
], ],
), ),
)
), ),
)), )),
@ -236,28 +246,30 @@ class _DashboardState extends State<Dashboard> {
); );
}, },
child: Container( child: Container(
height: 100,
padding: EdgeInsets.all(05), padding: EdgeInsets.all(05),
margin: EdgeInsets.only(left:0, top:10, right: 15, bottom:0), margin: EdgeInsets.only(left:15, top:10, right: 0, bottom:0),
// height: MediaQuery.of(context).size.height * .16, //height: MediaQuery.of(context).size.height * .05,
// width: MediaQuery.of(context).size.width * .40, //width: MediaQuery.of(context).size.width * .45,
//color: Colors.white,
//margin: const EdgeInsets.all(15.0),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
), ),
// Change button text when light changes state. // Change button text when light changes state.
child: Center(
child: Column( child: Column(
children: [ children: [
Container( Container(
//height: 50,
padding: EdgeInsets.fromLTRB(0, 10,0,0), padding: EdgeInsets.fromLTRB(0, 15,0,0),
child: new SvgPicture.asset("assets/images/consumption.svg") child: new SvgPicture.asset("assets/images/booking_request.svg")
), ),
Text('Booking Requests',style: dashboardTextStyle(),) SizedBox(height: 5,),
Text('Booking Requests',style: dashboardTextStyle(),),
], ],
), ),
)
), ),
), ),
) )

@ -160,22 +160,16 @@ class _GetDeliveryboyDataState extends State<GetDeliveryboyData> {
TextButton( TextButton(
child: Text('Update',style:textButtonStyle()), child: Text('Update',style:textButtonStyle()),
onPressed: () async{ onPressed: () async{
if(deliveryboyNameController.text!=''&&deliveryboyPhoneController.text!=''&&deliveryboyAlterPhoneController.text!=''){ if(deliveryboyNameController.text!=''&&deliveryboyPhoneController.text!=''&&deliveryboyAlterPhoneController.text!=''){
var payload = new Map<String, dynamic>(); var payload = new Map<String, dynamic>();
payload["name"] = deliveryboyNameController.text.toString(); payload["name"] = deliveryboyNameController.text.toString();
payload["phone"] = deliveryboyPhoneController.text.toString(); payload["phone"] = deliveryboyPhoneController.text.toString();
payload["alternativeContactNumber"] = deliveryboyAlterPhoneController.text.toString(); payload["alternativeContactNumber"] = deliveryboyAlterPhoneController.text.toString();
bool updateDeliveryboyStatus = await AppSettings.updateDeliveryboy(object.deliveryboy_phone,payload); bool updateDeliveryboyStatus = await AppSettings.updateDeliveryboy(object.deliveryboy_phone,payload);
if(updateDeliveryboyStatus){ if(updateDeliveryboyStatus){
readJson(); readJson();
AppSettings.longSuccessToast('Deliveryboy updated successfully'); AppSettings.longSuccessToast('Deliveryboy updated successfully');
Navigator.of(context).pop(true); Navigator.of(context).pop(true);
} }
else{ else{
AppSettings.longFailedToast('Deliveryboy update failed'); AppSettings.longFailedToast('Deliveryboy update failed');
@ -184,10 +178,6 @@ class _GetDeliveryboyDataState extends State<GetDeliveryboyData> {
else{ else{
AppSettings.longFailedToast('Fill the details'); AppSettings.longFailedToast('Fill the details');
} }
}, },
), ),
], ],
@ -249,11 +239,7 @@ class _GetDeliveryboyDataState extends State<GetDeliveryboyData> {
), ),
], ],
), ),
), ),
Expanded(child:IconButton( Expanded(child:IconButton(
icon: const Icon(Icons.edit,color: primaryColor,), icon: const Icon(Icons.edit,color: primaryColor,),
onPressed: () { onPressed: () {

Loading…
Cancel
Save