added splash and onboarding screens and some folder structures
This commit is contained in:
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
|
||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||
|
||||
android {
|
||||
compileSdkVersion flutter.compileSdkVersion
|
||||
compileSdkVersion 34
|
||||
ndkVersion flutter.ndkVersion
|
||||
|
||||
compileOptions {
|
||||
@@ -47,8 +47,8 @@ android {
|
||||
applicationId "com.example.regroup"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
||||
minSdkVersion flutter.minSdkVersion
|
||||
targetSdkVersion flutter.targetSdkVersion
|
||||
minSdkVersion 24
|
||||
targetSdkVersion 33
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
}
|
||||
|
||||
@@ -26,6 +26,6 @@ subprojects {
|
||||
project.evaluationDependsOn(':app')
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
tasks.register("clean", Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
|
||||
BIN
assets/fonts/Helvetica-Font/Helvetica-Bold.ttf
Normal file
BIN
assets/fonts/Helvetica-Font/Helvetica-Bold.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/Helvetica-Font/Helvetica-BoldOblique.ttf
Normal file
BIN
assets/fonts/Helvetica-Font/Helvetica-BoldOblique.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/Helvetica-Font/Helvetica-Oblique.ttf
Normal file
BIN
assets/fonts/Helvetica-Font/Helvetica-Oblique.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/Helvetica-Font/Helvetica.ttf
Normal file
BIN
assets/fonts/Helvetica-Font/Helvetica.ttf
Normal file
Binary file not shown.
Binary file not shown.
BIN
assets/fonts/Helvetica-Font/helvetica-light-587ebe5a59211.ttf
Normal file
BIN
assets/fonts/Helvetica-Font/helvetica-light-587ebe5a59211.ttf
Normal file
Binary file not shown.
Binary file not shown.
BIN
assets/images/png/onboarding1.png
Normal file
BIN
assets/images/png/onboarding1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 300 KiB |
11
assets/images/svg/mainsplash.svg
Normal file
11
assets/images/svg/mainsplash.svg
Normal file
@@ -0,0 +1,11 @@
|
||||
<svg width="211" height="211" viewBox="0 0 211 211" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M138.536 72.3455H132.356H115.266C115.265 74.5948 114.8 76.6826 113.838 78.5131H131.692C128.983 90.4673 118.282 99.4411 105.52 99.4717C105.498 99.4717 105.476 99.4717 105.454 99.4717C98.3102 99.4717 91.5951 96.6991 86.5406 91.6605C81.4523 86.5891 78.6471 79.8255 78.6397 72.6145C78.6386 71.9446 78.6661 71.2789 78.7146 70.6174H72.5112C72.4774 71.2146 72.4553 71.8138 72.4542 72.4152C72.431 81.2845 75.8418 89.6159 82.0589 95.8731C88.2771 102.131 96.5789 105.588 105.435 105.605C105.457 105.605 105.478 105.605 105.5 105.605C121.71 105.605 135.24 93.8971 138.016 78.512C138.353 76.6468 138.54 74.7309 138.547 72.7717C138.547 72.6293 138.538 72.4879 138.536 72.3455Z" fill="white" fill-opacity="0.8"/>
|
||||
<path d="M105.521 93.2905C106.222 93.2884 106.915 93.2557 107.603 93.2008C105.014 89.6328 102.565 86.2557 100.06 82.8038C106.87 80.5134 109.724 75.2922 109.204 69.0244C108.645 62.283 104.39 57.8467 97.5547 57.7043C95.8034 57.6684 94.0522 57.6505 92.3008 57.6389H83.1603C84.1267 56.1977 85.2387 54.8389 86.491 53.5824C91.5592 48.4994 98.3027 45.6973 105.479 45.6931C105.485 45.6931 105.489 45.6931 105.496 45.6931C112.671 45.6931 119.416 48.4857 124.489 53.556C126.541 55.6069 128.212 57.9353 129.485 60.4525H136.202C131.345 48.2631 119.463 39.592 105.574 39.5266C105.522 39.5266 105.47 39.5266 105.419 39.5266C96.7234 39.5266 88.5007 42.9385 82.2488 49.145C77.9834 53.3798 75.0157 58.543 73.5366 64.1577H79.9879C79.989 64.1556 79.989 64.1535 79.9901 64.1514C82.445 64.1503 84.899 64.1566 87.354 64.1577H90.4778V64.1598C91.8577 64.1619 93.2366 64.1588 94.6166 64.163C95.6389 64.1661 96.6696 64.2495 97.6803 64.4046C99.9169 64.7495 101.514 66.1717 101.825 68.1836C101.994 69.2787 102.048 70.4233 101.937 71.5227C101.624 74.6275 100.137 76.3176 97.0346 76.6932C94.3159 77.0224 91.5497 76.9717 88.8046 77.0814C88.3246 77.1004 87.8435 77.0846 87.105 77.0846L98.1719 92.2851C100.513 92.9413 102.956 93.2884 105.455 93.2884C105.476 93.2905 105.498 93.2905 105.521 93.2905Z" fill="white" fill-opacity="0.8"/>
|
||||
<path d="M9.27771 160.208V129.765H22.4557C25.1808 129.765 27.5292 130.207 29.501 131.091C31.4728 131.976 32.9941 133.244 34.067 134.897C35.1389 136.549 35.6759 138.506 35.6759 140.768C35.6759 143.058 35.1389 145.022 34.067 146.661C32.9941 148.299 31.4717 149.546 29.501 150.401C27.5292 151.256 25.1808 151.684 22.4557 151.684H13.1485L16.3673 148.639V160.207H9.27771V160.208ZM16.3663 149.422L13.1474 146.073H22.0633C24.2081 146.073 25.8317 145.61 26.9342 144.682C28.0356 143.754 28.5874 142.449 28.5874 140.768C28.5874 139.086 28.0367 137.788 26.9342 136.875C25.8317 135.961 24.2081 135.504 22.0633 135.504H13.1474L16.3663 132.156V149.422ZM28.6739 160.208L21.0199 149.161H28.5874L36.2414 160.208H28.6739Z" fill="white" fill-opacity="0.8"/>
|
||||
<path d="M52.3766 160.556C49.7085 160.556 47.3748 160.034 45.3745 158.991C43.3743 157.947 41.8224 156.519 40.7209 154.707C39.6185 152.896 39.0677 150.83 39.0677 148.51C39.0677 146.191 39.5963 144.117 40.6555 142.291C41.7137 140.465 43.1917 139.036 45.0918 138.008C46.9908 136.979 49.1293 136.464 51.5062 136.464C53.7966 136.464 55.8623 136.958 57.7033 137.943C59.5442 138.93 61.0012 140.321 62.0741 142.118C63.146 143.916 63.683 146.075 63.683 148.598C63.683 148.858 63.6682 149.156 63.6398 149.489C63.6102 149.823 63.5817 150.135 63.5532 150.424H44.5474V146.467H59.9873L57.334 147.641C57.3625 146.423 57.1304 145.365 56.6377 144.466C56.144 143.568 55.4635 142.865 54.5931 142.357C53.7238 141.85 52.7078 141.597 51.5484 141.597C50.3879 141.597 49.3667 141.851 48.4826 142.357C47.5974 142.865 46.9096 143.575 46.4169 144.489C45.9231 145.402 45.6773 146.483 45.6773 147.728V148.772C45.6773 150.077 45.9664 151.208 46.5466 152.164C47.1258 153.121 47.9234 153.853 48.9383 154.36C49.9532 154.868 51.1707 155.121 52.5918 155.121C53.8093 155.121 54.8896 154.933 55.8317 154.555C56.7738 154.179 57.6368 153.613 58.4196 152.859L62.0298 156.773C60.9569 157.99 59.6086 158.926 57.985 159.578C56.3624 160.229 54.4918 160.556 52.3766 160.556Z" fill="white" fill-opacity="0.8"/>
|
||||
<path d="M83.3852 160.729C80.9787 160.729 78.7601 160.344 76.7313 159.577C74.7015 158.809 72.9481 157.714 71.469 156.294C69.9898 154.874 68.8378 153.206 68.0117 151.292C67.1857 149.379 66.7721 147.277 66.7721 144.987C66.7721 142.696 67.1857 140.594 68.0117 138.681C68.8378 136.767 70.0046 135.1 71.5133 133.679C73.0209 132.259 74.789 131.164 76.8189 130.396C78.8476 129.628 81.0811 129.244 83.516 129.244C86.2126 129.244 88.6401 129.693 90.8008 130.592C92.9604 131.491 94.7802 132.796 96.2593 134.506L91.7798 138.682C90.6489 137.493 89.4314 136.616 88.1264 136.051C86.8213 135.485 85.3865 135.202 83.8209 135.202C82.3703 135.202 81.0378 135.442 79.8193 135.92C78.6018 136.398 77.55 137.072 76.6659 137.942C75.7807 138.812 75.1003 139.841 74.6213 141.03C74.1434 142.219 73.9039 143.538 73.9039 144.988C73.9039 146.379 74.1434 147.677 74.6213 148.881C75.0992 150.084 75.7807 151.12 76.6659 151.99C77.55 152.859 78.5934 153.542 79.7971 154.034C80.9998 154.528 82.326 154.774 83.7766 154.774C85.1681 154.774 86.5238 154.542 87.8426 154.077C89.1613 153.614 90.4442 152.845 91.6912 151.772L95.6928 156.861C94.0111 158.137 92.0826 159.1 89.9082 159.752C87.7339 160.404 85.5595 160.729 83.3852 160.729ZM89.2563 155.946V144.508H95.6928V156.858L89.2563 155.946Z" fill="white" fill-opacity="0.8"/>
|
||||
<path d="M101.738 160.208V136.81H108.218V143.464L107.304 141.507C108 139.854 109.116 138.601 110.653 137.745C112.189 136.89 114.059 136.462 116.263 136.462V142.768C116.003 142.71 115.748 142.667 115.503 142.637C115.256 142.609 115.016 142.594 114.785 142.594C112.871 142.594 111.349 143.131 110.218 144.203C109.087 145.276 108.522 146.929 108.522 149.161V160.208H101.738Z" fill="white" fill-opacity="0.8"/>
|
||||
<path d="M131.572 160.556C129.108 160.556 126.911 160.034 124.984 158.991C123.055 157.947 121.54 156.519 120.439 154.707C119.336 152.896 118.786 150.83 118.786 148.51C118.786 146.162 119.336 144.081 120.439 142.269C121.54 140.457 123.055 139.036 124.984 138.007C126.911 136.978 129.108 136.463 131.572 136.463C134.065 136.463 136.284 136.978 138.226 138.007C140.168 139.036 141.691 140.457 142.793 142.269C143.895 144.081 144.446 146.162 144.446 148.51C144.446 150.859 143.896 152.932 142.793 154.729C141.691 156.527 140.168 157.947 138.226 158.992C136.284 160.034 134.065 160.556 131.572 160.556ZM131.572 154.989C132.732 154.989 133.754 154.736 134.638 154.228C135.522 153.722 136.232 152.975 136.769 151.989C137.305 151.003 137.574 149.844 137.574 148.509C137.574 147.146 137.306 145.987 136.769 145.03C136.232 144.073 135.522 143.341 134.638 142.833C133.753 142.327 132.746 142.073 131.615 142.073C130.485 142.073 129.47 142.327 128.571 142.833C127.672 143.341 126.955 144.073 126.418 145.03C125.881 145.987 125.613 147.146 125.613 148.509C125.613 149.843 125.881 151.003 126.418 151.989C126.953 152.975 127.671 153.721 128.571 154.228C129.47 154.736 130.47 154.989 131.572 154.989Z" fill="white" fill-opacity="0.8"/>
|
||||
<path d="M158.841 160.556C156.869 160.556 155.129 160.18 153.622 159.425C152.114 158.672 150.94 157.511 150.099 155.946C149.258 154.38 148.837 152.408 148.837 150.032V136.81H155.622V148.988C155.622 150.96 156.036 152.402 156.862 153.316C157.688 154.229 158.855 154.686 160.363 154.686C161.407 154.686 162.335 154.454 163.146 153.99C163.958 153.527 164.603 152.83 165.081 151.902C165.559 150.975 165.799 149.814 165.799 148.423V136.81H172.54V160.208H166.103V153.728L167.278 155.642C166.465 157.266 165.306 158.491 163.798 159.317C162.291 160.143 160.639 160.556 158.841 160.556Z" fill="white" fill-opacity="0.8"/>
|
||||
<path d="M178.847 168.645V136.809H185.327V141.594L185.196 148.552L185.63 155.467V168.645H178.847ZM192.634 160.556C190.69 160.556 188.98 160.122 187.502 159.251C186.023 158.382 184.871 157.055 184.045 155.272C183.219 153.489 182.805 151.234 182.805 148.509C182.805 145.755 183.197 143.494 183.979 141.724C184.762 139.956 185.899 138.636 187.393 137.767C188.886 136.898 190.633 136.462 192.634 136.462C194.866 136.462 196.859 136.962 198.613 137.962C200.367 138.962 201.759 140.361 202.789 142.159C203.818 143.957 204.332 146.073 204.332 148.509C204.332 150.974 203.818 153.097 202.789 154.88C201.759 156.663 200.368 158.055 198.613 159.056C196.859 160.056 194.865 160.556 192.634 160.556ZM191.503 154.989C192.634 154.989 193.64 154.728 194.525 154.206C195.409 153.684 196.119 152.938 196.656 151.966C197.192 150.995 197.461 149.843 197.461 148.509C197.461 147.146 197.193 145.987 196.656 145.03C196.119 144.073 195.409 143.341 194.525 142.833C193.64 142.327 192.634 142.073 191.503 142.073C190.372 142.073 189.357 142.327 188.458 142.833C187.559 143.341 186.842 144.073 186.305 145.03C185.768 145.987 185.5 147.146 185.5 148.509C185.5 149.843 185.768 150.996 186.305 151.966C186.841 152.938 187.558 153.684 188.458 154.206C189.357 154.728 190.372 154.989 191.503 154.989Z" fill="white" fill-opacity="0.8"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 8.7 KiB |
16
assets/images/svg/onboarding1.svg
Normal file
16
assets/images/svg/onboarding1.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 5.2 MiB |
11
assets/images/svg/onboarding2.svg
Normal file
11
assets/images/svg/onboarding2.svg
Normal file
@@ -0,0 +1,11 @@
|
||||
<svg width="104" height="104" viewBox="0 0 104 104" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M68.2833 35.6585H65.2371H56.8136C56.8131 36.7671 56.5838 37.7962 56.1096 38.6984H64.91C63.5747 44.5905 58.3003 49.0136 52.0099 49.0287C51.999 49.0287 51.988 49.0287 51.9771 49.0287C48.4562 49.0287 45.1464 47.6621 42.6551 45.1786C40.1471 42.679 38.7644 39.3453 38.7608 35.7911C38.7603 35.4609 38.7738 35.1327 38.7977 34.8067H35.7401C35.7235 35.101 35.7126 35.3964 35.712 35.6928C35.7006 40.0644 37.3818 44.1709 40.4461 47.255C43.511 50.3396 47.6029 52.0431 51.9678 52.052C51.9787 52.052 51.9891 52.052 52 52.052C59.9898 52.052 66.6588 46.281 68.0269 38.6979C68.1928 37.7785 68.2853 36.8342 68.2885 35.8685C68.2885 35.7983 68.2843 35.7287 68.2833 35.6585Z" fill="white" fill-opacity="0.5"/>
|
||||
<path d="M52.0104 45.982C52.3557 45.981 52.6973 45.9649 53.0363 45.9378C51.7603 44.1792 50.5533 42.5147 49.3189 40.8132C52.6755 39.6843 54.0821 37.1108 53.8257 34.0215C53.5501 30.6987 51.4529 28.5121 48.0839 28.4419C47.2207 28.4242 46.3575 28.4154 45.4943 28.4097H40.989C41.4653 27.6993 42.0134 27.0296 42.6306 26.4103C45.1287 23.9049 48.4525 22.5238 51.9896 22.5217C51.9927 22.5217 51.9948 22.5217 51.9979 22.5217C55.5344 22.5217 58.8593 23.8981 61.3595 26.3973C62.3709 27.4081 63.1945 28.5558 63.8222 29.7965H67.1325C64.7389 23.7884 58.8822 19.5145 52.0364 19.4823C52.0109 19.4823 51.9854 19.4823 51.9599 19.4823C47.6741 19.4823 43.6212 21.164 40.5397 24.2231C38.4373 26.3104 36.9746 28.8553 36.2455 31.6227H39.4253C39.4259 31.6217 39.4259 31.6207 39.4264 31.6196C40.6364 31.6191 41.8459 31.6222 43.056 31.6227H44.5957V31.6238C45.2759 31.6248 45.9555 31.6233 46.6357 31.6253C47.1395 31.6269 47.6476 31.668 48.1457 31.7444C49.2481 31.9145 50.0354 32.6154 50.1888 33.6071C50.272 34.1468 50.2985 34.711 50.2439 35.2529C50.0895 36.7832 49.3568 37.6163 47.8275 37.8014C46.4875 37.9636 45.124 37.9387 43.771 37.9927C43.5344 38.0021 43.2973 37.9943 42.9333 37.9943L48.3881 45.4865C49.5419 45.8099 50.7463 45.981 51.9776 45.981C51.988 45.982 51.9989 45.982 52.0104 45.982Z" fill="white" fill-opacity="0.5"/>
|
||||
<path d="M4.57288 78.9651V63.96H11.0682C12.4114 63.96 13.5689 64.1779 14.5408 64.6137C15.5126 65.0499 16.2625 65.675 16.7913 66.4893C17.3196 67.3036 17.5843 68.2682 17.5843 69.3831C17.5843 70.512 17.3196 71.4803 16.7913 72.2878C16.2625 73.0954 15.5121 73.71 14.5408 74.1312C13.5689 74.5529 12.4114 74.7635 11.0682 74.7635H6.48076L8.06728 73.2628V78.9646H4.57288V78.9651ZM8.06676 73.6487L6.48024 71.9982H10.8748C11.9319 71.9982 12.7322 71.7699 13.2756 71.3123C13.8185 70.8552 14.0904 70.212 14.0904 69.3831C14.0904 68.5542 13.819 67.9146 13.2756 67.4643C12.7322 67.014 11.9319 66.7888 10.8748 66.7888H6.48024L8.06676 65.1383V73.6487ZM14.1331 78.9651L10.3605 73.5202H14.0904L17.863 78.9651H14.1331Z" fill="white" fill-opacity="0.5"/>
|
||||
<path d="M25.8159 79.1367C24.5008 79.1367 23.3506 78.8793 22.3647 78.3651C21.3787 77.8508 20.6138 77.1467 20.0709 76.2539C19.5275 75.361 19.2561 74.3429 19.2561 73.1994C19.2561 72.0564 19.5166 71.0341 20.0387 70.134C20.5603 69.2339 21.2888 68.5298 22.2253 68.0228C23.1613 67.5158 24.2153 67.262 25.3869 67.262C26.5158 67.262 27.534 67.5054 28.4414 67.9911C29.3488 68.4773 30.0669 69.1631 30.5957 70.0487C31.1241 70.9348 31.3887 71.9992 31.3887 73.2425C31.3887 73.371 31.3815 73.5176 31.3674 73.6819C31.3529 73.8463 31.3388 74.0002 31.3248 74.1427H21.957V72.1921H29.5672L28.2594 72.7709C28.2734 72.1708 28.159 71.6493 27.9162 71.2062C27.6728 70.7632 27.3374 70.4169 26.9084 70.1667C26.4799 69.9166 25.9792 69.7918 25.4077 69.7918C24.8357 69.7918 24.3323 69.9171 23.8966 70.1667C23.4603 70.4169 23.1213 70.7668 22.8784 71.2171C22.6351 71.6675 22.5139 72.1999 22.5139 72.8141V73.3283C22.5139 73.9716 22.6564 74.529 22.9424 75.0001C23.2279 75.4718 23.621 75.8327 24.1212 76.0828C24.6215 76.3329 25.2215 76.4577 25.922 76.4577C26.5221 76.4577 27.0545 76.3651 27.5189 76.179C27.9833 75.9933 28.4086 75.7146 28.7945 75.3428L30.5739 77.272C30.0451 77.8721 29.3805 78.3333 28.5802 78.6547C27.7805 78.9755 26.8585 79.1367 25.8159 79.1367Z" fill="white" fill-opacity="0.5"/>
|
||||
<path d="M41.0998 79.222C39.9136 79.222 38.8201 79.0322 37.8201 78.6542C36.8196 78.2756 35.9554 77.7358 35.2264 77.0359C34.4973 76.336 33.9295 75.5139 33.5223 74.5706C33.1152 73.6273 32.9113 72.5915 32.9113 71.4626C32.9113 70.3336 33.1152 69.2973 33.5223 68.3545C33.9295 67.4112 34.5046 66.5896 35.2482 65.8892C35.9913 65.1893 36.8628 64.6495 37.8633 64.271C38.8632 63.8924 39.9641 63.7031 41.1642 63.7031C42.4934 63.7031 43.6899 63.9246 44.7548 64.3677C45.8193 64.8107 46.7163 65.454 47.4453 66.2969L45.2374 68.355C44.68 67.769 44.0799 67.3369 43.4366 67.0582C42.7934 66.7794 42.0862 66.6401 41.3145 66.6401C40.5995 66.6401 39.9428 66.7581 39.3422 66.9937C38.7421 67.2292 38.2236 67.5615 37.7879 67.9905C37.3516 68.419 37.0162 68.9265 36.7801 69.5126C36.5446 70.0986 36.4265 70.7486 36.4265 71.4631C36.4265 72.149 36.5446 72.7886 36.7801 73.3819C37.0157 73.9752 37.3516 74.4858 37.7879 74.9143C38.2236 75.3428 38.7379 75.6792 39.3312 75.9221C39.924 76.1654 40.5777 76.2866 41.2927 76.2866C41.9786 76.2866 42.6468 76.1722 43.2968 75.9434C43.9468 75.7151 44.5791 75.336 45.1937 74.8072L47.1661 77.3152C46.3372 77.9444 45.3866 78.4191 44.3149 78.7405C43.2432 79.0618 42.1715 79.222 41.0998 79.222ZM43.9936 76.8643V71.2265H47.1661V77.3141L43.9936 76.8643Z" fill="white" fill-opacity="0.5"/>
|
||||
<path d="M50.1457 78.9651V67.4326H53.3395V70.7122L52.8892 69.7476C53.2324 68.9328 53.782 68.315 54.5397 67.8933C55.2968 67.4721 56.2188 67.261 57.3051 67.261V70.369C57.1766 70.3404 57.0513 70.3191 56.9301 70.3045C56.8085 70.2905 56.6904 70.2832 56.5765 70.2832C55.6333 70.2832 54.8829 70.5479 54.3254 71.0762C53.768 71.6051 53.4893 72.4199 53.4893 73.5202V78.9651H50.1457Z" fill="white" fill-opacity="0.5"/>
|
||||
<path d="M64.8507 79.1367C63.636 79.1367 62.5534 78.8793 61.6033 78.365C60.6528 77.8508 59.9061 77.1467 59.3632 76.2538C58.8198 75.361 58.5483 74.3428 58.5483 73.1994C58.5483 72.0418 58.8198 71.0164 59.3632 70.123C59.9061 69.2302 60.6528 68.5298 61.6033 68.0222C62.5534 67.5152 63.636 67.2615 64.8507 67.2615C66.0795 67.2615 67.1731 67.5152 68.1304 68.0222C69.0877 68.5298 69.8381 69.2302 70.3815 70.123C70.9243 71.0164 71.1963 72.0418 71.1963 73.1994C71.1963 74.3569 70.9249 75.3787 70.3815 76.2648C69.8381 77.1508 69.0877 77.8508 68.1304 78.3656C67.1731 78.8793 66.0795 79.1367 64.8507 79.1367ZM64.8507 76.3927C65.4222 76.3927 65.9261 76.2679 66.3619 76.0178C66.7976 75.7682 67.1476 75.4 67.4123 74.9138C67.6764 74.4281 67.809 73.8566 67.809 73.1988C67.809 72.527 67.6769 71.9555 67.4123 71.4839C67.1476 71.0122 66.7976 70.6514 66.3619 70.4012C65.9256 70.1516 65.4295 70.0263 64.8721 70.0263C64.3146 70.0263 63.8144 70.1516 63.3713 70.4012C62.9283 70.6514 62.5747 71.0122 62.31 71.4839C62.0453 71.9555 61.9133 72.527 61.9133 73.1988C61.9133 73.8561 62.0453 74.4281 62.31 74.9138C62.5742 75.4 62.9278 75.7676 63.3713 76.0178C63.8144 76.2679 64.3073 76.3927 64.8507 76.3927Z" fill="white" fill-opacity="0.5"/>
|
||||
<path d="M78.2912 79.1367C77.3193 79.1367 76.4618 78.9511 75.7187 78.5793C74.9757 78.208 74.3969 77.636 73.9825 76.8643C73.568 76.0926 73.3605 75.1208 73.3605 73.9492V67.4326H76.7047V73.4349C76.7047 74.4068 76.9085 75.1176 77.3157 75.568C77.7228 76.0183 78.2979 76.2434 79.0415 76.2434C79.5558 76.2434 80.0134 76.129 80.4133 75.9002C80.8132 75.672 81.1314 75.3288 81.367 74.8712C81.6025 74.4141 81.7206 73.8421 81.7206 73.1562V67.4326H85.0434V78.9651H81.8708V75.7713L82.4496 76.7146C82.0492 77.5148 81.4777 78.1186 80.7347 78.5257C79.9916 78.9329 79.1773 79.1367 78.2912 79.1367Z" fill="white" fill-opacity="0.5"/>
|
||||
<path d="M88.152 83.1236V67.4321H91.3458V69.7903L91.2813 73.2202L91.4956 76.6283V83.1236H88.152ZM94.9473 79.1367C93.9895 79.1367 93.1466 78.9225 92.4181 78.4935C91.689 78.065 91.1212 77.4109 90.714 76.5321C90.3069 75.6533 90.103 74.542 90.103 73.1989C90.103 71.8411 90.2959 70.7268 90.6818 69.8547C91.0676 68.9832 91.6282 68.3327 92.3645 67.9042C93.1003 67.4757 93.9614 67.261 94.9473 67.261C96.0477 67.261 97.0299 67.5075 97.8947 68.0004C98.7589 68.4934 99.4453 69.1829 99.9529 70.069C100.46 70.9551 100.714 71.9982 100.714 73.1989C100.714 74.4136 100.46 75.4604 99.9529 76.3392C99.4453 77.218 98.7595 77.9038 97.8947 78.3973C97.0299 78.8903 96.0471 79.1367 94.9473 79.1367ZM94.3899 76.3927C94.9473 76.3927 95.4434 76.2643 95.8797 76.0069C96.3155 75.7495 96.6654 75.3818 96.9301 74.9029C97.1943 74.424 97.3269 73.8561 97.3269 73.1989C97.3269 72.527 97.1948 71.9555 96.9301 71.4839C96.6654 71.0123 96.3155 70.6514 95.8797 70.4013C95.4434 70.1517 94.9473 70.0263 94.3899 70.0263C93.8325 70.0263 93.3322 70.1517 92.8892 70.4013C92.4461 70.6514 92.0925 71.0123 91.8279 71.4839C91.5632 71.9555 91.4311 72.527 91.4311 73.1989C91.4311 73.8561 91.5632 74.4245 91.8279 74.9029C92.092 75.3818 92.4456 75.7495 92.8892 76.0069C93.3322 76.2643 93.8325 76.3927 94.3899 76.3927Z" fill="white" fill-opacity="0.5"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 8.7 KiB |
@@ -1,7 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
|
||||
class CustomNextButton extends StatelessWidget {
|
||||
class CustomButton extends StatelessWidget {
|
||||
final String text;
|
||||
final Function onPressed;
|
||||
final Color backgroundColor;
|
||||
@@ -9,11 +9,11 @@ class CustomNextButton extends StatelessWidget {
|
||||
final double height;
|
||||
final Color textColor;
|
||||
|
||||
const CustomNextButton({
|
||||
const CustomButton({
|
||||
Key? key,
|
||||
required this.text,
|
||||
required this.onPressed,
|
||||
this.backgroundColor = const Color(0xFFC18948),
|
||||
this.backgroundColor = const Color(0xFFD90B2E),
|
||||
this.width = double.infinity,
|
||||
this.height = 50.0,
|
||||
this.textColor = Colors.white,
|
||||
@@ -27,7 +27,7 @@ class CustomNextButton extends StatelessWidget {
|
||||
},
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: backgroundColor,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(5)),
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(30)),
|
||||
minimumSize: Size(width, height),
|
||||
),
|
||||
child: FittedBox(
|
||||
@@ -36,13 +36,95 @@ class CustomNextButton extends StatelessWidget {
|
||||
text,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontFamily: "Cambria",
|
||||
fontFamily: "Helvetica",
|
||||
fontWeight: FontWeight.w400,
|
||||
fontSize: 20.sp,
|
||||
color: Color(0xFFFFFFFF),
|
||||
fontSize: 16.sp,
|
||||
color: Color(0xFFFCFCFC),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class CustomButton2 extends StatelessWidget {
|
||||
final String text;
|
||||
final Function onPressed;
|
||||
// final Color backgroundColor;
|
||||
final double width;
|
||||
final double height;
|
||||
final Color textColor;
|
||||
|
||||
const CustomButton2({
|
||||
Key? key,
|
||||
required this.text,
|
||||
required this.onPressed,
|
||||
// this.backgroundColor = const Color(0xFF434A53),
|
||||
this.width = double.infinity,
|
||||
this.height = 50.0,
|
||||
this.textColor = Colors.white,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return InkWell(
|
||||
onTap: onPressed(),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
height: 50.h,
|
||||
decoration: ShapeDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment(-1.00, 0.02),
|
||||
end: Alignment(1, -0.02),
|
||||
colors: [
|
||||
Colors.white.withOpacity(0.09000000357627869),
|
||||
Colors.white.withOpacity(0.11999999731779099)
|
||||
],
|
||||
),
|
||||
shape: RoundedRectangleBorder(
|
||||
side: BorderSide(width: 1, color: Colors.white.withOpacity(0.3)),
|
||||
borderRadius: BorderRadius.circular(30),
|
||||
),
|
||||
),
|
||||
child: Center(
|
||||
child: Text(
|
||||
text,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Color(0xFFFCFCFC),
|
||||
fontSize: 16.sp,
|
||||
fontFamily: 'Helvetica',
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
),
|
||||
));
|
||||
|
||||
// ElevatedButton(
|
||||
// onPressed: () {
|
||||
// onPressed();
|
||||
// },
|
||||
// style: ElevatedButton.styleFrom(
|
||||
// backgroundColor: Colors.white.withOpacity(0.09000000357627869),
|
||||
// // Color(0XFFFFFFFF).withOpacity(0.54),
|
||||
// shape: RoundedRectangleBorder(
|
||||
// side: BorderSide(width: 1, color: Colors.white.withOpacity(0.3)),
|
||||
// borderRadius: BorderRadius.circular(30)),
|
||||
// minimumSize: Size(width, height),
|
||||
// ),
|
||||
// child: FittedBox(
|
||||
// fit: BoxFit.contain,
|
||||
// child: Text(
|
||||
// text,
|
||||
// textAlign: TextAlign.center,
|
||||
// style: TextStyle(
|
||||
// fontFamily: "Helvetica",
|
||||
// fontWeight: FontWeight.w400,
|
||||
// fontSize: 16.sp,
|
||||
// color: Color(0xFFFCFCFC),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,11 +14,12 @@ class NoInternet extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _NoInternetState extends State<NoInternet> {
|
||||
|
||||
Future<void> checkInternet() async {
|
||||
final connectivityResult = await (Connectivity().checkConnectivity());
|
||||
|
||||
if (connectivityResult == ConnectivityResult.wifi ||
|
||||
connectivityResult == ConnectivityResult.mobile) {
|
||||
if (connectivityResult.contains(ConnectivityResult.wifi) ||
|
||||
connectivityResult.contains(ConnectivityResult.mobile) ) {
|
||||
setState(() {
|
||||
// _connectionStatus = connectivityResult.toString();
|
||||
Get.back(result: true);
|
||||
@@ -38,6 +39,7 @@ class _NoInternetState extends State<NoInternet> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: Color(0xff222935),
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Container(
|
||||
@@ -47,12 +49,12 @@ class _NoInternetState extends State<NoInternet> {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
Lottie.asset(
|
||||
"assets/images/nointernet.json",
|
||||
height: 230.h,
|
||||
// width: 300.w,
|
||||
// fit: BoxFit.cover
|
||||
),
|
||||
// Lottie.asset(
|
||||
// "assets/images/nointernet.json",
|
||||
// height: 230.h,
|
||||
// // width: 300.w,
|
||||
// // fit: BoxFit.cover
|
||||
// ),
|
||||
sizedBoxHeight(40.h),
|
||||
Text(
|
||||
'No Internet !',
|
||||
@@ -65,7 +67,7 @@ class _NoInternetState extends State<NoInternet> {
|
||||
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20),
|
||||
),
|
||||
sizedBoxHeight(20.h),
|
||||
CustomNextButton(
|
||||
CustomButton(
|
||||
text: "Try again",
|
||||
onPressed: () {
|
||||
checkInternet();
|
||||
|
||||
63
lib/Utils/Common/blureffect.dart
Normal file
63
lib/Utils/Common/blureffect.dart
Normal file
@@ -0,0 +1,63 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class CommonBlurLeft extends StatelessWidget {
|
||||
const CommonBlurLeft({
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Positioned(
|
||||
top: 150,
|
||||
left: -50,
|
||||
child: Container(
|
||||
height: 200,
|
||||
width: 200,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: Color(0xFF001D54).withOpacity(0.5),
|
||||
),
|
||||
child: BackdropFilter(
|
||||
filter: ImageFilter.blur(sigmaX: 30, sigmaY: 30),
|
||||
child: Container(
|
||||
height: 200,
|
||||
width: 200,
|
||||
color: Colors.transparent,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class CommonBlurRight extends StatelessWidget {
|
||||
const CommonBlurRight({
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Positioned(
|
||||
top: 450,
|
||||
right: -50,
|
||||
child: Container(
|
||||
height: 200,
|
||||
width: 200,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: Color(0xFF001D54).withOpacity(0.5),
|
||||
),
|
||||
child: BackdropFilter(
|
||||
filter: ImageFilter.blur(sigmaX: 30, sigmaY: 30),
|
||||
child: Container(
|
||||
height: 200,
|
||||
width: 200,
|
||||
color: Colors.transparent,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,10 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AppColors {
|
||||
static const white = Color(0xffFFFFFF);
|
||||
static const black = Color(0xff0F0C0C);
|
||||
static const white = Color(0xFFFCFCFC);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -10,6 +10,19 @@ Widget text30BlackM(String text) {
|
||||
);
|
||||
}
|
||||
|
||||
Widget text22400white(String text) {
|
||||
return Text(
|
||||
text,
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 22.sp,
|
||||
color: AppColors.white,
|
||||
fontWeight: FontWeight.w400,
|
||||
fontFamily: 'Helvetica'
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget text20Black(String text) {
|
||||
return Text(
|
||||
text,
|
||||
|
||||
126
lib/main.dart
126
lib/main.dart
@@ -1,4 +1,5 @@
|
||||
import 'dart:async';
|
||||
import 'dart:developer';
|
||||
|
||||
import 'package:connectivity_plus/connectivity_plus.dart';
|
||||
import 'package:device_info_plus/device_info_plus.dart';
|
||||
@@ -44,39 +45,89 @@ class MyApp extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
|
||||
var _connectionStatus = ConnectivityResult.values.toString();
|
||||
late StreamSubscription<List<ConnectivityResult>> subscription;
|
||||
Connectivity connectivity = Connectivity();
|
||||
// var _connectionStatus = ConnectivityResult.values.toString();
|
||||
// late StreamSubscription<List<ConnectivityResult>> subscription;
|
||||
// Connectivity connectivity = Connectivity();
|
||||
|
||||
List<ConnectivityResult> _connectionStatus = [ConnectivityResult.none];
|
||||
final Connectivity _connectivity = Connectivity();
|
||||
late StreamSubscription<List<ConnectivityResult>> _connectivitySubscription;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
WidgetsBinding.instance.addObserver(this);
|
||||
initConnectivity();
|
||||
|
||||
connectivity = Connectivity();
|
||||
checkInternet();
|
||||
_connectivitySubscription =
|
||||
_connectivity.onConnectivityChanged.listen(_updateConnectionStatus);
|
||||
|
||||
// connectivity = Connectivity();
|
||||
// checkInternet();
|
||||
// if (Platform.isAndroid) {
|
||||
// _getStoragePermission();
|
||||
// }
|
||||
// _getStoragePermission();
|
||||
subscription = connectivity.onConnectivityChanged
|
||||
.listen((List<ConnectivityResult> result) {
|
||||
_connectionStatus = result.toString();
|
||||
if (result == ConnectivityResult.wifi ||
|
||||
result == ConnectivityResult.mobile) {
|
||||
setState(() {
|
||||
_connectionStatus = result.toString();
|
||||
// subscription = connectivity.onConnectivityChanged
|
||||
// .listen((List<ConnectivityResult> result) {
|
||||
// _connectionStatus = result.toString();
|
||||
// if (result == ConnectivityResult.wifi ||
|
||||
// result == ConnectivityResult.mobile) {
|
||||
// setState(() {
|
||||
// _connectionStatus = result.toString();
|
||||
|
||||
Get.back(result: true);
|
||||
});
|
||||
} else {
|
||||
// Get.back(result: true);
|
||||
// });
|
||||
// } else if (result == ConnectivityResult.none) {
|
||||
// setState(() {
|
||||
// _connectionStatus = result.toString();
|
||||
// Get.toNamed(RouteName.nointernet);
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
// print(_connectionStatus);
|
||||
}
|
||||
|
||||
Future<void> initConnectivity() async {
|
||||
late List<ConnectivityResult> result;
|
||||
// Platform messages may fail, so we use a try/catch PlatformException.
|
||||
try {
|
||||
result = await _connectivity.checkConnectivity();
|
||||
} on PlatformException catch (e) {
|
||||
log('Couldn\'t check connectivity status', error: e);
|
||||
return;
|
||||
}
|
||||
|
||||
// If the widget was removed from the tree while the asynchronous platform
|
||||
// message was in flight, we want to discard the reply rather than calling
|
||||
// setState to update our non-existent appearance.
|
||||
if (!mounted) {
|
||||
return Future.value(null);
|
||||
}
|
||||
|
||||
return _updateConnectionStatus(result);
|
||||
}
|
||||
|
||||
Future<void> _updateConnectionStatus(List<ConnectivityResult> result) async {
|
||||
// setState(() {
|
||||
// _connectionStatus = result;
|
||||
// });
|
||||
|
||||
if (result.contains(ConnectivityResult.wifi) || result.contains(ConnectivityResult.mobile)) {
|
||||
setState(() {
|
||||
_connectionStatus = result.toString();
|
||||
_connectionStatus = result;
|
||||
Get.back(result: true);
|
||||
|
||||
});
|
||||
} else {
|
||||
setState(() {
|
||||
_connectionStatus = result;
|
||||
Get.toNamed(RouteName.nointernet);
|
||||
});
|
||||
}
|
||||
});
|
||||
// print(_connectionStatus);
|
||||
// Get.toNamed(RouteName.nointernet);
|
||||
}
|
||||
// ignore: avoid_print
|
||||
print('Connectivity changed: $_connectionStatus');
|
||||
}
|
||||
|
||||
Future<void> _getStoragePermission() async {
|
||||
@@ -115,31 +166,32 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> checkInternet() async {
|
||||
final connectivityResult = await (Connectivity().checkConnectivity());
|
||||
// Future<void> checkInternet() async {
|
||||
// final connectivityResult = await (Connectivity().checkConnectivity());
|
||||
|
||||
if (connectivityResult == ConnectivityResult.wifi ||
|
||||
connectivityResult == ConnectivityResult.mobile) {
|
||||
setState(() {
|
||||
_connectionStatus = connectivityResult.toString();
|
||||
});
|
||||
} else {
|
||||
setState(() {
|
||||
_connectionStatus = connectivityResult.toString();
|
||||
print(_connectionStatus.toString());
|
||||
Get.toNamed(RouteName.nointernet);
|
||||
// if (connectivityResult == ConnectivityResult.wifi ||
|
||||
// connectivityResult == ConnectivityResult.mobile) {
|
||||
// setState(() {
|
||||
// _connectionStatus = connectivityResult.toString();
|
||||
// });
|
||||
// } else {
|
||||
// setState(() {
|
||||
// _connectionStatus = connectivityResult.toString();
|
||||
// print(_connectionStatus.toString());
|
||||
// Get.toNamed(RouteName.nointernet);
|
||||
|
||||
// Navigator.pushReplacementNamed(context, "/noInternet");
|
||||
});
|
||||
}
|
||||
}
|
||||
// // Navigator.pushReplacementNamed(context, "/noInternet");
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
WidgetsBinding.instance.removeObserver(this);
|
||||
|
||||
subscription.cancel();
|
||||
// subscription.cancel();
|
||||
_connectivitySubscription.cancel();
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -160,7 +212,7 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
|
||||
//initialRoute: RouteName.mainScreen,
|
||||
getPages: AppRoutes.appRoutes(),
|
||||
),
|
||||
designSize: const Size(390, 844),
|
||||
designSize: const Size(390, 848),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
164
lib/onboarding/SplashScreen.dart
Normal file
164
lib/onboarding/SplashScreen.dart
Normal file
@@ -0,0 +1,164 @@
|
||||
import 'dart:async';
|
||||
import 'dart:developer';
|
||||
|
||||
import 'package:connectivity_plus/connectivity_plus.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:regroup/Utils/Common/NoInternet.dart';
|
||||
import 'package:regroup/resources/routes/route_name.dart';
|
||||
// import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
class SplashScreen extends StatefulWidget {
|
||||
const SplashScreen({super.key});
|
||||
|
||||
@override
|
||||
State<SplashScreen> createState() => _SplashScreenState();
|
||||
}
|
||||
|
||||
class _SplashScreenState extends State<SplashScreen> {
|
||||
// var _connectionStatus;
|
||||
final Connectivity _connectivity = Connectivity();
|
||||
List<ConnectivityResult> _connectionStatus = [ConnectivityResult.none];
|
||||
|
||||
Future<void> checkInternet() async {
|
||||
final connectivityResult = await (Connectivity().checkConnectivity());
|
||||
|
||||
if (connectivityResult == ConnectivityResult.wifi ||
|
||||
connectivityResult == ConnectivityResult.mobile) {
|
||||
setState(() {
|
||||
_connectionStatus = connectivityResult;
|
||||
});
|
||||
} else {
|
||||
setState(() {
|
||||
_connectionStatus = connectivityResult;
|
||||
|
||||
// Navigator.pushReplacementNamed(context, "/noInternet");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> initConnectivity() async {
|
||||
late List<ConnectivityResult> result;
|
||||
// Platform messages may fail, so we use a try/catch PlatformException.
|
||||
try {
|
||||
result = await _connectivity.checkConnectivity();
|
||||
} on PlatformException catch (e) {
|
||||
log('Couldn\'t check connectivity status', error: e);
|
||||
return;
|
||||
}
|
||||
|
||||
// If the widget was removed from the tree while the asynchronous platform
|
||||
// message was in flight, we want to discard the reply rather than calling
|
||||
// setState to update our non-existent appearance.
|
||||
if (!mounted) {
|
||||
return Future.value(null);
|
||||
}
|
||||
|
||||
return _updateConnectionStatus(result);
|
||||
}
|
||||
|
||||
Future<void> _updateConnectionStatus(List<ConnectivityResult> result) async {
|
||||
setState(() {
|
||||
_connectionStatus = result;
|
||||
});
|
||||
|
||||
// ignore: avoid_print
|
||||
print('Connectivity changed: $_connectionStatus');
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
// TODO: implement initState
|
||||
super.initState();
|
||||
// checkInternet();
|
||||
initConnectivity();
|
||||
|
||||
log(_connectionStatus.toString());
|
||||
Future.delayed(Duration(seconds: 2), () async {
|
||||
if (_connectionStatus.contains(ConnectivityResult.none)) {
|
||||
var result = await Get.to(NoInternet());
|
||||
if (result != null && result) {
|
||||
Timer(const Duration(seconds: 1), () async {
|
||||
Get.toNamed(RouteName.onboarding1);
|
||||
// SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||
// token = prefs.getString('token');
|
||||
// myusername = prefs.getString('name');
|
||||
// phonenumber = prefs.getString('contact_number');
|
||||
// OnBoard = prefs.getBool('OnBoard') ?? false;
|
||||
// if (OnBoard == false) {
|
||||
// Get.toNamed(RouteName.sliderscreen1);
|
||||
// } else {
|
||||
|
||||
// if (token == null || token!.isEmpty) {
|
||||
// Get.offAndToNamed(RouteName.loginScreen);
|
||||
// } else {
|
||||
// GetProfile().GetProfileAPI().then((value) {
|
||||
// Get.toNamed(RouteName.mainScreen, arguments: 0);
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
});
|
||||
}
|
||||
} else {
|
||||
Timer(const Duration(seconds: 2), () async {
|
||||
Get.toNamed(RouteName.onboarding1);
|
||||
// SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||
|
||||
// token = prefs.getString('token');
|
||||
// myusername = prefs.getString('name');
|
||||
// phonenumber = prefs.getString('contact_number');
|
||||
// OnBoard = prefs.getBool('OnBoard') ?? false;
|
||||
// if (OnBoard == false) {
|
||||
// Get.toNamed(RouteName.sliderscreen1);
|
||||
// } else {
|
||||
// if (token == null || token!.isEmpty) {
|
||||
// Get.offAndToNamed(RouteName.loginScreen);
|
||||
// } else {
|
||||
// GetProfile().GetProfileAPI().then((value) {
|
||||
// Get.toNamed(RouteName.mainScreen, arguments: 0);
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: const Color(0xff222935),
|
||||
body: Container(
|
||||
width: MediaQuery.of(context).size.width,
|
||||
height: MediaQuery.of(context).size.height,
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
colors: [
|
||||
Color(0xff009DAB).withOpacity(0.25),
|
||||
Color(0xff35798C).withOpacity(0.44),
|
||||
Color(0xffD90B2E).withOpacity(0.33),
|
||||
Color(0xffD90B2E).withOpacity(0.52),
|
||||
Color(0xffD90B2E).withOpacity(0.59),
|
||||
],
|
||||
)),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
SvgPicture.asset("assets/images/svg/mainsplash.svg",
|
||||
width: 211.w,
|
||||
height: 211.h,
|
||||
)
|
||||
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
222
lib/onboarding/onboarding1.dart
Normal file
222
lib/onboarding/onboarding1.dart
Normal file
@@ -0,0 +1,222 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:glassmorphism/glassmorphism.dart';
|
||||
import 'package:regroup/Utils/Common/CustomNextButton.dart';
|
||||
import 'package:regroup/Utils/Common/sized_box.dart';
|
||||
import 'package:regroup/Utils/texts.dart';
|
||||
|
||||
class Onboarding1 extends StatefulWidget {
|
||||
const Onboarding1({super.key});
|
||||
|
||||
@override
|
||||
State<Onboarding1> createState() => _Onboarding1State();
|
||||
}
|
||||
|
||||
class _Onboarding1State extends State<Onboarding1> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: Stack(
|
||||
children: [
|
||||
Positioned(
|
||||
top: 650,
|
||||
left: 100,
|
||||
child: Container(
|
||||
height: 400,
|
||||
width: 200,
|
||||
decoration:
|
||||
BoxDecoration(shape: BoxShape.circle, color: Colors.red
|
||||
// Color(0xFF001D54).withOpacity(0.5),
|
||||
),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
width: MediaQuery.of(context).size.width,
|
||||
height: MediaQuery.of(context).size.height,
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.center,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [
|
||||
Color(0xFF222935).withOpacity(0.12),
|
||||
Color(0xFF222935).withOpacity(0.60),
|
||||
Color(0XFF222B37),
|
||||
Color(0xFF222935),
|
||||
],
|
||||
),
|
||||
image: DecorationImage(
|
||||
image: AssetImage("assets/images/png/onboarding1.png"),
|
||||
fit: BoxFit.fill)),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16.w),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
Spacer(),
|
||||
SvgPicture.asset(
|
||||
"assets/images/svg/onboarding2.svg",
|
||||
width: 104.w,
|
||||
height: 104.h,
|
||||
),
|
||||
const Spacer(
|
||||
flex: 8,
|
||||
),
|
||||
SizedBox(
|
||||
width: 301.w,
|
||||
height: 64.h,
|
||||
child: text22400white(
|
||||
"Find motivation and support from like-minded people"),
|
||||
),
|
||||
sizedBoxHeight(10.h),
|
||||
// GlassmorphicContainer(
|
||||
// width: double.infinity,
|
||||
// height: 130.h,
|
||||
// borderRadius: 2,
|
||||
// blur: 10,
|
||||
// alignment: Alignment.bottomLeft,
|
||||
// border: 2,
|
||||
// linearGradient: LinearGradient(
|
||||
// begin: Alignment.topLeft,
|
||||
// end: Alignment.centerRight,
|
||||
// colors: [
|
||||
// // Color(0xFF222935).withOpacity(0.12),
|
||||
// // Color(0xFF222935).withOpacity(0.60),
|
||||
// // Color(0XFF222B37),
|
||||
// // Color(0xFF222935),
|
||||
|
||||
// Color(0xFF009DAB40),
|
||||
// Color(0xFF35798C6F),
|
||||
// Color(0xFFD90B2E54),
|
||||
// Color(0xFFD90B2E85),
|
||||
// Color(0xFFD90B2E96),
|
||||
|
||||
// // Colors.green.withOpacity(0.9),
|
||||
// // Colors.amber.withOpacity(0.1)
|
||||
// ],
|
||||
// ),
|
||||
// borderGradient: LinearGradient(
|
||||
// begin: Alignment.topLeft,
|
||||
// end: Alignment.bottomRight,
|
||||
// colors: [
|
||||
// // Color(0xFFffffff).withOpacity(0.5),
|
||||
// // Color((0xFFFFFFFF)).withOpacity(0.5),
|
||||
|
||||
// // Color(0xFF222935).withOpacity(0.12),
|
||||
// // Color(0xFF222935).withOpacity(0.60),
|
||||
// // Color(0XFF222B37),
|
||||
// // Color(0xFF222935),
|
||||
|
||||
// Colors.green.withOpacity(0.1),
|
||||
// Color((0xFFFFFFFF)).withOpacity(0.5),
|
||||
// ],
|
||||
// ),
|
||||
// child: Column(
|
||||
// children: [
|
||||
// CustomButton(text: "Sign up", onPressed: () {}),
|
||||
// sizedBoxHeight(30.h),
|
||||
// CustomButton2(text: "Login", onPressed: () {}),
|
||||
// ],
|
||||
// )),
|
||||
CustomButton(text: "Sign up", onPressed: () {}),
|
||||
sizedBoxHeight(30.h),
|
||||
CustomButton2(text: "Login", onPressed: () {}),
|
||||
sizedBoxHeight(90.h),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
// Positioned(
|
||||
// bottom: -100,
|
||||
// left: 100,
|
||||
// child: Container(
|
||||
// height: 200,
|
||||
// width: 200,
|
||||
// decoration:
|
||||
// BoxDecoration(shape: BoxShape.circle, color: Colors.red
|
||||
// // Color(0xFF001D54).withOpacity(0.5),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
// Scaffold(
|
||||
// backgroundColor: Color(0xff222935),
|
||||
// body: Container(
|
||||
// width: MediaQuery.of(context).size.width,
|
||||
// height: MediaQuery.of(context).size.height,
|
||||
// decoration: BoxDecoration(
|
||||
// gradient: LinearGradient(
|
||||
// begin: Alignment.center,
|
||||
// end: Alignment.bottomCenter,
|
||||
// colors: [
|
||||
// Color(0xFF222935).withOpacity(0.12),
|
||||
// Color(0xFF222935).withOpacity(0.60),
|
||||
// Color(0XFF222B37),
|
||||
// Color(0xFF222935),
|
||||
// ],
|
||||
// ),
|
||||
// image: DecorationImage(
|
||||
// image: AssetImage("assets/images/png/onboarding1.png"),
|
||||
// fit: BoxFit.fill)),
|
||||
// child: Stack(children: [
|
||||
// Positioned.fill(
|
||||
// child: Container(
|
||||
// color: Colors.black.withOpacity(0.2),
|
||||
// ),
|
||||
// ),
|
||||
// Positioned(
|
||||
// bottom: -100,
|
||||
// left: 100,
|
||||
// child: BackdropFilter(
|
||||
// filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
|
||||
// child: Container(
|
||||
// height: 200,
|
||||
// width: 200,
|
||||
// decoration: BoxDecoration(
|
||||
// shape: BoxShape.circle,
|
||||
// color: Color(0xFF001D54).withOpacity(0.5),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// Padding(
|
||||
// padding: EdgeInsets.symmetric(horizontal: 16.w),
|
||||
// child: Column(
|
||||
// crossAxisAlignment: CrossAxisAlignment.center,
|
||||
// mainAxisAlignment: MainAxisAlignment.start,
|
||||
// children: [
|
||||
// Spacer(),
|
||||
// SvgPicture.asset(
|
||||
// "assets/images/svg/onboarding2.svg",
|
||||
// width: 104.w,
|
||||
// height: 104.h,
|
||||
// ),
|
||||
// const Spacer(
|
||||
// flex: 8,
|
||||
// ),
|
||||
// SizedBox(
|
||||
// width: 301.w,
|
||||
// height: 64.h,
|
||||
// child: text22400white(
|
||||
// "Find motivation and support from like-minded people"),
|
||||
// ),
|
||||
// sizedBoxHeight(50.h),
|
||||
// CustomButton(text: "Sign up", onPressed: () {}),
|
||||
// sizedBoxHeight(30.h),
|
||||
// CustomButton2(text: "Login", onPressed: () {}),
|
||||
// sizedBoxHeight(50.h),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// ]),
|
||||
// ),
|
||||
// );
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
class RouteName {
|
||||
static const String splashScreen = '/';
|
||||
static const String onboarding1 = '/onboarding1';
|
||||
static const String loginScreen = '/loginScreen';
|
||||
static const String nointernet = '/nointernet';
|
||||
|
||||
|
||||
@@ -1,19 +1,24 @@
|
||||
import 'package:get/get_navigation/src/routes/get_route.dart';
|
||||
import 'package:regroup/Utils/Common/NoInternet.dart';
|
||||
import 'package:regroup/onboarding/onboarding1.dart';
|
||||
import 'package:regroup/onboarding/splashscreen.dart';
|
||||
import 'package:regroup/resources/routes/route_name.dart';
|
||||
|
||||
class AppRoutes {
|
||||
static appRoutes() => [
|
||||
GetPage(
|
||||
GetPage(
|
||||
name: RouteName.splashScreen,
|
||||
page: () =>
|
||||
const SplashScreen(),
|
||||
),
|
||||
GetPage(
|
||||
name: RouteName.onboarding1,
|
||||
page: () =>
|
||||
const Onboarding1(),
|
||||
),
|
||||
GetPage(
|
||||
name: RouteName.nointernet,
|
||||
page: () => const NoInternet(),
|
||||
),
|
||||
// GetPage(
|
||||
// name: RouteName.splashScreen,
|
||||
// page: () =>
|
||||
// const
|
||||
// SplashScreen(),
|
||||
// ),
|
||||
|
||||
];
|
||||
}
|
||||
@@ -264,6 +264,14 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.6.6"
|
||||
glassmorphism:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: glassmorphism
|
||||
sha256: c0f65ea2681d4ee6d4125b947946d983335cd44765e835cdc039894b076a6e31
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.0.0"
|
||||
http:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
16
pubspec.yaml
16
pubspec.yaml
@@ -53,6 +53,7 @@ dependencies:
|
||||
shimmer: ^3.0.0
|
||||
device_info_plus: ^9.1.2
|
||||
permission_handler: ^11.3.1
|
||||
glassmorphism: ^3.0.0
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
@@ -77,8 +78,11 @@ flutter:
|
||||
uses-material-design: true
|
||||
|
||||
# To add assets to your application, add an assets section, like this:
|
||||
# assets:
|
||||
# - images/a_dot_burr.jpeg
|
||||
assets:
|
||||
- assets/images/
|
||||
- assets/icons/
|
||||
- assets/images/png/
|
||||
- assets/images/svg/
|
||||
# - images/a_dot_ham.jpeg
|
||||
|
||||
# An image asset can refer to one or more resolution-specific "variants", see
|
||||
@@ -92,10 +96,10 @@ flutter:
|
||||
# "family" key with the font family name, and a "fonts" key with a
|
||||
# list giving the asset and other descriptors for the font. For
|
||||
# example:
|
||||
# fonts:
|
||||
# - family: Schyler
|
||||
# fonts:
|
||||
# - asset: fonts/Schyler-Regular.ttf
|
||||
fonts:
|
||||
- family: Helvetica
|
||||
fonts:
|
||||
- asset: assets/fonts/Helvetica-Font/Helvetica.ttf
|
||||
# - asset: fonts/Schyler-Italic.ttf
|
||||
# style: italic
|
||||
# - family: Trajan Pro
|
||||
|
||||
Reference in New Issue
Block a user