├── .github └── workflows │ ├── dev-release.yml │ └── prod-release.yml ├── .gitignore ├── .metadata ├── .vscode └── launch.json ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── flutter_starter_app │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets └── images │ └── placeholder_250.png ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ ├── dev.xcscheme │ │ └── prod.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── generated │ └── images.asset.dart ├── main_dev.dart ├── main_prod.dart └── src │ ├── app │ └── app_view.dart │ ├── base │ └── utils │ │ ├── Constants.dart │ │ └── utils.dart │ ├── configs │ ├── app_setup.dart │ ├── app_setup.locator.dart │ └── app_setup.router.dart │ ├── models │ ├── User.dart │ └── wrappers │ │ └── response_wrapper.dart │ ├── services │ ├── local │ │ ├── auth_service.dart │ │ ├── connectivity_service.dart │ │ ├── flavor_service.dart │ │ ├── keyboard_service.dart │ │ └── navigation_service.dart │ └── remote │ │ ├── api_client.dart │ │ ├── api_result.dart │ │ ├── api_result.freezed.dart │ │ ├── api_service.dart │ │ ├── network_exceptions.dart │ │ └── network_exceptions.freezed.dart │ ├── shared │ ├── loading_indicator.dart │ └── spacing.dart │ ├── styles │ ├── app_colors.dart │ └── text_theme.dart │ └── views │ ├── about │ ├── about_view.dart │ └── about_view_model.dart │ ├── dashboard │ ├── dashboard_view.dart │ └── dashboard_view_model.dart │ ├── home │ ├── home_view.dart │ └── home_view_model.dart │ └── splash │ ├── splash_view.dart │ └── splash_view_model.dart ├── pubspec.lock ├── pubspec.yaml └── setup ├── app_name.dart ├── dart_name.dart ├── set_package_name.dart ├── setter.dart └── setup.dart /.github/workflows/dev-release.yml: -------------------------------------------------------------------------------- 1 | name: CD Dev-Lane 2 | # Controls when the action will run. Triggers the workflow on push or pull request 3 | # events but only for the master branch. 4 | 5 | # Repository Secrets needed to execute this workflow 6 | # ================================================== 7 | # GH_TOKEN : https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token 8 | # KEYSTORE_JKS_BASE64 : A base64 String of .JKS keystore file. Can be generated by : openssl base64 -A -in android/key.jks 9 | # KEY_PROPERTIES_BASE64 : A base64 String of key.properties file. Can be generated by : openssl base64 -A -in android/key.properties 10 | # MAIL_FROM_NAME : A mailer name (Generally proposed as project developer) 11 | # MAIL_USERNAME : A mailer email username to send email from 12 | # MAIL_PASSWORD : Email password to send email from (For Google mail servers, we need app-specific password : https://myaccount.google.com/apppasswords) 13 | # MAIL_TO : Recipients of the generated build release 14 | 15 | on: 16 | push: 17 | branches: 18 | - dev 19 | jobs: 20 | build: 21 | name: Build Artifacts and Release 22 | runs-on: ubuntu-latest 23 | steps: 24 | - uses: actions/checkout@v1 25 | 26 | - name: Read pubspec.yaml Version 27 | uses: KJ002/read-yaml@1.5 28 | id: pubspec-data 29 | with: 30 | file: 'pubspec.yaml' 31 | key-path: '["version"]' 32 | 33 | - name: Generate unique Release Tag 34 | run: echo RELEASE_TAG=Release-${{ steps.pubspec-data.outputs.data }}-$(date +%s) >> $GITHUB_ENV 35 | 36 | - name: Set flavor string 37 | run: echo APP_FLAVOR=dev >> $GITHUB_ENV 38 | 39 | - name: Setup Java 40 | uses: actions/setup-java@v1 41 | with: 42 | java-version: "11.x" 43 | 44 | - name: Setup Flutter 45 | uses: subosito/flutter-action@v1 46 | with: 47 | flutter-version: "2.10.3" 48 | channel: 'stable' 49 | 50 | - name: Decode android/key.properties 51 | run: echo "${{ secrets.KEY_PROPERTIES_BASE64 }}" | base64 --decode > android/key.properties 52 | 53 | - name: Decode android/neumodore_key.jks 54 | run: echo "${{ secrets.KEYSTORE_JKS_BASE64 }}" | base64 --decode > android/key.jks 55 | 56 | - name: Pub Get Packages 57 | run: flutter pub get 58 | 59 | - name: Build APPBUNDLE 60 | run: flutter build appbundle --release --flavor ${{env.APP_FLAVOR}} -t lib/main_${{env.APP_FLAVOR}}.dart && flutter build apk --release --flavor ${{env.APP_FLAVOR}} -t lib/main_${{env.APP_FLAVOR}}.dart 61 | 62 | - name: Create Github Release 63 | uses: ncipollo/release-action@v1 64 | with: 65 | artifacts: "build/app/outputs/bundle/${{env.APP_FLAVOR}}Release/*.aab,build/app/outputs/flutter-apk/app-${{env.APP_FLAVOR}}-release.apk" 66 | token: ${{ secrets.GH_TOKEN }} 67 | tag: "${{env.RELEASE_TAG}}" 68 | body: "${{ github.event.head_commit.message }}" 69 | 70 | - name: Save APPBUNDLE to Artifacts 71 | uses: actions/upload-artifact@v2 72 | with: 73 | name: APPBUNDLE 74 | path: build/app/outputs/bundle/${{env.APP_FLAVOR}}Release/app-${{env.APP_FLAVOR}}-release.aab 75 | 76 | 77 | - name: Save APK to Artifacts 78 | uses: actions/upload-artifact@v2 79 | with: 80 | name: APK 81 | path: build/app/outputs/flutter-apk/app-${{env.APP_FLAVOR}}-release.apk 82 | 83 | - name: Send mail 84 | uses: dawidd6/action-send-mail@v3 85 | with: 86 | # Required mail server address: 87 | server_address: smtp.gmail.com 88 | # Required mail server port: 89 | server_port: 465 90 | # Optional (recommended): mail server username: 91 | username: ${{secrets.MAIL_USERNAME}} 92 | # Optional (recommended) mail server password: 93 | password: ${{secrets.MAIL_PASSWORD}} 94 | # Required mail subject: 95 | subject: "New Build is here for ${{github.repository}} - ${{env.RELEASE_TAG}}" 96 | # Required recipients' addresses: 97 | to: ${{secrets.MAIL_TO}} 98 | # Required sender full name (address can be skipped): 99 | from: ${{secrets.MAIL_FROM_NAME}} # 100 | # Optional whether this connection use TLS (default is true if server_port is 465) 101 | secure: true 102 | # Optional plain body: 103 | body: "Build job of ${{github.repository}} completed successfully! Download the APK for ${{env.RELEASE_TAG}} \nhttps://github.com/${{github.repository}}/releases/download/${{env.RELEASE_TAG}}/app-${{env.APP_FLAVOR}}-release.apk" 104 | # Optional unsigned/invalid certificates allowance: 105 | ignore_cert: true 106 | #attachments: build/app/outputs/flutter-apk/app-release.apk 107 | priority: high 108 | -------------------------------------------------------------------------------- /.github/workflows/prod-release.yml: -------------------------------------------------------------------------------- 1 | name: CD Dev-Lane 2 | # Controls when the action will run. Triggers the workflow on push or pull request 3 | # events but only for the master branch. 4 | 5 | # Repository Secrets needed to execute this workflow 6 | # ================================================== 7 | # GH_TOKEN : https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token 8 | # KEYSTORE_JKS_BASE64 : A base64 String of .JKS keystore file. Can be generated by : openssl base64 -A -in android/key.jks 9 | # KEY_PROPERTIES_BASE64 : A base64 String of key.properties file. Can be generated by : openssl base64 -A -in android/key.properties 10 | # MAIL_FROM_NAME : A mailer name (Generally proposed as project developer) 11 | # MAIL_USERNAME : A mailer email username to send email from 12 | # MAIL_PASSWORD : Email password to send email from (For Google mail servers, we need app-specific password : https://myaccount.google.com/apppasswords) 13 | # MAIL_TO : Recipients of the generated build release 14 | # APP_PACKAGE_NAME : Package name of the app (com.example.some.app) 15 | 16 | on: 17 | push: 18 | branches: 19 | - prod 20 | jobs: 21 | build: 22 | name: Build Artifacts and Release 23 | runs-on: ubuntu-latest 24 | steps: 25 | - uses: actions/checkout@v1 26 | 27 | - name: Read pubspec.yaml Version 28 | uses: KJ002/read-yaml@1.5 29 | id: pubspec-data 30 | with: 31 | file: 'pubspec.yaml' 32 | key-path: '["version"]' 33 | 34 | - name: Generate unique Release Tag 35 | run: echo RELEASE_TAG=Release-${{ steps.pubspec-data.outputs.data }}-$(date +%s) >> $GITHUB_ENV 36 | 37 | - name: Set flavor string 38 | run: echo APP_FLAVOR=prod >> $GITHUB_ENV 39 | 40 | - name: Setup Java 41 | uses: actions/setup-java@v1 42 | with: 43 | java-version: "11.x" 44 | 45 | - name: Setup Flutter 46 | uses: subosito/flutter-action@v1 47 | with: 48 | flutter-version: "2.10.3" 49 | channel: 'stable' 50 | 51 | - name: Decode android/key.properties 52 | run: echo "${{ secrets.KEY_PROPERTIES_BASE64 }}" | base64 --decode > android/key.properties 53 | 54 | - name: Decode android/neumodore_key.jks 55 | run: echo "${{ secrets.KEYSTORE_JKS_BASE64 }}" | base64 --decode > android/key.jks 56 | 57 | - name: Pub Get Packages 58 | run: flutter pub get 59 | 60 | - name: Build APPBUNDLE 61 | run: flutter build appbundle --release --flavor ${{env.APP_FLAVOR}} -t lib/main_${{env.APP_FLAVOR}}.dart && flutter build apk --release --flavor ${{env.APP_FLAVOR}} -t lib/main_${{env.APP_FLAVOR}}.dart 62 | 63 | - name: Create Github Release 64 | uses: ncipollo/release-action@v1 65 | with: 66 | artifacts: "build/app/outputs/bundle/${{env.APP_FLAVOR}}Release/*.aab,build/app/outputs/flutter-apk/app-${{env.APP_FLAVOR}}-release.apk" 67 | token: ${{ secrets.GH_TOKEN }} 68 | tag: "${{env.RELEASE_TAG}}" 69 | body: "${{ github.event.head_commit.message }}" 70 | 71 | - name: Save APPBUNDLE to Artifacts 72 | uses: actions/upload-artifact@v2 73 | with: 74 | name: APPBUNDLE 75 | path: build/app/outputs/bundle/${{env.APP_FLAVOR}}Release/app-${{env.APP_FLAVOR}}-release.aab 76 | 77 | 78 | - name: Save APK to Artifacts 79 | uses: actions/upload-artifact@v2 80 | with: 81 | name: APK 82 | path: build/app/outputs/flutter-apk/app-${{env.APP_FLAVOR}}-release.apk 83 | 84 | - name: Send mail 85 | uses: dawidd6/action-send-mail@v3 86 | with: 87 | # Required mail server address: 88 | server_address: smtp.gmail.com 89 | # Required mail server port: 90 | server_port: 465 91 | # Optional (recommended): mail server username: 92 | username: ${{secrets.MAIL_USERNAME}} 93 | # Optional (recommended) mail server password: 94 | password: ${{secrets.MAIL_PASSWORD}} 95 | # Required mail subject: 96 | subject: "New Build is here for ${{github.repository}} - ${{env.RELEASE_TAG}}" 97 | # Required recipients' addresses: 98 | to: ${{secrets.MAIL_TO}} 99 | # Required sender full name (address can be skipped): 100 | from: ${{secrets.MAIL_FROM_NAME}} # 101 | # Optional whether this connection use TLS (default is true if server_port is 465) 102 | secure: true 103 | # Optional plain body: 104 | body: "Build job of ${{github.repository}} completed successfully! Download the APK for ${{env.RELEASE_TAG}} \nhttps://github.com/${{github.repository}}/releases/download/${{env.RELEASE_TAG}}/app-${{env.APP_FLAVOR}}-release.apk" 105 | # Optional unsigned/invalid certificates allowance: 106 | ignore_cert: true 107 | #attachments: build/app/outputs/flutter-apk/app-release.apk 108 | priority: high 109 | 110 | release_internal: 111 | name: Release Artifacts to internal track 112 | needs: [build] 113 | runs-on: ubuntu-latest 114 | steps: 115 | - uses: actions/checkout@v1 116 | - name: Get APPBUNDLE from Artifacts 117 | uses: actions/download-artifact@v2 118 | with: 119 | name: APPBUNDLE 120 | - name: Release APPBUNDLE to Production track 121 | uses: r0adkll/upload-google-play@v1 122 | with: 123 | serviceAccountJsonPlainText: ${{ secrets.PLAYSTORE_ACCOUNT_KEY }} 124 | packageName: ${{ secrets.APP_PACKAGE_NAME }} 125 | releaseFiles: app-${{env.APP_FLAVOR}}-release.aab 126 | track: production 127 | whatsNewDirectory: distribution/whatsnew 128 | status: draft 129 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Exceptions to above rules. 44 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 45 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 840c9205b344a59e48a5926ee2d791cc5640924c 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Flutter_Profile Dev", 9 | "program": "lib/main_dev.dart", 10 | "request": "launch", 11 | "type": "dart", 12 | "flutterMode": "profile", 13 | "args": [ 14 | "--flavor", 15 | "dev" 16 | ] 17 | }, 18 | { 19 | "name": "Flutter_Debug Dev", 20 | "program": "lib/main_dev.dart", 21 | "request": "launch", 22 | "type": "dart", 23 | "flutterMode": "debug", 24 | "args": [ 25 | "--flavor", 26 | "dev" 27 | ] 28 | }, 29 | { 30 | "name": "Flutter_Release Dev", 31 | "program": "lib/main_dev.dart", 32 | "request": "launch", 33 | "type": "dart", 34 | "flutterMode": "release", 35 | "args": [ 36 | "--flavor", 37 | "dev" 38 | ] 39 | }, 40 | { 41 | "name": "Flutter_Release Prod", 42 | "program": "lib/main_prod.dart", 43 | "request": "launch", 44 | "type": "dart", 45 | "flutterMode": "release", 46 | "args": [ 47 | "--flavor", 48 | "prod" 49 | ] 50 | } 51 | ] 52 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter starter app with MVVM stacked architecture and RxDart 2 | 3 | ## Setup 4 | 5 | ```bash 6 | dart setup/setup.dart --packageName=com.yourpackagename 7 | ``` 8 | 9 | ## Options 10 | 11 | ```shell 12 | --packageName for package name of android/ios 13 | --dartBundleName for dart name of linked imports & pubspec.yaml 14 | --appName for app name on android/ios 15 | ``` 16 | 17 | ## Special Option to replace dart bundle name 18 | 19 | ```shell 20 | --dartBundleName="new_bundle_name,old_bundle_name" 21 | ``` -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 30 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | checkReleaseBuilds false 38 | } 39 | 40 | defaultConfig { 41 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 42 | applicationId "com.example.flutter_starter_app" 43 | minSdkVersion 16 44 | targetSdkVersion 28 45 | versionCode flutterVersionCode.toInteger() 46 | versionName flutterVersionName 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | 57 | flavorDimensions "flavors" 58 | productFlavors { 59 | dev { 60 | dimension "flavors" 61 | resValue "string", "app_name", "FSA Dev" 62 | applicationIdSuffix ".dev" 63 | versionNameSuffix "-dev" 64 | } 65 | prod { 66 | dimension "flavors" 67 | resValue "string", "app_name", "FSA" 68 | } 69 | } 70 | } 71 | 72 | flutter { 73 | source '../..' 74 | } 75 | 76 | dependencies { 77 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 78 | } 79 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 9 | 13 | 20 | 24 | 28 | 33 | 37 | 38 | 39 | 40 | 41 | 42 | 44 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/flutter_starter_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.flutter_starter_app 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.5.30' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.0.1' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/images/placeholder_250.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/assets/images/placeholder_250.png -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | platform :ios, '10.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - connectivity (0.0.1): 3 | - Flutter 4 | - Reachability 5 | - Flutter (1.0.0) 6 | - flutter_keyboard_visibility (0.0.1): 7 | - Flutter 8 | - package_info (0.0.1): 9 | - Flutter 10 | - Reachability (3.2) 11 | 12 | DEPENDENCIES: 13 | - connectivity (from `.symlinks/plugins/connectivity/ios`) 14 | - Flutter (from `Flutter`) 15 | - flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`) 16 | - package_info (from `.symlinks/plugins/package_info/ios`) 17 | 18 | SPEC REPOS: 19 | trunk: 20 | - Reachability 21 | 22 | EXTERNAL SOURCES: 23 | connectivity: 24 | :path: ".symlinks/plugins/connectivity/ios" 25 | Flutter: 26 | :path: Flutter 27 | flutter_keyboard_visibility: 28 | :path: ".symlinks/plugins/flutter_keyboard_visibility/ios" 29 | package_info: 30 | :path: ".symlinks/plugins/package_info/ios" 31 | 32 | SPEC CHECKSUMS: 33 | connectivity: c4130b2985d4ef6fd26f9702e886bd5260681467 34 | Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a 35 | flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069 36 | package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62 37 | Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96 38 | 39 | PODFILE CHECKSUM: fe0e1ee7f3d1f7d00b11b474b62dd62134535aea 40 | 41 | COCOAPODS: 1.11.2 42 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile-prod */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = "Profile-prod"; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile-prod */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | APP_DISPLAY_NAME = Runner; 289 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 290 | CLANG_ENABLE_MODULES = YES; 291 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 292 | DEVELOPMENT_TEAM = ""; 293 | ENABLE_BITCODE = NO; 294 | FRAMEWORK_SEARCH_PATHS = ( 295 | "$(inherited)", 296 | "$(PROJECT_DIR)/Flutter", 297 | ); 298 | INFOPLIST_FILE = Runner/Info.plist; 299 | LD_RUNPATH_SEARCH_PATHS = ( 300 | "$(inherited)", 301 | "@executable_path/Frameworks", 302 | ); 303 | LIBRARY_SEARCH_PATHS = ( 304 | "$(inherited)", 305 | "$(PROJECT_DIR)/Flutter", 306 | ); 307 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterStarterApp; 308 | PRODUCT_NAME = "$(APP_DISPLAY_NAME)"; 309 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 310 | SWIFT_VERSION = 5.0; 311 | VERSIONING_SYSTEM = "apple-generic"; 312 | }; 313 | name = "Profile-prod"; 314 | }; 315 | 97C147031CF9000F007C117D /* Debug-prod */ = { 316 | isa = XCBuildConfiguration; 317 | buildSettings = { 318 | ALWAYS_SEARCH_USER_PATHS = NO; 319 | CLANG_ANALYZER_NONNULL = YES; 320 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 321 | CLANG_CXX_LIBRARY = "libc++"; 322 | CLANG_ENABLE_MODULES = YES; 323 | CLANG_ENABLE_OBJC_ARC = YES; 324 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 325 | CLANG_WARN_BOOL_CONVERSION = YES; 326 | CLANG_WARN_COMMA = YES; 327 | CLANG_WARN_CONSTANT_CONVERSION = YES; 328 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 329 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 330 | CLANG_WARN_EMPTY_BODY = YES; 331 | CLANG_WARN_ENUM_CONVERSION = YES; 332 | CLANG_WARN_INFINITE_RECURSION = YES; 333 | CLANG_WARN_INT_CONVERSION = YES; 334 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 335 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 336 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 337 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 338 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 339 | CLANG_WARN_STRICT_PROTOTYPES = YES; 340 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 341 | CLANG_WARN_UNREACHABLE_CODE = YES; 342 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 343 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 344 | COPY_PHASE_STRIP = NO; 345 | DEBUG_INFORMATION_FORMAT = dwarf; 346 | ENABLE_STRICT_OBJC_MSGSEND = YES; 347 | ENABLE_TESTABILITY = YES; 348 | GCC_C_LANGUAGE_STANDARD = gnu99; 349 | GCC_DYNAMIC_NO_PIC = NO; 350 | GCC_NO_COMMON_BLOCKS = YES; 351 | GCC_OPTIMIZATION_LEVEL = 0; 352 | GCC_PREPROCESSOR_DEFINITIONS = ( 353 | "DEBUG=1", 354 | "$(inherited)", 355 | ); 356 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 357 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 358 | GCC_WARN_UNDECLARED_SELECTOR = YES; 359 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 360 | GCC_WARN_UNUSED_FUNCTION = YES; 361 | GCC_WARN_UNUSED_VARIABLE = YES; 362 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 363 | MTL_ENABLE_DEBUG_INFO = YES; 364 | ONLY_ACTIVE_ARCH = YES; 365 | SDKROOT = iphoneos; 366 | TARGETED_DEVICE_FAMILY = "1,2"; 367 | }; 368 | name = "Debug-prod"; 369 | }; 370 | 97C147041CF9000F007C117D /* Release-prod */ = { 371 | isa = XCBuildConfiguration; 372 | buildSettings = { 373 | ALWAYS_SEARCH_USER_PATHS = NO; 374 | CLANG_ANALYZER_NONNULL = YES; 375 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 376 | CLANG_CXX_LIBRARY = "libc++"; 377 | CLANG_ENABLE_MODULES = YES; 378 | CLANG_ENABLE_OBJC_ARC = YES; 379 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 380 | CLANG_WARN_BOOL_CONVERSION = YES; 381 | CLANG_WARN_COMMA = YES; 382 | CLANG_WARN_CONSTANT_CONVERSION = YES; 383 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 385 | CLANG_WARN_EMPTY_BODY = YES; 386 | CLANG_WARN_ENUM_CONVERSION = YES; 387 | CLANG_WARN_INFINITE_RECURSION = YES; 388 | CLANG_WARN_INT_CONVERSION = YES; 389 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 390 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 391 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 392 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 394 | CLANG_WARN_STRICT_PROTOTYPES = YES; 395 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 396 | CLANG_WARN_UNREACHABLE_CODE = YES; 397 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 398 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 399 | COPY_PHASE_STRIP = NO; 400 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 401 | ENABLE_NS_ASSERTIONS = NO; 402 | ENABLE_STRICT_OBJC_MSGSEND = YES; 403 | GCC_C_LANGUAGE_STANDARD = gnu99; 404 | GCC_NO_COMMON_BLOCKS = YES; 405 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 406 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 407 | GCC_WARN_UNDECLARED_SELECTOR = YES; 408 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 409 | GCC_WARN_UNUSED_FUNCTION = YES; 410 | GCC_WARN_UNUSED_VARIABLE = YES; 411 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 412 | MTL_ENABLE_DEBUG_INFO = NO; 413 | SDKROOT = iphoneos; 414 | SUPPORTED_PLATFORMS = iphoneos; 415 | SWIFT_COMPILATION_MODE = wholemodule; 416 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 417 | TARGETED_DEVICE_FAMILY = "1,2"; 418 | VALIDATE_PRODUCT = YES; 419 | }; 420 | name = "Release-prod"; 421 | }; 422 | 97C147061CF9000F007C117D /* Debug-prod */ = { 423 | isa = XCBuildConfiguration; 424 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 425 | buildSettings = { 426 | APP_DISPLAY_NAME = Runner; 427 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 428 | CLANG_ENABLE_MODULES = YES; 429 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 430 | DEVELOPMENT_TEAM = ""; 431 | ENABLE_BITCODE = NO; 432 | FRAMEWORK_SEARCH_PATHS = ( 433 | "$(inherited)", 434 | "$(PROJECT_DIR)/Flutter", 435 | ); 436 | INFOPLIST_FILE = Runner/Info.plist; 437 | LD_RUNPATH_SEARCH_PATHS = ( 438 | "$(inherited)", 439 | "@executable_path/Frameworks", 440 | ); 441 | LIBRARY_SEARCH_PATHS = ( 442 | "$(inherited)", 443 | "$(PROJECT_DIR)/Flutter", 444 | ); 445 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterStarterApp; 446 | PRODUCT_NAME = "$(APP_DISPLAY_NAME)"; 447 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 448 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 449 | SWIFT_VERSION = 5.0; 450 | VERSIONING_SYSTEM = "apple-generic"; 451 | }; 452 | name = "Debug-prod"; 453 | }; 454 | 97C147071CF9000F007C117D /* Release-prod */ = { 455 | isa = XCBuildConfiguration; 456 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 457 | buildSettings = { 458 | APP_DISPLAY_NAME = Runner; 459 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 460 | CLANG_ENABLE_MODULES = YES; 461 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 462 | DEVELOPMENT_TEAM = ""; 463 | ENABLE_BITCODE = NO; 464 | FRAMEWORK_SEARCH_PATHS = ( 465 | "$(inherited)", 466 | "$(PROJECT_DIR)/Flutter", 467 | ); 468 | INFOPLIST_FILE = Runner/Info.plist; 469 | LD_RUNPATH_SEARCH_PATHS = ( 470 | "$(inherited)", 471 | "@executable_path/Frameworks", 472 | ); 473 | LIBRARY_SEARCH_PATHS = ( 474 | "$(inherited)", 475 | "$(PROJECT_DIR)/Flutter", 476 | ); 477 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterStarterApp; 478 | PRODUCT_NAME = "$(APP_DISPLAY_NAME)"; 479 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 480 | SWIFT_VERSION = 5.0; 481 | VERSIONING_SYSTEM = "apple-generic"; 482 | }; 483 | name = "Release-prod"; 484 | }; 485 | EF48C55824E6C1ED00078EBA /* Debug-dev */ = { 486 | isa = XCBuildConfiguration; 487 | buildSettings = { 488 | ALWAYS_SEARCH_USER_PATHS = NO; 489 | CLANG_ANALYZER_NONNULL = YES; 490 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 491 | CLANG_CXX_LIBRARY = "libc++"; 492 | CLANG_ENABLE_MODULES = YES; 493 | CLANG_ENABLE_OBJC_ARC = YES; 494 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 495 | CLANG_WARN_BOOL_CONVERSION = YES; 496 | CLANG_WARN_COMMA = YES; 497 | CLANG_WARN_CONSTANT_CONVERSION = YES; 498 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 499 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 500 | CLANG_WARN_EMPTY_BODY = YES; 501 | CLANG_WARN_ENUM_CONVERSION = YES; 502 | CLANG_WARN_INFINITE_RECURSION = YES; 503 | CLANG_WARN_INT_CONVERSION = YES; 504 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 505 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 506 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 507 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 508 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 509 | CLANG_WARN_STRICT_PROTOTYPES = YES; 510 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 511 | CLANG_WARN_UNREACHABLE_CODE = YES; 512 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 513 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 514 | COPY_PHASE_STRIP = NO; 515 | DEBUG_INFORMATION_FORMAT = dwarf; 516 | ENABLE_STRICT_OBJC_MSGSEND = YES; 517 | ENABLE_TESTABILITY = YES; 518 | GCC_C_LANGUAGE_STANDARD = gnu99; 519 | GCC_DYNAMIC_NO_PIC = NO; 520 | GCC_NO_COMMON_BLOCKS = YES; 521 | GCC_OPTIMIZATION_LEVEL = 0; 522 | GCC_PREPROCESSOR_DEFINITIONS = ( 523 | "DEBUG=1", 524 | "$(inherited)", 525 | ); 526 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 527 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 528 | GCC_WARN_UNDECLARED_SELECTOR = YES; 529 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 530 | GCC_WARN_UNUSED_FUNCTION = YES; 531 | GCC_WARN_UNUSED_VARIABLE = YES; 532 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 533 | MTL_ENABLE_DEBUG_INFO = YES; 534 | ONLY_ACTIVE_ARCH = YES; 535 | SDKROOT = iphoneos; 536 | TARGETED_DEVICE_FAMILY = "1,2"; 537 | }; 538 | name = "Debug-dev"; 539 | }; 540 | EF48C55924E6C1ED00078EBA /* Debug-dev */ = { 541 | isa = XCBuildConfiguration; 542 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 543 | buildSettings = { 544 | APP_DISPLAY_NAME = "Runner Dev"; 545 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 546 | CLANG_ENABLE_MODULES = YES; 547 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 548 | ENABLE_BITCODE = NO; 549 | FRAMEWORK_SEARCH_PATHS = ( 550 | "$(inherited)", 551 | "$(PROJECT_DIR)/Flutter", 552 | ); 553 | INFOPLIST_FILE = Runner/Info.plist; 554 | LD_RUNPATH_SEARCH_PATHS = ( 555 | "$(inherited)", 556 | "@executable_path/Frameworks", 557 | ); 558 | LIBRARY_SEARCH_PATHS = ( 559 | "$(inherited)", 560 | "$(PROJECT_DIR)/Flutter", 561 | ); 562 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterStarterApp.dev; 563 | PRODUCT_NAME = "$(APP_DISPLAY_NAME)"; 564 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 565 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 566 | SWIFT_VERSION = 5.0; 567 | VERSIONING_SYSTEM = "apple-generic"; 568 | }; 569 | name = "Debug-dev"; 570 | }; 571 | EF48C55A24E6C20500078EBA /* Release-dev */ = { 572 | isa = XCBuildConfiguration; 573 | buildSettings = { 574 | ALWAYS_SEARCH_USER_PATHS = NO; 575 | CLANG_ANALYZER_NONNULL = YES; 576 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 577 | CLANG_CXX_LIBRARY = "libc++"; 578 | CLANG_ENABLE_MODULES = YES; 579 | CLANG_ENABLE_OBJC_ARC = YES; 580 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 581 | CLANG_WARN_BOOL_CONVERSION = YES; 582 | CLANG_WARN_COMMA = YES; 583 | CLANG_WARN_CONSTANT_CONVERSION = YES; 584 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 585 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 586 | CLANG_WARN_EMPTY_BODY = YES; 587 | CLANG_WARN_ENUM_CONVERSION = YES; 588 | CLANG_WARN_INFINITE_RECURSION = YES; 589 | CLANG_WARN_INT_CONVERSION = YES; 590 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 591 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 592 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 593 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 594 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 595 | CLANG_WARN_STRICT_PROTOTYPES = YES; 596 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 597 | CLANG_WARN_UNREACHABLE_CODE = YES; 598 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 599 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 600 | COPY_PHASE_STRIP = NO; 601 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 602 | ENABLE_NS_ASSERTIONS = NO; 603 | ENABLE_STRICT_OBJC_MSGSEND = YES; 604 | GCC_C_LANGUAGE_STANDARD = gnu99; 605 | GCC_NO_COMMON_BLOCKS = YES; 606 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 607 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 608 | GCC_WARN_UNDECLARED_SELECTOR = YES; 609 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 610 | GCC_WARN_UNUSED_FUNCTION = YES; 611 | GCC_WARN_UNUSED_VARIABLE = YES; 612 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 613 | MTL_ENABLE_DEBUG_INFO = NO; 614 | SDKROOT = iphoneos; 615 | SUPPORTED_PLATFORMS = iphoneos; 616 | SWIFT_COMPILATION_MODE = wholemodule; 617 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 618 | TARGETED_DEVICE_FAMILY = "1,2"; 619 | VALIDATE_PRODUCT = YES; 620 | }; 621 | name = "Release-dev"; 622 | }; 623 | EF48C55B24E6C20500078EBA /* Release-dev */ = { 624 | isa = XCBuildConfiguration; 625 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 626 | buildSettings = { 627 | APP_DISPLAY_NAME = "Runner Dev"; 628 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 629 | CLANG_ENABLE_MODULES = YES; 630 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 631 | ENABLE_BITCODE = NO; 632 | FRAMEWORK_SEARCH_PATHS = ( 633 | "$(inherited)", 634 | "$(PROJECT_DIR)/Flutter", 635 | ); 636 | INFOPLIST_FILE = Runner/Info.plist; 637 | LD_RUNPATH_SEARCH_PATHS = ( 638 | "$(inherited)", 639 | "@executable_path/Frameworks", 640 | ); 641 | LIBRARY_SEARCH_PATHS = ( 642 | "$(inherited)", 643 | "$(PROJECT_DIR)/Flutter", 644 | ); 645 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterStarterApp.dev; 646 | PRODUCT_NAME = "$(APP_DISPLAY_NAME)"; 647 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 648 | SWIFT_VERSION = 5.0; 649 | VERSIONING_SYSTEM = "apple-generic"; 650 | }; 651 | name = "Release-dev"; 652 | }; 653 | EF48C55C24E6C20E00078EBA /* Profile-dev */ = { 654 | isa = XCBuildConfiguration; 655 | buildSettings = { 656 | ALWAYS_SEARCH_USER_PATHS = NO; 657 | CLANG_ANALYZER_NONNULL = YES; 658 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 659 | CLANG_CXX_LIBRARY = "libc++"; 660 | CLANG_ENABLE_MODULES = YES; 661 | CLANG_ENABLE_OBJC_ARC = YES; 662 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 663 | CLANG_WARN_BOOL_CONVERSION = YES; 664 | CLANG_WARN_COMMA = YES; 665 | CLANG_WARN_CONSTANT_CONVERSION = YES; 666 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 667 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 668 | CLANG_WARN_EMPTY_BODY = YES; 669 | CLANG_WARN_ENUM_CONVERSION = YES; 670 | CLANG_WARN_INFINITE_RECURSION = YES; 671 | CLANG_WARN_INT_CONVERSION = YES; 672 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 673 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 674 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 675 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 676 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 677 | CLANG_WARN_STRICT_PROTOTYPES = YES; 678 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 679 | CLANG_WARN_UNREACHABLE_CODE = YES; 680 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 681 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 682 | COPY_PHASE_STRIP = NO; 683 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 684 | ENABLE_NS_ASSERTIONS = NO; 685 | ENABLE_STRICT_OBJC_MSGSEND = YES; 686 | GCC_C_LANGUAGE_STANDARD = gnu99; 687 | GCC_NO_COMMON_BLOCKS = YES; 688 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 689 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 690 | GCC_WARN_UNDECLARED_SELECTOR = YES; 691 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 692 | GCC_WARN_UNUSED_FUNCTION = YES; 693 | GCC_WARN_UNUSED_VARIABLE = YES; 694 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 695 | MTL_ENABLE_DEBUG_INFO = NO; 696 | SDKROOT = iphoneos; 697 | SUPPORTED_PLATFORMS = iphoneos; 698 | TARGETED_DEVICE_FAMILY = "1,2"; 699 | VALIDATE_PRODUCT = YES; 700 | }; 701 | name = "Profile-dev"; 702 | }; 703 | EF48C55D24E6C20E00078EBA /* Profile-dev */ = { 704 | isa = XCBuildConfiguration; 705 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 706 | buildSettings = { 707 | APP_DISPLAY_NAME = "Runner Dev"; 708 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 709 | CLANG_ENABLE_MODULES = YES; 710 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 711 | ENABLE_BITCODE = NO; 712 | FRAMEWORK_SEARCH_PATHS = ( 713 | "$(inherited)", 714 | "$(PROJECT_DIR)/Flutter", 715 | ); 716 | INFOPLIST_FILE = Runner/Info.plist; 717 | LD_RUNPATH_SEARCH_PATHS = ( 718 | "$(inherited)", 719 | "@executable_path/Frameworks", 720 | ); 721 | LIBRARY_SEARCH_PATHS = ( 722 | "$(inherited)", 723 | "$(PROJECT_DIR)/Flutter", 724 | ); 725 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterStarterApp.dev; 726 | PRODUCT_NAME = "$(APP_DISPLAY_NAME)"; 727 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 728 | SWIFT_VERSION = 5.0; 729 | VERSIONING_SYSTEM = "apple-generic"; 730 | }; 731 | name = "Profile-dev"; 732 | }; 733 | /* End XCBuildConfiguration section */ 734 | 735 | /* Begin XCConfigurationList section */ 736 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 737 | isa = XCConfigurationList; 738 | buildConfigurations = ( 739 | 97C147031CF9000F007C117D /* Debug-prod */, 740 | EF48C55824E6C1ED00078EBA /* Debug-dev */, 741 | 97C147041CF9000F007C117D /* Release-prod */, 742 | EF48C55A24E6C20500078EBA /* Release-dev */, 743 | 249021D3217E4FDB00AE95B9 /* Profile-prod */, 744 | EF48C55C24E6C20E00078EBA /* Profile-dev */, 745 | ); 746 | defaultConfigurationIsVisible = 0; 747 | defaultConfigurationName = "Release-prod"; 748 | }; 749 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 750 | isa = XCConfigurationList; 751 | buildConfigurations = ( 752 | 97C147061CF9000F007C117D /* Debug-prod */, 753 | EF48C55924E6C1ED00078EBA /* Debug-dev */, 754 | 97C147071CF9000F007C117D /* Release-prod */, 755 | EF48C55B24E6C20500078EBA /* Release-dev */, 756 | 249021D4217E4FDB00AE95B9 /* Profile-prod */, 757 | EF48C55D24E6C20E00078EBA /* Profile-dev */, 758 | ); 759 | defaultConfigurationIsVisible = 0; 760 | defaultConfigurationName = "Release-prod"; 761 | }; 762 | /* End XCConfigurationList section */ 763 | }; 764 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 765 | } 766 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/dev.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/prod.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PocketSystems/FlutterStarterApp/76926c73f4536846a4ff32508d13913996d11f1a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | $(PRODUCT_NAME) 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | flutter_starter_app 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/generated/images.asset.dart: -------------------------------------------------------------------------------- 1 | /// This code is generated. DO NOT edit by hand 2 | 3 | class Images { 4 | static String get placeholder250 => "assets/images/placeholder_250.png"; 5 | } 6 | -------------------------------------------------------------------------------- /lib/main_dev.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_starter_app/src/app/app_view.dart'; 4 | import 'package:flutter_starter_app/src/configs/app_setup.locator.dart'; 5 | import 'package:flutter_starter_app/src/services/local/flavor_service.dart'; 6 | import 'package:package_info/package_info.dart'; 7 | 8 | void main() async { 9 | WidgetsFlutterBinding.ensureInitialized(); 10 | 11 | // getting package 12 | final package = await PackageInfo.fromPlatform(); 13 | 14 | setupLocator(); 15 | 16 | // app flavor init 17 | FlavorService.init(package); 18 | 19 | runApp(AppView()); 20 | } 21 | -------------------------------------------------------------------------------- /lib/main_prod.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_starter_app/src/app/app_view.dart'; 4 | import 'package:flutter_starter_app/src/configs/app_setup.locator.dart'; 5 | import 'package:flutter_starter_app/src/services/local/flavor_service.dart'; 6 | import 'package:package_info/package_info.dart'; 7 | 8 | void main() async { 9 | WidgetsFlutterBinding.ensureInitialized(); 10 | 11 | // getting package 12 | final package = await PackageInfo.fromPlatform(); 13 | 14 | setupLocator(); 15 | 16 | // app flavor init 17 | FlavorService.init(package); 18 | 19 | runApp(AppView()); 20 | } 21 | -------------------------------------------------------------------------------- /lib/src/app/app_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_starter_app/src/base/utils/Constants.dart'; 4 | import 'package:flutter_starter_app/src/services/local/navigation_service.dart'; 5 | import 'package:flutter_starter_app/src/views/splash/splash_view.dart'; 6 | 7 | class AppView extends StatelessWidget { 8 | // This widget is the root of your application. 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return MaterialApp( 13 | title: Constants.appTitle, 14 | debugShowCheckedModeBanner: false, 15 | onGenerateRoute: NavService.onGenerateRoute, 16 | navigatorKey: NavService.key, 17 | theme: ThemeData( 18 | scaffoldBackgroundColor: Colors.white, 19 | appBarTheme: AppBarTheme( 20 | 21 | ), 22 | fontFamily: '' 23 | ), 24 | home: SplashView(), 25 | builder: (context, child) { 26 | return Stack( 27 | children: [child!], 28 | ); 29 | }, 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/src/base/utils/Constants.dart: -------------------------------------------------------------------------------- 1 | class Constants { 2 | Constants._(); 3 | 4 | static String get appTitle => "Flutter Starter App"; 5 | } 6 | -------------------------------------------------------------------------------- /lib/src/base/utils/utils.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | extension UIExt on BuildContext { 4 | double topSpace() => MediaQuery.of(this).padding.top; 5 | double appBarHeight() => AppBar().preferredSize.height; 6 | Size screenSize() => MediaQuery.of(this).size; 7 | ThemeData appTheme() => Theme.of(this); 8 | TextTheme appTextTheme() => Theme.of(this).textTheme; 9 | 10 | void closeKeyboardIfOpen() { 11 | FocusScopeNode currentFocus = FocusScope.of(this); 12 | if (!currentFocus.hasPrimaryFocus) currentFocus.unfocus(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /lib/src/configs/app_setup.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_starter_app/src/services/local/auth_service.dart'; 2 | import 'package:flutter_starter_app/src/services/local/connectivity_service.dart'; 3 | import 'package:flutter_starter_app/src/services/local/keyboard_service.dart'; 4 | import 'package:flutter_starter_app/src/services/remote/api_service.dart'; 5 | import 'package:flutter_starter_app/src/views/about/about_view.dart'; 6 | import 'package:flutter_starter_app/src/views/dashboard/dashboard_view.dart'; 7 | import 'package:flutter_starter_app/src/views/home/home_view.dart'; 8 | import 'package:flutter_starter_app/src/views/splash/splash_view.dart'; 9 | import 'package:stacked/stacked_annotations.dart'; 10 | import 'package:stacked_services/stacked_services.dart'; 11 | 12 | @StackedApp( 13 | routes: [ 14 | MaterialRoute(page: SplashView, initial: true), 15 | MaterialRoute(page: DashboardView) 16 | ], 17 | dependencies: [ 18 | // Lazy singletons 19 | LazySingleton(classType: DialogService), 20 | LazySingleton(classType: BottomSheetService), 21 | LazySingleton(classType: NavigationService), 22 | LazySingleton(classType: AuthService), 23 | LazySingleton(classType: ConnectivityService), 24 | LazySingleton(classType: KeyboardService), 25 | LazySingleton(classType: ApiService), 26 | ], 27 | ) 28 | class AppSetup { 29 | /** This class has no puporse besides housing the annotation that generates the required functionality **/ 30 | } 31 | -------------------------------------------------------------------------------- /lib/src/configs/app_setup.locator.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ************************************************************************** 4 | // StackedLocatorGenerator 5 | // ************************************************************************** 6 | 7 | // ignore_for_file: public_member_api_docs 8 | 9 | import 'package:stacked/stacked.dart'; 10 | import 'package:stacked/stacked_annotations.dart'; 11 | import 'package:stacked_services/stacked_services.dart'; 12 | 13 | import '../services/local/auth_service.dart'; 14 | import '../services/local/connectivity_service.dart'; 15 | import '../services/local/keyboard_service.dart'; 16 | import '../services/remote/api_service.dart'; 17 | 18 | final locator = StackedLocator.instance; 19 | 20 | void setupLocator({String? environment, EnvironmentFilter? environmentFilter}) { 21 | // Register environments 22 | locator.registerEnvironment( 23 | environment: environment, environmentFilter: environmentFilter); 24 | 25 | // Register dependencies 26 | locator.registerLazySingleton(() => DialogService()); 27 | locator.registerLazySingleton(() => BottomSheetService()); 28 | locator.registerLazySingleton(() => NavigationService()); 29 | locator.registerLazySingleton(() => AuthService()); 30 | locator.registerLazySingleton(() => ConnectivityService()); 31 | locator.registerLazySingleton(() => KeyboardService()); 32 | locator.registerLazySingleton(() => ApiService()); 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/configs/app_setup.router.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | // ************************************************************************** 4 | // StackedRouterGenerator 5 | // ************************************************************************** 6 | 7 | // ignore_for_file: public_member_api_docs 8 | 9 | import 'package:flutter/material.dart'; 10 | import 'package:stacked/stacked.dart'; 11 | import 'package:stacked/stacked_annotations.dart'; 12 | 13 | import '../views/about/about_view.dart'; 14 | import '../views/dashboard/dashboard_view.dart'; 15 | import '../views/home/home_view.dart'; 16 | import '../views/splash/splash_view.dart'; 17 | 18 | class Routes { 19 | static const String splashView = '/'; 20 | static const String dashboardView = '/dashboard-view'; 21 | static const all = { 22 | splashView, 23 | dashboardView, 24 | }; 25 | } 26 | 27 | class StackedRouter extends RouterBase { 28 | @override 29 | List get routes => _routes; 30 | final _routes = [ 31 | RouteDef( 32 | Routes.splashView, 33 | page: SplashView, 34 | generator: SplashViewRouter(), 35 | ), 36 | RouteDef(Routes.dashboardView, page: DashboardView), 37 | ]; 38 | @override 39 | Map get pagesMap => _pagesMap; 40 | final _pagesMap = { 41 | SplashView: (data) { 42 | return MaterialPageRoute( 43 | builder: (context) => SplashView(), 44 | settings: data, 45 | ); 46 | }, 47 | DashboardView: (data) { 48 | return MaterialPageRoute( 49 | builder: (context) => DashboardView(), 50 | settings: data, 51 | ); 52 | }, 53 | }; 54 | } 55 | 56 | class SplashViewRoutes { 57 | static const String homeView = '/'; 58 | static const String aboutView = '/about-view'; 59 | static const all = { 60 | homeView, 61 | aboutView, 62 | }; 63 | } 64 | 65 | class SplashViewRouter extends RouterBase { 66 | @override 67 | List get routes => _routes; 68 | final _routes = [ 69 | RouteDef(SplashViewRoutes.homeView, page: HomeView), 70 | RouteDef(SplashViewRoutes.aboutView, page: AboutView), 71 | ]; 72 | @override 73 | Map get pagesMap => _pagesMap; 74 | final _pagesMap = { 75 | HomeView: (data) { 76 | return MaterialPageRoute( 77 | builder: (context) => HomeView(), 78 | settings: data, 79 | ); 80 | }, 81 | AboutView: (data) { 82 | return MaterialPageRoute( 83 | builder: (context) => AboutView(), 84 | settings: data, 85 | ); 86 | }, 87 | }; 88 | } 89 | -------------------------------------------------------------------------------- /lib/src/models/User.dart: -------------------------------------------------------------------------------- 1 | class User {} 2 | -------------------------------------------------------------------------------- /lib/src/models/wrappers/response_wrapper.dart: -------------------------------------------------------------------------------- 1 | class ResponseWrapper { 2 | final T? data; 3 | final bool success; 4 | final String? message; 5 | final int? statusCode; 6 | 7 | ResponseWrapper({ 8 | this.data, 9 | this.success = true, 10 | this.message, 11 | this.statusCode, 12 | }); 13 | } 14 | -------------------------------------------------------------------------------- /lib/src/services/local/auth_service.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_starter_app/src/models/User.dart'; 2 | import 'package:stacked/stacked.dart'; 3 | 4 | class AuthService with ReactiveServiceMixin { 5 | ReactiveValue _user = ReactiveValue(null); 6 | User? get user => _user.value; 7 | 8 | AuthService() { 9 | listenToReactiveValues([_user]); 10 | } 11 | 12 | set user(User? user) { 13 | _user.value = user; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /lib/src/services/local/connectivity_service.dart: -------------------------------------------------------------------------------- 1 | import 'package:connectivity/connectivity.dart'; 2 | import 'package:stacked/stacked.dart'; 3 | 4 | class ConnectivityService with ReactiveServiceMixin { 5 | ReactiveValue _isInternetConnected = ReactiveValue(true); 6 | bool get isInternetConnected => _isInternetConnected.value; 7 | 8 | ConnectivityService() { 9 | listenToReactiveValues([_isInternetConnected]); 10 | Connectivity().onConnectivityChanged.listen((result) { 11 | _isInternetConnected.value = result != ConnectivityResult.none; 12 | notifyListeners(); 13 | }); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /lib/src/services/local/flavor_service.dart: -------------------------------------------------------------------------------- 1 | import 'package:package_info/package_info.dart'; 2 | 3 | enum Env { 4 | prod, 5 | dev, 6 | } 7 | 8 | class FlavorService { 9 | FlavorService._(); 10 | 11 | static Env? env; 12 | 13 | static init(PackageInfo info) { 14 | final flavor = info.packageName.split(".").last; 15 | if (flavor == 'dev') { 16 | env = Env.dev; 17 | } else { 18 | env = Env.prod; 19 | } 20 | } 21 | 22 | static String get getBaseApi { 23 | // return prod url 24 | if (env == Env.prod) { 25 | return ""; 26 | } 27 | // return url other than prod one 28 | return ""; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/src/services/local/keyboard_service.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_keyboard_visibility/flutter_keyboard_visibility.dart'; 2 | import 'package:stacked/stacked.dart'; 3 | 4 | class KeyboardService with ReactiveServiceMixin { 5 | ReactiveValue _isKeyboardVisible = ReactiveValue(false); 6 | bool get isKeyboardVisible => _isKeyboardVisible.value; 7 | 8 | KeyboardService() { 9 | listenToReactiveValues([_isKeyboardVisible]); 10 | KeyboardVisibilityController().onChange.listen((bool visible) { 11 | _isKeyboardVisible.value = visible; 12 | }); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /lib/src/services/local/navigation_service.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/cupertino.dart'; 3 | import 'package:flutter_starter_app/src/configs/app_setup.locator.dart'; 4 | import 'package:flutter_starter_app/src/configs/app_setup.router.dart'; 5 | import 'package:stacked_services/stacked_services.dart'; 6 | 7 | class NavService { 8 | static NavigationService? _navigationService = locator(); 9 | 10 | // key 11 | static GlobalKey? get key => StackedService.navigatorKey; 12 | 13 | // key for nested navigator to be used in SplashView 14 | static final _splashViewNavigatorId = 0; 15 | static GlobalKey? get nestedNavKey => 16 | StackedService.nestedNavigationKey(_splashViewNavigatorId); 17 | 18 | // on generate route 19 | static Route? Function(RouteSettings) get onGenerateRoute => 20 | StackedRouter().onGenerateRoute; 21 | 22 | // on generate route 23 | static Route? Function(RouteSettings, [String]) 24 | get onSplashViewGenerateRoute => SplashViewRouter().onGenerateRoute; 25 | 26 | // nested routes with args for root navigator 27 | static Future? spalsh({dynamic arguments}) => _navigationService! 28 | .clearStackAndShow(Routes.splashView, arguments: arguments); 29 | 30 | static Future? dashboard({dynamic arguments}) => _navigationService! 31 | .navigateTo(Routes.dashboardView, arguments: arguments); 32 | 33 | // nested routes in SplashView with args 34 | static Future? home({dynamic arguments}) => 35 | _navigationService!.clearStackAndShow(SplashViewRoutes.homeView, 36 | arguments: arguments, id: _splashViewNavigatorId); 37 | 38 | static Future? about({dynamic arguments}) => 39 | _navigationService!.navigateTo(SplashViewRoutes.aboutView, 40 | arguments: arguments, id: _splashViewNavigatorId); 41 | } 42 | -------------------------------------------------------------------------------- /lib/src/services/remote/api_client.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:dio/dio.dart'; 4 | import 'package:flutter_starter_app/src/models/wrappers/response_wrapper.dart'; 5 | import 'package:flutter_starter_app/src/services/local/flavor_service.dart'; 6 | 7 | const _defaultConnectTimeout = Duration.millisecondsPerMinute; 8 | const _defaultReceiveTimeout = Duration.millisecondsPerMinute; 9 | 10 | class ApiClient { 11 | Dio? _dio; 12 | 13 | final List? interceptors; 14 | 15 | ApiClient(Dio dio, {this.interceptors}) { 16 | _dio = dio; 17 | final customHeaders = Map(); 18 | customHeaders['Content-Type'] = 'application/json'; 19 | customHeaders['Accept'] = 'application/json'; 20 | _dio! 21 | ..options.baseUrl = FlavorService.getBaseApi 22 | ..options.connectTimeout = _defaultConnectTimeout 23 | ..options.receiveTimeout = _defaultReceiveTimeout 24 | ..httpClientAdapter 25 | ..options.headers = customHeaders; 26 | if (interceptors?.isNotEmpty ?? false) { 27 | _dio?.interceptors.addAll(interceptors!); 28 | } 29 | } 30 | 31 | ResponseWrapper _response(Response? response) { 32 | return ResponseWrapper( 33 | data: response?.data?['data'] ?? response?.data, 34 | message: response?.data?['message'] ?? response?.statusMessage, 35 | statusCode: response?.statusCode, 36 | ); 37 | } 38 | 39 | Future> getReq( 40 | String uri, { 41 | Map? queryParameters, 42 | Options? options, 43 | CancelToken? cancelToken, 44 | ProgressCallback? onReceiveProgress, 45 | }) async { 46 | try { 47 | var response = await _dio?.get( 48 | uri, 49 | queryParameters: queryParameters, 50 | options: options, 51 | cancelToken: cancelToken, 52 | onReceiveProgress: onReceiveProgress, 53 | ); 54 | return _response(response); 55 | } on SocketException catch (e) { 56 | throw SocketException(e.toString()); 57 | } on FormatException catch (_) { 58 | throw FormatException("Unable to process the data"); 59 | } catch (e) { 60 | throw e; 61 | } 62 | } 63 | 64 | Future> postReq( 65 | String uri, { 66 | data, 67 | Map? queryParameters, 68 | Options? options, 69 | CancelToken? cancelToken, 70 | ProgressCallback? onSendProgress, 71 | ProgressCallback? onReceiveProgress, 72 | }) async { 73 | try { 74 | var response = await _dio?.post( 75 | uri, 76 | data: data, 77 | queryParameters: queryParameters, 78 | options: options, 79 | cancelToken: cancelToken, 80 | onSendProgress: onSendProgress, 81 | onReceiveProgress: onReceiveProgress, 82 | ); 83 | return _response(response); 84 | } on SocketException catch (e) { 85 | throw SocketException(e.toString()); 86 | } on FormatException catch (_) { 87 | throw FormatException("Unable to process the data"); 88 | } catch (e) { 89 | throw e; 90 | } 91 | } 92 | 93 | Future> patchReq( 94 | String uri, { 95 | data, 96 | Map? queryParameters, 97 | Options? options, 98 | CancelToken? cancelToken, 99 | ProgressCallback? onSendProgress, 100 | ProgressCallback? onReceiveProgress, 101 | }) async { 102 | try { 103 | var response = await _dio?.patch( 104 | uri, 105 | data: data, 106 | queryParameters: queryParameters, 107 | options: options, 108 | cancelToken: cancelToken, 109 | onSendProgress: onSendProgress, 110 | onReceiveProgress: onReceiveProgress, 111 | ); 112 | return _response(response); 113 | } on SocketException catch (e) { 114 | throw SocketException(e.toString()); 115 | } on FormatException catch (_) { 116 | throw FormatException("Unable to process the data"); 117 | } catch (e) { 118 | throw e; 119 | } 120 | } 121 | 122 | Future> putReq( 123 | String uri, { 124 | data, 125 | Map? queryParameters, 126 | Options? options, 127 | CancelToken? cancelToken, 128 | ProgressCallback? onSendProgress, 129 | ProgressCallback? onReceiveProgress, 130 | }) async { 131 | try { 132 | var response = await _dio?.put( 133 | uri, 134 | data: data, 135 | queryParameters: queryParameters, 136 | options: options, 137 | cancelToken: cancelToken, 138 | onSendProgress: onSendProgress, 139 | onReceiveProgress: onReceiveProgress, 140 | ); 141 | return _response(response); 142 | } on SocketException catch (e) { 143 | throw SocketException(e.toString()); 144 | } on FormatException catch (_) { 145 | throw FormatException("Unable to process the data"); 146 | } catch (e) { 147 | throw e; 148 | } 149 | } 150 | 151 | Future> deleteReq( 152 | String uri, { 153 | data, 154 | Map? queryParameters, 155 | Options? options, 156 | CancelToken? cancelToken, 157 | }) async { 158 | try { 159 | var response = await _dio?.delete( 160 | uri, 161 | data: data, 162 | queryParameters: queryParameters, 163 | options: options, 164 | cancelToken: cancelToken, 165 | ); 166 | return _response(response); 167 | } on SocketException catch (e) { 168 | throw SocketException(e.toString()); 169 | } on FormatException catch (_) { 170 | throw FormatException("Unable to process the data"); 171 | } catch (e) { 172 | throw e; 173 | } 174 | } 175 | } 176 | -------------------------------------------------------------------------------- /lib/src/services/remote/api_result.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_starter_app/src/services/remote/network_exceptions.dart'; 2 | import 'package:freezed_annotation/freezed_annotation.dart'; 3 | 4 | part 'api_result.freezed.dart'; 5 | 6 | @freezed 7 | abstract class ApiResult with _$ApiResult { 8 | const factory ApiResult.success({required T data}) = Success; 9 | 10 | const factory ApiResult.failure({required NetworkExceptions error}) = 11 | Failure; 12 | } 13 | -------------------------------------------------------------------------------- /lib/src/services/remote/api_result.freezed.dart: -------------------------------------------------------------------------------- 1 | // coverage:ignore-file 2 | // GENERATED CODE - DO NOT MODIFY BY HAND 3 | // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target 4 | 5 | part of 'api_result.dart'; 6 | 7 | // ************************************************************************** 8 | // FreezedGenerator 9 | // ************************************************************************** 10 | 11 | T _$identity(T value) => value; 12 | 13 | final _privateConstructorUsedError = UnsupportedError( 14 | 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); 15 | 16 | /// @nodoc 17 | class _$ApiResultTearOff { 18 | const _$ApiResultTearOff(); 19 | 20 | Success success({required T data}) { 21 | return Success( 22 | data: data, 23 | ); 24 | } 25 | 26 | Failure failure({required NetworkExceptions error}) { 27 | return Failure( 28 | error: error, 29 | ); 30 | } 31 | } 32 | 33 | /// @nodoc 34 | const $ApiResult = _$ApiResultTearOff(); 35 | 36 | /// @nodoc 37 | mixin _$ApiResult { 38 | @optionalTypeArgs 39 | TResult when({ 40 | required TResult Function(T data) success, 41 | required TResult Function(NetworkExceptions error) failure, 42 | }) => 43 | throw _privateConstructorUsedError; 44 | @optionalTypeArgs 45 | TResult? whenOrNull({ 46 | TResult Function(T data)? success, 47 | TResult Function(NetworkExceptions error)? failure, 48 | }) => 49 | throw _privateConstructorUsedError; 50 | @optionalTypeArgs 51 | TResult maybeWhen({ 52 | TResult Function(T data)? success, 53 | TResult Function(NetworkExceptions error)? failure, 54 | required TResult orElse(), 55 | }) => 56 | throw _privateConstructorUsedError; 57 | @optionalTypeArgs 58 | TResult map({ 59 | required TResult Function(Success value) success, 60 | required TResult Function(Failure value) failure, 61 | }) => 62 | throw _privateConstructorUsedError; 63 | @optionalTypeArgs 64 | TResult? mapOrNull({ 65 | TResult Function(Success value)? success, 66 | TResult Function(Failure value)? failure, 67 | }) => 68 | throw _privateConstructorUsedError; 69 | @optionalTypeArgs 70 | TResult maybeMap({ 71 | TResult Function(Success value)? success, 72 | TResult Function(Failure value)? failure, 73 | required TResult orElse(), 74 | }) => 75 | throw _privateConstructorUsedError; 76 | } 77 | 78 | /// @nodoc 79 | abstract class $ApiResultCopyWith { 80 | factory $ApiResultCopyWith( 81 | ApiResult value, $Res Function(ApiResult) then) = 82 | _$ApiResultCopyWithImpl; 83 | } 84 | 85 | /// @nodoc 86 | class _$ApiResultCopyWithImpl implements $ApiResultCopyWith { 87 | _$ApiResultCopyWithImpl(this._value, this._then); 88 | 89 | final ApiResult _value; 90 | // ignore: unused_field 91 | final $Res Function(ApiResult) _then; 92 | } 93 | 94 | /// @nodoc 95 | abstract class $SuccessCopyWith { 96 | factory $SuccessCopyWith(Success value, $Res Function(Success) then) = 97 | _$SuccessCopyWithImpl; 98 | $Res call({T data}); 99 | } 100 | 101 | /// @nodoc 102 | class _$SuccessCopyWithImpl extends _$ApiResultCopyWithImpl 103 | implements $SuccessCopyWith { 104 | _$SuccessCopyWithImpl(Success _value, $Res Function(Success) _then) 105 | : super(_value, (v) => _then(v as Success)); 106 | 107 | @override 108 | Success get _value => super._value as Success; 109 | 110 | @override 111 | $Res call({ 112 | Object? data = freezed, 113 | }) { 114 | return _then(Success( 115 | data: data == freezed 116 | ? _value.data 117 | : data // ignore: cast_nullable_to_non_nullable 118 | as T, 119 | )); 120 | } 121 | } 122 | 123 | /// @nodoc 124 | 125 | class _$Success implements Success { 126 | const _$Success({required this.data}); 127 | 128 | @override 129 | final T data; 130 | 131 | @override 132 | String toString() { 133 | return 'ApiResult<$T>.success(data: $data)'; 134 | } 135 | 136 | @override 137 | bool operator ==(dynamic other) { 138 | return identical(this, other) || 139 | (other.runtimeType == runtimeType && 140 | other is Success && 141 | const DeepCollectionEquality().equals(other.data, data)); 142 | } 143 | 144 | @override 145 | int get hashCode => 146 | Object.hash(runtimeType, const DeepCollectionEquality().hash(data)); 147 | 148 | @JsonKey(ignore: true) 149 | @override 150 | $SuccessCopyWith> get copyWith => 151 | _$SuccessCopyWithImpl>(this, _$identity); 152 | 153 | @override 154 | @optionalTypeArgs 155 | TResult when({ 156 | required TResult Function(T data) success, 157 | required TResult Function(NetworkExceptions error) failure, 158 | }) { 159 | return success(data); 160 | } 161 | 162 | @override 163 | @optionalTypeArgs 164 | TResult? whenOrNull({ 165 | TResult Function(T data)? success, 166 | TResult Function(NetworkExceptions error)? failure, 167 | }) { 168 | return success?.call(data); 169 | } 170 | 171 | @override 172 | @optionalTypeArgs 173 | TResult maybeWhen({ 174 | TResult Function(T data)? success, 175 | TResult Function(NetworkExceptions error)? failure, 176 | required TResult orElse(), 177 | }) { 178 | if (success != null) { 179 | return success(data); 180 | } 181 | return orElse(); 182 | } 183 | 184 | @override 185 | @optionalTypeArgs 186 | TResult map({ 187 | required TResult Function(Success value) success, 188 | required TResult Function(Failure value) failure, 189 | }) { 190 | return success(this); 191 | } 192 | 193 | @override 194 | @optionalTypeArgs 195 | TResult? mapOrNull({ 196 | TResult Function(Success value)? success, 197 | TResult Function(Failure value)? failure, 198 | }) { 199 | return success?.call(this); 200 | } 201 | 202 | @override 203 | @optionalTypeArgs 204 | TResult maybeMap({ 205 | TResult Function(Success value)? success, 206 | TResult Function(Failure value)? failure, 207 | required TResult orElse(), 208 | }) { 209 | if (success != null) { 210 | return success(this); 211 | } 212 | return orElse(); 213 | } 214 | } 215 | 216 | abstract class Success implements ApiResult { 217 | const factory Success({required T data}) = _$Success; 218 | 219 | T get data; 220 | @JsonKey(ignore: true) 221 | $SuccessCopyWith> get copyWith => 222 | throw _privateConstructorUsedError; 223 | } 224 | 225 | /// @nodoc 226 | abstract class $FailureCopyWith { 227 | factory $FailureCopyWith(Failure value, $Res Function(Failure) then) = 228 | _$FailureCopyWithImpl; 229 | $Res call({NetworkExceptions error}); 230 | 231 | $NetworkExceptionsCopyWith<$Res> get error; 232 | } 233 | 234 | /// @nodoc 235 | class _$FailureCopyWithImpl extends _$ApiResultCopyWithImpl 236 | implements $FailureCopyWith { 237 | _$FailureCopyWithImpl(Failure _value, $Res Function(Failure) _then) 238 | : super(_value, (v) => _then(v as Failure)); 239 | 240 | @override 241 | Failure get _value => super._value as Failure; 242 | 243 | @override 244 | $Res call({ 245 | Object? error = freezed, 246 | }) { 247 | return _then(Failure( 248 | error: error == freezed 249 | ? _value.error 250 | : error // ignore: cast_nullable_to_non_nullable 251 | as NetworkExceptions, 252 | )); 253 | } 254 | 255 | @override 256 | $NetworkExceptionsCopyWith<$Res> get error { 257 | return $NetworkExceptionsCopyWith<$Res>(_value.error, (value) { 258 | return _then(_value.copyWith(error: value)); 259 | }); 260 | } 261 | } 262 | 263 | /// @nodoc 264 | 265 | class _$Failure implements Failure { 266 | const _$Failure({required this.error}); 267 | 268 | @override 269 | final NetworkExceptions error; 270 | 271 | @override 272 | String toString() { 273 | return 'ApiResult<$T>.failure(error: $error)'; 274 | } 275 | 276 | @override 277 | bool operator ==(dynamic other) { 278 | return identical(this, other) || 279 | (other.runtimeType == runtimeType && 280 | other is Failure && 281 | (identical(other.error, error) || other.error == error)); 282 | } 283 | 284 | @override 285 | int get hashCode => Object.hash(runtimeType, error); 286 | 287 | @JsonKey(ignore: true) 288 | @override 289 | $FailureCopyWith> get copyWith => 290 | _$FailureCopyWithImpl>(this, _$identity); 291 | 292 | @override 293 | @optionalTypeArgs 294 | TResult when({ 295 | required TResult Function(T data) success, 296 | required TResult Function(NetworkExceptions error) failure, 297 | }) { 298 | return failure(error); 299 | } 300 | 301 | @override 302 | @optionalTypeArgs 303 | TResult? whenOrNull({ 304 | TResult Function(T data)? success, 305 | TResult Function(NetworkExceptions error)? failure, 306 | }) { 307 | return failure?.call(error); 308 | } 309 | 310 | @override 311 | @optionalTypeArgs 312 | TResult maybeWhen({ 313 | TResult Function(T data)? success, 314 | TResult Function(NetworkExceptions error)? failure, 315 | required TResult orElse(), 316 | }) { 317 | if (failure != null) { 318 | return failure(error); 319 | } 320 | return orElse(); 321 | } 322 | 323 | @override 324 | @optionalTypeArgs 325 | TResult map({ 326 | required TResult Function(Success value) success, 327 | required TResult Function(Failure value) failure, 328 | }) { 329 | return failure(this); 330 | } 331 | 332 | @override 333 | @optionalTypeArgs 334 | TResult? mapOrNull({ 335 | TResult Function(Success value)? success, 336 | TResult Function(Failure value)? failure, 337 | }) { 338 | return failure?.call(this); 339 | } 340 | 341 | @override 342 | @optionalTypeArgs 343 | TResult maybeMap({ 344 | TResult Function(Success value)? success, 345 | TResult Function(Failure value)? failure, 346 | required TResult orElse(), 347 | }) { 348 | if (failure != null) { 349 | return failure(this); 350 | } 351 | return orElse(); 352 | } 353 | } 354 | 355 | abstract class Failure implements ApiResult { 356 | const factory Failure({required NetworkExceptions error}) = _$Failure; 357 | 358 | NetworkExceptions get error; 359 | @JsonKey(ignore: true) 360 | $FailureCopyWith> get copyWith => 361 | throw _privateConstructorUsedError; 362 | } 363 | -------------------------------------------------------------------------------- /lib/src/services/remote/api_service.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | import 'package:flutter_starter_app/src/services/remote/api_client.dart'; 3 | 4 | class ApiService { 5 | ApiClient? _apiClient; 6 | 7 | ApiService() { 8 | var dio = Dio(); 9 | _apiClient = ApiClient(dio); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /lib/src/services/remote/network_exceptions.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:dio/dio.dart'; 4 | import 'package:freezed_annotation/freezed_annotation.dart'; 5 | 6 | part 'network_exceptions.freezed.dart'; 7 | 8 | @freezed 9 | abstract class NetworkExceptions with _$NetworkExceptions { 10 | const factory NetworkExceptions.requestCancelled() = RequestCancelled; 11 | 12 | const factory NetworkExceptions.unauthorizedRequest() = UnauthorizedRequest; 13 | 14 | const factory NetworkExceptions.badRequest() = BadRequest; 15 | 16 | const factory NetworkExceptions.notFound(String reason) = NotFound; 17 | 18 | const factory NetworkExceptions.methodNotAllowed() = MethodNotAllowed; 19 | 20 | const factory NetworkExceptions.notAcceptable() = NotAcceptable; 21 | 22 | const factory NetworkExceptions.requestTimeout() = RequestTimeout; 23 | 24 | const factory NetworkExceptions.sendTimeout() = SendTimeout; 25 | 26 | const factory NetworkExceptions.conflict() = Conflict; 27 | 28 | const factory NetworkExceptions.internalServerError() = InternalServerError; 29 | 30 | const factory NetworkExceptions.notImplemented() = NotImplemented; 31 | 32 | const factory NetworkExceptions.serviceUnavailable() = ServiceUnavailable; 33 | 34 | const factory NetworkExceptions.noInternetConnection() = NoInternetConnection; 35 | 36 | const factory NetworkExceptions.formatException() = FormatException; 37 | 38 | const factory NetworkExceptions.unableToProcess() = UnableToProcess; 39 | 40 | const factory NetworkExceptions.defaultError(String error) = DefaultError; 41 | 42 | const factory NetworkExceptions.unexpectedError() = UnexpectedError; 43 | 44 | static NetworkExceptions handleResponse(int? statusCode) { 45 | switch (statusCode) { 46 | case 400: 47 | case 401: 48 | case 403: 49 | return NetworkExceptions.unauthorizedRequest(); 50 | case 404: 51 | return NetworkExceptions.notFound("Not found"); 52 | case 409: 53 | return NetworkExceptions.conflict(); 54 | case 408: 55 | return NetworkExceptions.requestTimeout(); 56 | case 500: 57 | return NetworkExceptions.internalServerError(); 58 | case 503: 59 | return NetworkExceptions.serviceUnavailable(); 60 | default: 61 | var responseCode = statusCode; 62 | return NetworkExceptions.defaultError( 63 | "Received invalid status code: $responseCode", 64 | ); 65 | } 66 | } 67 | 68 | static NetworkExceptions? getDioException(error) { 69 | if (error is Exception) { 70 | try { 71 | NetworkExceptions? networkExceptions; 72 | if (error is DioError) { 73 | switch (error.type) { 74 | case DioErrorType.cancel: 75 | networkExceptions = NetworkExceptions.requestCancelled(); 76 | break; 77 | case DioErrorType.connectTimeout: 78 | networkExceptions = NetworkExceptions.requestTimeout(); 79 | break; 80 | case DioErrorType.receiveTimeout: 81 | networkExceptions = NetworkExceptions.sendTimeout(); 82 | break; 83 | case DioErrorType.response: 84 | networkExceptions = 85 | NetworkExceptions.handleResponse(error.response?.statusCode); 86 | break; 87 | case DioErrorType.sendTimeout: 88 | networkExceptions = NetworkExceptions.sendTimeout(); 89 | break; 90 | case DioErrorType.other: 91 | // TODO: Handle this case. 92 | break; 93 | } 94 | } else if (error is SocketException) { 95 | networkExceptions = NetworkExceptions.noInternetConnection(); 96 | } else { 97 | networkExceptions = NetworkExceptions.unexpectedError(); 98 | } 99 | return networkExceptions; 100 | } on FormatException catch (_) { 101 | // Helper.printError(e.toString()); 102 | return NetworkExceptions.formatException(); 103 | } catch (_) { 104 | return NetworkExceptions.unexpectedError(); 105 | } 106 | } else { 107 | if (error.toString().contains("is not a subtype of")) { 108 | return NetworkExceptions.unableToProcess(); 109 | } else { 110 | return NetworkExceptions.unexpectedError(); 111 | } 112 | } 113 | } 114 | 115 | static String getErrorMessage(NetworkExceptions networkExceptions) { 116 | var errorMessage = ""; 117 | networkExceptions.when(notImplemented: () { 118 | errorMessage = "Not Implemented"; 119 | }, requestCancelled: () { 120 | errorMessage = "Request Cancelled"; 121 | }, internalServerError: () { 122 | errorMessage = "Internal Server Error"; 123 | }, notFound: (String reason) { 124 | errorMessage = reason; 125 | }, serviceUnavailable: () { 126 | errorMessage = "Service unavailable"; 127 | }, methodNotAllowed: () { 128 | errorMessage = "Method Allowed"; 129 | }, badRequest: () { 130 | errorMessage = "Bad request"; 131 | }, unauthorizedRequest: () { 132 | errorMessage = "Unauthorized request"; 133 | }, unexpectedError: () { 134 | errorMessage = "Unexpected error occurred"; 135 | }, requestTimeout: () { 136 | errorMessage = "Connection request timeout"; 137 | }, noInternetConnection: () { 138 | errorMessage = "No internet connection"; 139 | }, conflict: () { 140 | errorMessage = "Error due to a conflict"; 141 | }, sendTimeout: () { 142 | errorMessage = "Send timeout in connection with API server"; 143 | }, unableToProcess: () { 144 | errorMessage = "Unable to process the data"; 145 | }, defaultError: (String error) { 146 | errorMessage = error; 147 | }, formatException: () { 148 | errorMessage = "Unexpected error occurred"; 149 | }, notAcceptable: () { 150 | errorMessage = "Not acceptable"; 151 | }); 152 | return errorMessage; 153 | } 154 | } 155 | -------------------------------------------------------------------------------- /lib/src/shared/loading_indicator.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class LoadingIndicator extends StatelessWidget { 4 | final double size; 5 | final double strokeWidth; 6 | final Color color; 7 | final double? value; 8 | 9 | const LoadingIndicator({ 10 | Key? key, 11 | this.size = 30, 12 | this.strokeWidth = 3, 13 | this.color = Colors.black, 14 | this.value, 15 | }) : super(key: key); 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return SizedBox( 20 | width: size, 21 | height: size, 22 | child: CircularProgressIndicator( 23 | value: value, 24 | strokeWidth: strokeWidth, 25 | valueColor: AlwaysStoppedAnimation(color), 26 | ), 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/src/shared/spacing.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/cupertino.dart'; 3 | 4 | class VerticalSpacing extends SizedBox { 5 | const VerticalSpacing([double height = 8]) : super(height: height); 6 | } 7 | 8 | class HorizontalSpacing extends SizedBox { 9 | const HorizontalSpacing([double width = 8]) : super(width: width); 10 | } 11 | -------------------------------------------------------------------------------- /lib/src/styles/app_colors.dart: -------------------------------------------------------------------------------- 1 | class AppColors { 2 | AppColors._(); 3 | 4 | 5 | } 6 | -------------------------------------------------------------------------------- /lib/src/styles/text_theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class TextTheme { 4 | TextTheme._(); 5 | 6 | static TextStyle paragraphTheme = TextStyle( 7 | 8 | ); 9 | 10 | } 11 | -------------------------------------------------------------------------------- /lib/src/views/about/about_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/cupertino.dart'; 3 | import 'about_view_model.dart'; 4 | import 'package:stacked/stacked.dart'; 5 | 6 | class AboutView extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return ViewModelBuilder.nonReactive( 10 | builder: (context, model, child) => Scaffold( 11 | appBar: AppBar(title: Text("Nested Route ABOUT")), 12 | backgroundColor: Colors.pinkAccent, 13 | body: Center(child: Text('About')), 14 | ), 15 | viewModelBuilder: () => AboutViewModel(), 16 | ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/src/views/about/about_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:stacked/stacked.dart'; 2 | 3 | class AboutViewModel extends BaseViewModel {} 4 | -------------------------------------------------------------------------------- /lib/src/views/dashboard/dashboard_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/cupertino.dart'; 3 | import 'dashboard_view_model.dart'; 4 | import 'package:stacked/stacked.dart'; 5 | 6 | class DashboardView extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return ViewModelBuilder.nonReactive( 10 | builder: (context, model, child) => Scaffold( 11 | appBar: AppBar( 12 | title: Text("Dashboard"), 13 | ), 14 | backgroundColor: Colors.greenAccent, 15 | body: Center(child: Text('Dashboard')), 16 | ), 17 | viewModelBuilder: () => DashboardViewModel(), 18 | ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /lib/src/views/dashboard/dashboard_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:stacked/stacked.dart'; 2 | 3 | class DashboardViewModel extends BaseViewModel {} 4 | -------------------------------------------------------------------------------- /lib/src/views/home/home_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/cupertino.dart'; 3 | import 'package:flutter_starter_app/src/services/local/navigation_service.dart'; 4 | import 'package:flutter_starter_app/src/views/home/home_view_model.dart'; 5 | import 'package:stacked/stacked.dart'; 6 | 7 | class HomeView extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return ViewModelBuilder.nonReactive( 11 | builder: (context, model, child) => Scaffold( 12 | appBar: AppBar( 13 | title: Text("Nested Route HOME"), 14 | ), 15 | body: Center( 16 | child: ElevatedButton( 17 | onPressed: NavService.about, child: Text("Hello"))), 18 | ), 19 | viewModelBuilder: () => HomeViewModel(), 20 | ); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /lib/src/views/home/home_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:stacked/stacked.dart'; 2 | 3 | class HomeViewModel extends BaseViewModel {} 4 | -------------------------------------------------------------------------------- /lib/src/views/splash/splash_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_starter_app/src/configs/app_setup.router.dart'; 4 | import 'package:flutter_starter_app/src/services/local/navigation_service.dart'; 5 | import 'package:flutter_starter_app/src/shared/spacing.dart'; 6 | import 'package:stacked_services/stacked_services.dart'; 7 | import 'package:flutter_starter_app/src/base/utils/utils.dart'; 8 | 9 | class SplashView extends StatelessWidget { 10 | @override 11 | Widget build(BuildContext context) { 12 | return Scaffold( 13 | body: Column( 14 | crossAxisAlignment: CrossAxisAlignment.center, 15 | children: [ 16 | Spacer(), 17 | Padding( 18 | padding: const EdgeInsets.all(8.0), 19 | child: Text("Nested Route Demo with Stacked", 20 | style: context.appTextTheme().headline4, 21 | textAlign: TextAlign.center), 22 | ), 23 | VerticalSpacing(10), 24 | ElevatedButton( 25 | onPressed: NavService.dashboard, 26 | child: Text("Goto Dashboard with Root Navigator")), 27 | Spacer(), 28 | Row( 29 | mainAxisAlignment: MainAxisAlignment.center, 30 | children: [ 31 | Container( 32 | padding: EdgeInsets.all(10), 33 | decoration: BoxDecoration( 34 | color: Colors.red, 35 | borderRadius: BorderRadius.circular(20), 36 | boxShadow: [ 37 | BoxShadow( 38 | offset: Offset(0, 0), 39 | spreadRadius: 1, 40 | blurRadius: 30, 41 | color: Colors.grey) 42 | ]), 43 | width: 300, 44 | height: 400, 45 | child: Navigator( 46 | key: NavService.nestedNavKey, 47 | observers: [ 48 | GetObserver((_) {}, Get.routing) 49 | ], // <----- this added 50 | onGenerateRoute: (settings) { 51 | return NavService.onSplashViewGenerateRoute( 52 | settings, Routes.splashView); 53 | }, 54 | ), 55 | ), 56 | ], 57 | ), 58 | Spacer(), 59 | ], 60 | ), 61 | ); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /lib/src/views/splash/splash_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:stacked/stacked.dart'; 2 | 3 | class SplashViewModel extends BaseViewModel {} 4 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "34.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "3.2.0" 18 | args: 19 | dependency: transitive 20 | description: 21 | name: args 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.3.0" 25 | assets_indexer: 26 | dependency: "direct dev" 27 | description: 28 | name: assets_indexer 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "0.0.10" 32 | async: 33 | dependency: transitive 34 | description: 35 | name: async 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "2.8.2" 39 | build: 40 | dependency: transitive 41 | description: 42 | name: build 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "2.2.1" 46 | build_config: 47 | dependency: transitive 48 | description: 49 | name: build_config 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.0.0" 53 | build_daemon: 54 | dependency: transitive 55 | description: 56 | name: build_daemon 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "3.0.1" 60 | build_resolvers: 61 | dependency: transitive 62 | description: 63 | name: build_resolvers 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.0.6" 67 | build_runner: 68 | dependency: "direct dev" 69 | description: 70 | name: build_runner 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "2.1.7" 74 | build_runner_core: 75 | dependency: transitive 76 | description: 77 | name: build_runner_core 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "7.2.3" 81 | built_collection: 82 | dependency: transitive 83 | description: 84 | name: built_collection 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "5.1.1" 88 | built_value: 89 | dependency: transitive 90 | description: 91 | name: built_value 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "8.1.4" 95 | characters: 96 | dependency: transitive 97 | description: 98 | name: characters 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "1.2.0" 102 | charcode: 103 | dependency: transitive 104 | description: 105 | name: charcode 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "1.3.1" 109 | checked_yaml: 110 | dependency: transitive 111 | description: 112 | name: checked_yaml 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "2.0.1" 116 | cli_util: 117 | dependency: transitive 118 | description: 119 | name: cli_util 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "0.3.5" 123 | code_builder: 124 | dependency: transitive 125 | description: 126 | name: code_builder 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "4.1.0" 130 | collection: 131 | dependency: transitive 132 | description: 133 | name: collection 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "1.15.0" 137 | connectivity: 138 | dependency: "direct main" 139 | description: 140 | name: connectivity 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "3.0.6" 144 | connectivity_for_web: 145 | dependency: transitive 146 | description: 147 | name: connectivity_for_web 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "0.4.0+1" 151 | connectivity_macos: 152 | dependency: transitive 153 | description: 154 | name: connectivity_macos 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "0.2.1+2" 158 | connectivity_platform_interface: 159 | dependency: transitive 160 | description: 161 | name: connectivity_platform_interface 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "2.0.1" 165 | convert: 166 | dependency: transitive 167 | description: 168 | name: convert 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "3.0.1" 172 | crypto: 173 | dependency: transitive 174 | description: 175 | name: crypto 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "3.0.1" 179 | dart_style: 180 | dependency: transitive 181 | description: 182 | name: dart_style 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "2.2.1" 186 | dio: 187 | dependency: "direct main" 188 | description: 189 | name: dio 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "4.0.4" 193 | file: 194 | dependency: transitive 195 | description: 196 | name: file 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "6.1.2" 200 | fixnum: 201 | dependency: transitive 202 | description: 203 | name: fixnum 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "1.0.0" 207 | flutter: 208 | dependency: "direct main" 209 | description: flutter 210 | source: sdk 211 | version: "0.0.0" 212 | flutter_keyboard_visibility: 213 | dependency: "direct main" 214 | description: 215 | name: flutter_keyboard_visibility 216 | url: "https://pub.dartlang.org" 217 | source: hosted 218 | version: "5.1.1" 219 | flutter_keyboard_visibility_platform_interface: 220 | dependency: transitive 221 | description: 222 | name: flutter_keyboard_visibility_platform_interface 223 | url: "https://pub.dartlang.org" 224 | source: hosted 225 | version: "2.0.0" 226 | flutter_keyboard_visibility_web: 227 | dependency: transitive 228 | description: 229 | name: flutter_keyboard_visibility_web 230 | url: "https://pub.dartlang.org" 231 | source: hosted 232 | version: "2.0.0" 233 | flutter_web_plugins: 234 | dependency: transitive 235 | description: flutter 236 | source: sdk 237 | version: "0.0.0" 238 | freezed: 239 | dependency: "direct dev" 240 | description: 241 | name: freezed 242 | url: "https://pub.dartlang.org" 243 | source: hosted 244 | version: "1.1.1" 245 | freezed_annotation: 246 | dependency: "direct main" 247 | description: 248 | name: freezed_annotation 249 | url: "https://pub.dartlang.org" 250 | source: hosted 251 | version: "1.1.0" 252 | frontend_server_client: 253 | dependency: transitive 254 | description: 255 | name: frontend_server_client 256 | url: "https://pub.dartlang.org" 257 | source: hosted 258 | version: "2.1.2" 259 | get: 260 | dependency: transitive 261 | description: 262 | name: get 263 | url: "https://pub.dartlang.org" 264 | source: hosted 265 | version: "4.6.1" 266 | get_it: 267 | dependency: transitive 268 | description: 269 | name: get_it 270 | url: "https://pub.dartlang.org" 271 | source: hosted 272 | version: "7.2.0" 273 | glob: 274 | dependency: transitive 275 | description: 276 | name: glob 277 | url: "https://pub.dartlang.org" 278 | source: hosted 279 | version: "2.0.2" 280 | graphs: 281 | dependency: transitive 282 | description: 283 | name: graphs 284 | url: "https://pub.dartlang.org" 285 | source: hosted 286 | version: "2.1.0" 287 | http_multi_server: 288 | dependency: transitive 289 | description: 290 | name: http_multi_server 291 | url: "https://pub.dartlang.org" 292 | source: hosted 293 | version: "3.0.1" 294 | http_parser: 295 | dependency: transitive 296 | description: 297 | name: http_parser 298 | url: "https://pub.dartlang.org" 299 | source: hosted 300 | version: "4.0.0" 301 | io: 302 | dependency: transitive 303 | description: 304 | name: io 305 | url: "https://pub.dartlang.org" 306 | source: hosted 307 | version: "1.0.3" 308 | js: 309 | dependency: transitive 310 | description: 311 | name: js 312 | url: "https://pub.dartlang.org" 313 | source: hosted 314 | version: "0.6.3" 315 | json_annotation: 316 | dependency: transitive 317 | description: 318 | name: json_annotation 319 | url: "https://pub.dartlang.org" 320 | source: hosted 321 | version: "4.4.0" 322 | logging: 323 | dependency: transitive 324 | description: 325 | name: logging 326 | url: "https://pub.dartlang.org" 327 | source: hosted 328 | version: "1.0.2" 329 | matcher: 330 | dependency: transitive 331 | description: 332 | name: matcher 333 | url: "https://pub.dartlang.org" 334 | source: hosted 335 | version: "0.12.11" 336 | material_color_utilities: 337 | dependency: transitive 338 | description: 339 | name: material_color_utilities 340 | url: "https://pub.dartlang.org" 341 | source: hosted 342 | version: "0.1.3" 343 | meta: 344 | dependency: transitive 345 | description: 346 | name: meta 347 | url: "https://pub.dartlang.org" 348 | source: hosted 349 | version: "1.7.0" 350 | mime: 351 | dependency: transitive 352 | description: 353 | name: mime 354 | url: "https://pub.dartlang.org" 355 | source: hosted 356 | version: "1.0.1" 357 | mustache: 358 | dependency: transitive 359 | description: 360 | name: mustache 361 | url: "https://pub.dartlang.org" 362 | source: hosted 363 | version: "1.1.1" 364 | nested: 365 | dependency: transitive 366 | description: 367 | name: nested 368 | url: "https://pub.dartlang.org" 369 | source: hosted 370 | version: "1.0.0" 371 | numbers_to_words: 372 | dependency: transitive 373 | description: 374 | name: numbers_to_words 375 | url: "https://pub.dartlang.org" 376 | source: hosted 377 | version: "0.1.2" 378 | package_config: 379 | dependency: transitive 380 | description: 381 | name: package_config 382 | url: "https://pub.dartlang.org" 383 | source: hosted 384 | version: "2.0.2" 385 | package_info: 386 | dependency: "direct main" 387 | description: 388 | name: package_info 389 | url: "https://pub.dartlang.org" 390 | source: hosted 391 | version: "2.0.2" 392 | path: 393 | dependency: transitive 394 | description: 395 | name: path 396 | url: "https://pub.dartlang.org" 397 | source: hosted 398 | version: "1.8.1" 399 | plugin_platform_interface: 400 | dependency: transitive 401 | description: 402 | name: plugin_platform_interface 403 | url: "https://pub.dartlang.org" 404 | source: hosted 405 | version: "2.1.2" 406 | pool: 407 | dependency: transitive 408 | description: 409 | name: pool 410 | url: "https://pub.dartlang.org" 411 | source: hosted 412 | version: "1.5.0" 413 | provider: 414 | dependency: transitive 415 | description: 416 | name: provider 417 | url: "https://pub.dartlang.org" 418 | source: hosted 419 | version: "6.0.2" 420 | pub_semver: 421 | dependency: transitive 422 | description: 423 | name: pub_semver 424 | url: "https://pub.dartlang.org" 425 | source: hosted 426 | version: "2.1.0" 427 | pubspec_parse: 428 | dependency: transitive 429 | description: 430 | name: pubspec_parse 431 | url: "https://pub.dartlang.org" 432 | source: hosted 433 | version: "1.2.0" 434 | quartet: 435 | dependency: transitive 436 | description: 437 | name: quartet 438 | url: "https://pub.dartlang.org" 439 | source: hosted 440 | version: "0.1.1" 441 | recase: 442 | dependency: transitive 443 | description: 444 | name: recase 445 | url: "https://pub.dartlang.org" 446 | source: hosted 447 | version: "4.0.0" 448 | shelf: 449 | dependency: transitive 450 | description: 451 | name: shelf 452 | url: "https://pub.dartlang.org" 453 | source: hosted 454 | version: "1.2.0" 455 | shelf_web_socket: 456 | dependency: transitive 457 | description: 458 | name: shelf_web_socket 459 | url: "https://pub.dartlang.org" 460 | source: hosted 461 | version: "1.0.1" 462 | sky_engine: 463 | dependency: transitive 464 | description: flutter 465 | source: sdk 466 | version: "0.0.99" 467 | source_gen: 468 | dependency: transitive 469 | description: 470 | name: source_gen 471 | url: "https://pub.dartlang.org" 472 | source: hosted 473 | version: "1.2.1" 474 | source_span: 475 | dependency: transitive 476 | description: 477 | name: source_span 478 | url: "https://pub.dartlang.org" 479 | source: hosted 480 | version: "1.8.2" 481 | stack_trace: 482 | dependency: transitive 483 | description: 484 | name: stack_trace 485 | url: "https://pub.dartlang.org" 486 | source: hosted 487 | version: "1.10.0" 488 | stacked: 489 | dependency: "direct main" 490 | description: 491 | name: stacked 492 | url: "https://pub.dartlang.org" 493 | source: hosted 494 | version: "2.2.8" 495 | stacked_generator: 496 | dependency: "direct dev" 497 | description: 498 | name: stacked_generator 499 | url: "https://pub.dartlang.org" 500 | source: hosted 501 | version: "0.5.7" 502 | stacked_services: 503 | dependency: "direct main" 504 | description: 505 | name: stacked_services 506 | url: "https://pub.dartlang.org" 507 | source: hosted 508 | version: "0.8.16" 509 | stream_channel: 510 | dependency: transitive 511 | description: 512 | name: stream_channel 513 | url: "https://pub.dartlang.org" 514 | source: hosted 515 | version: "2.1.0" 516 | stream_transform: 517 | dependency: transitive 518 | description: 519 | name: stream_transform 520 | url: "https://pub.dartlang.org" 521 | source: hosted 522 | version: "2.0.0" 523 | string_scanner: 524 | dependency: transitive 525 | description: 526 | name: string_scanner 527 | url: "https://pub.dartlang.org" 528 | source: hosted 529 | version: "1.1.0" 530 | term_glyph: 531 | dependency: transitive 532 | description: 533 | name: term_glyph 534 | url: "https://pub.dartlang.org" 535 | source: hosted 536 | version: "1.2.0" 537 | timing: 538 | dependency: transitive 539 | description: 540 | name: timing 541 | url: "https://pub.dartlang.org" 542 | source: hosted 543 | version: "1.0.0" 544 | typed_data: 545 | dependency: transitive 546 | description: 547 | name: typed_data 548 | url: "https://pub.dartlang.org" 549 | source: hosted 550 | version: "1.3.0" 551 | universal_io: 552 | dependency: transitive 553 | description: 554 | name: universal_io 555 | url: "https://pub.dartlang.org" 556 | source: hosted 557 | version: "2.0.4" 558 | vector_math: 559 | dependency: transitive 560 | description: 561 | name: vector_math 562 | url: "https://pub.dartlang.org" 563 | source: hosted 564 | version: "2.1.1" 565 | watcher: 566 | dependency: transitive 567 | description: 568 | name: watcher 569 | url: "https://pub.dartlang.org" 570 | source: hosted 571 | version: "1.0.1" 572 | web_socket_channel: 573 | dependency: transitive 574 | description: 575 | name: web_socket_channel 576 | url: "https://pub.dartlang.org" 577 | source: hosted 578 | version: "2.1.0" 579 | yaml: 580 | dependency: transitive 581 | description: 582 | name: yaml 583 | url: "https://pub.dartlang.org" 584 | source: hosted 585 | version: "3.1.0" 586 | sdks: 587 | dart: ">=2.14.0 <3.0.0" 588 | flutter: ">=1.20.0" 589 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_starter_app 2 | description: Flutter starter app 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: "none" # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.14.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | connectivity: ^3.0.6 27 | stacked: ^2.2.5 28 | stacked_services: ^0.8.13 29 | package_info: ^2.0.2 30 | dio: ^4.0.0 31 | flutter_keyboard_visibility: ^5.0.3 32 | freezed_annotation: ^1.1.0 33 | 34 | dev_dependencies: 35 | build_runner: ^2.0.4 36 | stacked_generator: ^0.5.2 37 | freezed: ^1.1.1 38 | assets_indexer: ^0.0.10 39 | 40 | # For information on the generic Dart part of this file, see the 41 | # following page: https://dart.dev/tools/pub/pubspec 42 | # The following section is specific to Flutter. 43 | flutter: 44 | # The following line ensures that the Material Icons font is 45 | # included with your application, so that you can use the icons in 46 | # the material Icons class. 47 | uses-material-design: true 48 | # To add assets to your application, add an assets section, like this: 49 | assets: 50 | - assets/images/ 51 | # - images/a_dot_ham.jpeg 52 | # An image asset can refer to one or more resolution-specific "variants", see 53 | # https://flutter.dev/assets-and-images/#resolution-aware. 54 | # For details regarding adding assets from package dependencies, see 55 | # https://flutter.dev/assets-and-images/#from-packages 56 | # To add custom fonts to your application, add a fonts section here, 57 | # in this "flutter" section. Each entry in this list should have a 58 | # "family" key with the font family name, and a "fonts" key with a 59 | # list giving the asset and other descriptors for the font. For 60 | # example: 61 | # fonts: 62 | # - family: Schyler 63 | # fonts: 64 | # - asset: fonts/Schyler-Regular.ttf 65 | # - asset: fonts/Schyler-Italic.ttf 66 | # style: italic 67 | # - family: Trajan Pro 68 | # fonts: 69 | # - asset: fonts/TrajanPro.ttf 70 | # - asset: fonts/TrajanPro_Bold.ttf 71 | # weight: 700 72 | # 73 | # For details regarding fonts from package dependencies, 74 | # see https://flutter.dev/custom-fonts/#from-packages 75 | -------------------------------------------------------------------------------- /setup/app_name.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'setter.dart'; 4 | 5 | class AppNameSetter implements Setter{ 6 | String _gradleFilePath = "./android/app/build.gradle"; 7 | String _xcFilePath = "./ios/Runner.xcodeproj/project.pbxproj"; 8 | 9 | final String newAppName; 10 | 11 | AppNameSetter(this.newAppName); 12 | 13 | @override 14 | apply(){ 15 | _gradleFile(); 16 | _xcFile(); 17 | } 18 | 19 | _gradleFile(){ 20 | File gradleFile = File(_gradleFilePath); 21 | gradleFile.writeAsStringSync(gradleFile.readAsStringSync().replaceAll("FSA", newAppName)); 22 | print("Done with android/app/build.gradle"); 23 | } 24 | 25 | _xcFile(){ 26 | File gradleFile = File(_xcFilePath); 27 | gradleFile.writeAsStringSync(gradleFile.readAsStringSync().replaceAll('APP_DISPLAY_NAME = "Runner', 'APP_DISPLAY_NAME = "$newAppName')); 28 | gradleFile.writeAsStringSync(gradleFile.readAsStringSync().replaceAll('APP_DISPLAY_NAME = Runner', 'APP_DISPLAY_NAME = $newAppName')); 29 | print("Done with ios/Runner.xcodeproj"); 30 | } 31 | 32 | } -------------------------------------------------------------------------------- /setup/dart_name.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'setter.dart'; 4 | 5 | class DartNameSetter implements Setter { 6 | final String newDartName; 7 | final String oldDartName; 8 | 9 | DartNameSetter(this.newDartName, [this.oldDartName = 'flutter_starter_app']); 10 | 11 | @override 12 | apply() { 13 | File pubSpec = File('./pubspec.yaml'); 14 | pubSpec.writeAsStringSync( 15 | pubSpec.readAsStringSync().replaceAll(oldDartName, newDartName)); 16 | print("Done with Dart Name"); 17 | int countReplacedFiles = 0; 18 | for (FileSystemEntity file 19 | in Directory('./lib/').listSync(recursive: true)) { 20 | if (file.path.split(".").last == "dart") { 21 | File(file.path).writeAsStringSync(File(file.path) 22 | .readAsStringSync() 23 | .replaceAll(oldDartName, newDartName)); 24 | countReplacedFiles++; 25 | } 26 | } 27 | if (countReplacedFiles == 0) { 28 | print("No imports found in lib/ dir to replace"); 29 | } else { 30 | print("Replaced $countReplacedFiles files in lib/ dir"); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /setup/set_package_name.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'setter.dart'; 4 | 5 | class PackageNameSetter implements Setter{ 6 | String _gradleFilePath = "./android/app/build.gradle"; 7 | String _xcFilePath = "./ios/Runner.xcodeproj/project.pbxproj"; 8 | 9 | final String newPackageName; 10 | 11 | PackageNameSetter(this.newPackageName); 12 | 13 | @override 14 | apply(){ 15 | _gradleFile(); 16 | _xcFile(); 17 | } 18 | 19 | _gradleFile(){ 20 | File gradleFile = File(_gradleFilePath); 21 | gradleFile.writeAsStringSync(gradleFile.readAsStringSync().replaceAll("com.example.flutter_starter_app", newPackageName)); 22 | print("Done with android/app/build.gradle"); 23 | } 24 | 25 | _xcFile(){ 26 | File gradleFile = File(_xcFilePath); 27 | gradleFile.writeAsStringSync(gradleFile.readAsStringSync().replaceAll("com.example.flutterStarterApp", newPackageName)); 28 | print("Done with ios/Runner.xcodeproj"); 29 | } 30 | } -------------------------------------------------------------------------------- /setup/setter.dart: -------------------------------------------------------------------------------- 1 | abstract class Setter{ 2 | apply(); 3 | } -------------------------------------------------------------------------------- /setup/setup.dart: -------------------------------------------------------------------------------- 1 | import 'app_name.dart'; 2 | import 'dart_name.dart'; 3 | import 'set_package_name.dart'; 4 | import 'setter.dart'; 5 | 6 | void main(List args) { 7 | if (args.isEmpty || args[0] == "help") { 8 | print("--packageName for package name of android/ios"); 9 | print("--dartBundleName for dart name of linked imports & pubspec.yaml"); 10 | print("--appName for app name on android/ios"); 11 | return; 12 | } 13 | 14 | List setters = []; 15 | 16 | for (String arg in args) { 17 | if (!arg.contains("=")) { 18 | continue; 19 | } 20 | var lineParts = arg.split("="); 21 | String name = lineParts[0]; 22 | String value = lineParts[1]; 23 | switch (name) { 24 | case "--packageName": 25 | setters.add(PackageNameSetter(value)); 26 | break; 27 | case "--dartBundleName": 28 | if (value.contains(",")) { 29 | setters.add( 30 | DartNameSetter(value.split(",").first, value.split(",").last)); 31 | } else { 32 | setters.add(DartNameSetter(value)); 33 | } 34 | break; 35 | case "--appName": 36 | setters.add(AppNameSetter(value)); 37 | break; 38 | } 39 | } 40 | setters.forEach((setter) => setter.apply()); 41 | } 42 | --------------------------------------------------------------------------------