diff --git a/.github/workflows/release-android.yml b/.github/workflows/release-android.yml
new file mode 100644
index 0000000..d4f8b80
--- /dev/null
+++ b/.github/workflows/release-android.yml
@@ -0,0 +1,60 @@
+on:
+ push:
+ tags:
+ - '*'
+name: Build and Release apk
+jobs:
+ build:
+ name: Build APK
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-java@v1
+ with:
+ java-version: '12.x'
+
+ - name: Setup Flutter
+ uses: subosito/flutter-action@v2
+ with:
+ flutter-version: '3.3.0'
+ channel: 'stable'
+
+ - name: Setup NDK
+ uses: nttld/setup-ndk@v1
+ with:
+ ndk-version: 'r21e'
+ add-to-path: true
+ env:
+ ANDROID_NDK_HOME: '/usr/local/lib/android/sdk/ndk'
+
+ - name: Flutter doctor -v
+ run: flutter doctor -v
+
+ - name: Install Deps
+ run: flutter pub get
+
+ - name: Configure Keystore
+ run: |
+ echo "$PLAY_STORE_UPLOAD_KEY" | base64 --decode > app/gitter-lite.jks
+ echo "storeFile=gitter-lite.jks" >> key.properties
+ echo "keyAlias=$KEYSTORE_KEY_ALIAS" >> key.properties
+ echo "storePassword=$KEYSTORE_STORE_PASSWORD" >> key.properties
+ echo "keyPassword=$KEYSTORE_KEY_PASSWORD" >> key.properties
+ env:
+ PLAY_STORE_UPLOAD_KEY: ${{ secrets.PLAY_STORE_UPLOAD_KEY }}
+ KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }}
+ KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
+ KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
+ working-directory: android
+
+ - name: Build APKs
+ run: flutter build apk --split-per-abi --no-tree-shake-icons
+
+ - name: Build Appbundle
+ run: flutter build appbundle --no-tree-shake-icons
+
+ - name: Push APK to Releases
+ uses: ncipollo/release-action@v1
+ with:
+ artifacts: "build/app/outputs/flutter-apk/*.apk,build/app/outputs/bundle/release/*.aab"
+ token: ${{ secrets.TOKEN }}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..24476c5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,44 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/build/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/.metadata b/.metadata
new file mode 100644
index 0000000..31b763f
--- /dev/null
+++ b/.metadata
@@ -0,0 +1,45 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled.
+
+version:
+ revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ channel: stable
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ - platform: android
+ create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ - platform: ios
+ create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ - platform: linux
+ create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ - platform: macos
+ create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ - platform: web
+ create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ - platform: windows
+ create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+ base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..75d3dbc
--- /dev/null
+++ b/README.md
@@ -0,0 +1,16 @@
+# flutter_template_ns
+
+A new Flutter project.
+
+## Getting Started
+
+This project is a starting point for a Flutter application.
+
+A few resources to get you started if this is your first Flutter project:
+
+- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
+
+For help getting started with Flutter development, view the
+[online documentation](https://docs.flutter.dev/), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..77fb8e1
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,4 @@
+include: package:very_good_analysis/analysis_options.3.0.1.yaml
+linter:
+ rules:
+ public_member_api_docs: false
diff --git a/android/.gitignore b/android/.gitignore
new file mode 100644
index 0000000..6f56801
--- /dev/null
+++ b/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 0000000..8f1dd1a
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,59 @@
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterRoot = localProperties.getProperty('flutter.sdk')
+if (flutterRoot == null) {
+ throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
+
+android {
+ compileSdkVersion flutter.compileSdkVersion
+ ndkVersion flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "me.kimmy.apps.template.flutter.flutter_template_ns"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
+ minSdkVersion flutter.minSdkVersion
+ targetSdkVersion flutter.targetSdkVersion
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig signingConfigs.debug
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..886a3eb
--- /dev/null
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..ed6d79d
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/java/me/kimmy/apps/template/flutter/flutter_template_ns/MainActivity.java b/android/app/src/main/java/me/kimmy/apps/template/flutter/flutter_template_ns/MainActivity.java
new file mode 100644
index 0000000..19981f9
--- /dev/null
+++ b/android/app/src/main/java/me/kimmy/apps/template/flutter/flutter_template_ns/MainActivity.java
@@ -0,0 +1,6 @@
+package me.kimmy.apps.template.flutter.flutter_template_ns;
+
+import io.flutter.embedding.android.FlutterActivity;
+
+public class MainActivity extends FlutterActivity {
+}
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..db77bb4
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..17987b7
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..09d4391
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..d5f1c8d
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d6372e
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..886a3eb
--- /dev/null
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/android/build.gradle b/android/build.gradle
new file mode 100644
index 0000000..83ae220
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,31 @@
+buildscript {
+ ext.kotlin_version = '1.6.10'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:7.1.2'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+ project.evaluationDependsOn(':app')
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/android/gradle.properties b/android/gradle.properties
new file mode 100644
index 0000000..94adc3a
--- /dev/null
+++ b/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..cb24abd
--- /dev/null
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..44e62bc
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1,11 @@
+include ':app'
+
+def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
+def properties = new Properties()
+
+assert localPropertiesFile.exists()
+localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
+
+def flutterSdkPath = properties.getProperty("flutter.sdk")
+assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/ios/.gitignore b/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..9625e10
--- /dev/null
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 11.0
+
+
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..ec97fc6
--- /dev/null
+++ b/ios/Flutter/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..c4855bf
--- /dev/null
+++ b/ios/Flutter/Release.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
diff --git a/ios/Podfile b/ios/Podfile
new file mode 100644
index 0000000..88359b2
--- /dev/null
+++ b/ios/Podfile
@@ -0,0 +1,41 @@
+# Uncomment this line to define a global platform for your project
+# platform :ios, '11.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_ios_build_settings(target)
+ end
+end
diff --git a/ios/Podfile.lock b/ios/Podfile.lock
new file mode 100644
index 0000000..0c6b111
--- /dev/null
+++ b/ios/Podfile.lock
@@ -0,0 +1,22 @@
+PODS:
+ - Flutter (1.0.0)
+ - shared_preferences_ios (0.0.1):
+ - Flutter
+
+DEPENDENCIES:
+ - Flutter (from `Flutter`)
+ - shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
+
+EXTERNAL SOURCES:
+ Flutter:
+ :path: Flutter
+ shared_preferences_ios:
+ :path: ".symlinks/plugins/shared_preferences_ios/ios"
+
+SPEC CHECKSUMS:
+ Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
+ shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
+
+PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
+
+COCOAPODS: 1.11.2
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..c1ffbc8
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,552 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 50;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+ A61BEBF9FEA10FEDAE639C7F /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A53DF7290693DB33372CD5DA /* Pods_Runner.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 22F58DD128B3CA45C047F82B /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 620BBB771CC2BFF8990BD854 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ A53DF7290693DB33372CD5DA /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ E482B0210A6B9280F334B3B4 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A61BEBF9FEA10FEDAE639C7F /* Pods_Runner.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 8612425C36419778845043AD /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ E482B0210A6B9280F334B3B4 /* Pods-Runner.debug.xcconfig */,
+ 620BBB771CC2BFF8990BD854 /* Pods-Runner.release.xcconfig */,
+ 22F58DD128B3CA45C047F82B /* Pods-Runner.profile.xcconfig */,
+ );
+ name = Pods;
+ path = Pods;
+ sourceTree = "";
+ };
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ 8612425C36419778845043AD /* Pods */,
+ C2B81219B2A3F9E682020665 /* Frameworks */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+ C2B81219B2A3F9E682020665 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ A53DF7290693DB33372CD5DA /* Pods_Runner.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ AAEB63D58A8C3D544BCC9489 /* [CP] Check Pods Manifest.lock */,
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ A1DC9E726F0A167F011478A9 /* [CP] Embed Pods Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 1300;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+ A1DC9E726F0A167F011478A9 /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+ AAEB63D58A8C3D544BCC9489 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = 43V9N6VW8L;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = me.kimmy.apps.template.flutter.flutterTemplateNs;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = 43V9N6VW8L;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = me.kimmy.apps.template.flutter.flutterTemplateNs;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = 43V9N6VW8L;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = me.kimmy.apps.template.flutter.flutterTemplateNs;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..c87d15a
--- /dev/null
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..21a3cc1
--- /dev/null
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..70693e4
--- /dev/null
+++ b/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import UIKit
+import Flutter
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d36b1fa
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 0000000..dc9ada4
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 0000000..28c6bf0
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 0000000..2ccbfd9
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 0000000..f091b6b
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 0000000..4cde121
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 0000000..d0ef06e
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 0000000..dcdc230
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 0000000..2ccbfd9
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 0000000..c8f9ed8
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 0000000..a6d6b86
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000..a6d6b86
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 0000000..75b2d16
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000..c4df70d
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 0000000..6a84f41
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 0000000..d0e1f58
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+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.
\ No newline at end of file
diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
new file mode 100644
index 0000000..02a499f
--- /dev/null
+++ b/ios/Runner/Info.plist
@@ -0,0 +1,51 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Flutter Template Ns
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ flutter_template_ns
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/ios/ci_scripts/ci_post_clone.sh b/ios/ci_scripts/ci_post_clone.sh
new file mode 100644
index 0000000..a54eba0
--- /dev/null
+++ b/ios/ci_scripts/ci_post_clone.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+echo "🟩 Navigate from ($PWD) to ($CI_WORKSPACE)"
+cd $CI_WORKSPACE
+
+echo "🟩 Install Flutter"
+time git clone https://github.com/flutter/flutter.git -b stable $HOME/flutter
+export PATH="$PATH:$HOME/flutter/bin"
+
+echo "🟩 Flutter Precache"
+time flutter precache --ios
+
+echo "🟩 Install Flutter Dependencies"
+time flutter pub get
+
+echo "🟩 Install CocoaPods via Homebrew"
+time HOMEBREW_NO_AUTO_UPDATE=1 brew install -q cocoapods
+
+echo "🟩 Install CocoaPods dependencies..."
+time cd ios && pod install --silent
+
+exit 0
diff --git a/l10n.yaml b/l10n.yaml
new file mode 100644
index 0000000..6f72a55
--- /dev/null
+++ b/l10n.yaml
@@ -0,0 +1,4 @@
+arb-dir: lib/l10n/arb
+template-arb-file: app_en.arb
+output-localization-file: app_localizations.dart
+nullable-getter: false
diff --git a/lib/app/app_bloc_observer.dart b/lib/app/app_bloc_observer.dart
new file mode 100644
index 0000000..9a6e6fd
--- /dev/null
+++ b/lib/app/app_bloc_observer.dart
@@ -0,0 +1,17 @@
+import 'dart:developer';
+
+import 'package:bloc/bloc.dart';
+
+class AppBlocObserver extends BlocObserver {
+ @override
+ void onChange(BlocBase bloc, Change change) {
+ super.onChange(bloc, change);
+ log('onChange(${bloc.runtimeType}, $change)');
+ }
+
+ @override
+ void onError(BlocBase bloc, Object error, StackTrace stackTrace) {
+ log('onError(${bloc.runtimeType}, $error, $stackTrace)');
+ super.onError(bloc, error, stackTrace);
+ }
+}
diff --git a/lib/app/app_manager.dart b/lib/app/app_manager.dart
new file mode 100644
index 0000000..8a614d3
--- /dev/null
+++ b/lib/app/app_manager.dart
@@ -0,0 +1,21 @@
+
+import 'package:flutter/widgets.dart';
+
+class AppManager {
+ String? username;
+ String? password;
+ String? token;
+ String? version;
+ String? buildNumber;
+ BuildContext? context;
+
+ /// 静态变量指向自身
+ static final AppManager _instance = AppManager._();
+
+ /// 私有构造器
+ AppManager._();
+
+ /// 静态属性获得实例变量
+ static AppManager get instance => _instance;
+
+}
diff --git a/lib/bootstrap.dart b/lib/bootstrap.dart
new file mode 100644
index 0000000..4fe87ab
--- /dev/null
+++ b/lib/bootstrap.dart
@@ -0,0 +1,38 @@
+import 'dart:async';
+import 'dart:developer';
+
+import 'package:bloc/bloc.dart';
+import 'package:dio_trending_api/dio_trending_api.dart';
+import 'package:flutter/widgets.dart';
+import 'package:flutter_boilerplate/app/app_bloc_observer.dart';
+import 'package:flutter_boilerplate/modules/app/app.dart';
+import 'package:trending_repository/trending_repository.dart';
+import 'package:trending_repository_middleware/trending_repository_middleware.dart';
+
+void bootstrap({
+ required DioTrendingApi trendingApi,
+ required TrendingRepositoryMiddleware trendingRepositoryMiddleware,
+}) {
+ FlutterError.onError = (details) {
+ log(details.exceptionAsString(), stackTrace: details.stack);
+ };
+
+ final trendingRepository = TrendingRepository(
+ trendingApi: trendingApi,
+ trendingRepositoryMiddleware: trendingRepositoryMiddleware,
+ );
+
+ runZonedGuarded(
+ () async {
+ await BlocOverrides.runZoned(
+ () async => runApp(
+ App(
+ trendingRepository: trendingRepository,
+ ),
+ ),
+ blocObserver: AppBlocObserver(),
+ );
+ },
+ (error, stackTrace) => log(error.toString(), stackTrace: stackTrace),
+ );
+}
diff --git a/lib/common/constants/constants.dart b/lib/common/constants/constants.dart
new file mode 100644
index 0000000..6a713e5
--- /dev/null
+++ b/lib/common/constants/constants.dart
@@ -0,0 +1,19 @@
+/// Constants
+class Constants {
+ static const githubApiPrefix = 'https://api.github.com';
+
+ static const githubGraphqlApiEndpoint = 'https://api.github.com/graphql';
+
+ static const githubTrendingApiPrefix = 'https://api.gitterapp.com';
+
+ static const githubOtherApiPrefix = 'https://github.gitterapp.com';
+
+ static const int days = 7;
+
+ static const int timeOut = 20;
+
+ static const int pageSize = 30;
+
+ static const Map headers = {'Accept': 'application/vnd.github.giant-sentry-fist-preview+json'};
+
+}
diff --git a/lib/common/extensions/multiple_widget_nested.dart b/lib/common/extensions/multiple_widget_nested.dart
new file mode 100644
index 0000000..77c8718
--- /dev/null
+++ b/lib/common/extensions/multiple_widget_nested.dart
@@ -0,0 +1,243 @@
+import 'package:flutter/gestures.dart';
+import 'package:flutter/material.dart';
+
+import 'package:flutter_boilerplate/common/extensions/widget_nested_common.dart';
+
+/*
+示例代码:
+// widget 数组
+List widgets = [Text('a'), Icon(Icons.pets)];
+// 嵌套一个 row
+widgets.nestedRow();
+// 嵌套一个 column
+widgets.nestedColumn();
+// 嵌套一个 stack
+widgets.nestedStack();
+// 嵌套一个 list
+widgets.nestedListView();
+// 嵌套一个 grid
+widgets.nestedGridView();
+// 嵌套一个 自定义scroll
+widgets.nestedCustomScrollView();
+*/
+
+// 多个widget嵌套扩展
+extension MultipleWidgetNestedExtension on List {
+ // 嵌套 Row
+ Row nestedRow({
+ Key? key,
+ MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
+ MainAxisSize mainAxisSize = MainAxisSize.max,
+ CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
+ TextDirection? textDirection,
+ VerticalDirection verticalDirection = VerticalDirection.down,
+ TextBaseline? textBaseline,
+ }) {
+ return Row(
+ key: key,
+ mainAxisAlignment: mainAxisAlignment,
+ mainAxisSize: mainAxisSize,
+ crossAxisAlignment: crossAxisAlignment,
+ textDirection: textDirection,
+ verticalDirection: verticalDirection,
+ textBaseline: textBaseline,
+ children: this,
+ );
+ }
+
+ // 嵌套 Column
+ Column nestedColumn({
+ Key? key,
+ MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
+ MainAxisSize mainAxisSize = MainAxisSize.max,
+ CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
+ TextDirection? textDirection,
+ VerticalDirection verticalDirection = VerticalDirection.down,
+ TextBaseline? textBaseline,
+ }) {
+ return Column(
+ key: key,
+ mainAxisAlignment: mainAxisAlignment,
+ mainAxisSize: mainAxisSize,
+ crossAxisAlignment: crossAxisAlignment,
+ textDirection: textDirection,
+ verticalDirection: verticalDirection,
+ textBaseline: textBaseline,
+ children: this,
+ );
+ }
+
+ // 嵌套stack
+ Stack nestedStack({
+ Key? key,
+ AlignmentGeometry alignment = AlignmentDirectional.topStart,
+ TextDirection? textDirection,
+ StackFit fit = StackFit.loose,
+ Clip clipBehavior = Clip.hardEdge,
+ }) {
+ return Stack(
+ key: key,
+ alignment: alignment,
+ textDirection: textDirection,
+ fit: fit,
+ clipBehavior: clipBehavior,
+ children: this,
+ );
+ }
+
+ // 嵌套 listView
+ ListView nestedListView({
+ Key? key,
+ Axis scrollDirection = Axis.vertical,
+ bool reverse = false,
+ ScrollController? controller,
+ bool? primary,
+ ScrollPhysics? physics,
+ bool shrinkWrap = false,
+ EdgeInsetsGeometry? padding,
+ double? itemExtent,
+ bool addAutomaticKeepAlives = true,
+ bool addRepaintBoundaries = true,
+ bool addSemanticIndexes = true,
+ double? cacheExtent,
+ int? semanticChildCount,
+ DragStartBehavior dragStartBehavior = DragStartBehavior.start,
+ }) {
+ return ListView(
+ key: key,
+ scrollDirection: scrollDirection,
+ reverse: reverse,
+ controller: controller,
+ primary: primary,
+ physics: physics,
+ shrinkWrap: shrinkWrap,
+ padding: padding,
+ itemExtent: itemExtent,
+ addAutomaticKeepAlives: addAutomaticKeepAlives,
+ addRepaintBoundaries: addRepaintBoundaries,
+ addSemanticIndexes: addSemanticIndexes,
+ cacheExtent: cacheExtent,
+ semanticChildCount: semanticChildCount,
+ dragStartBehavior: dragStartBehavior,
+ children: this,
+ );
+ }
+
+ // 嵌套 gridView
+ GridView nestedGridView({
+ Key? key,
+ Axis scrollDirection = Axis.vertical,
+ bool reverse = false,
+ ScrollController? controller,
+ bool? primary,
+ ScrollPhysics? physics,
+ bool shrinkWrap = false,
+ EdgeInsetsGeometry? padding,
+ required SliverGridDelegate gridDelegate,
+ bool addAutomaticKeepAlives = true,
+ bool addRepaintBoundaries = true,
+ bool addSemanticIndexes = true,
+ double? cacheExtent,
+ int? semanticChildCount,
+ }) {
+ return GridView(
+ key: key,
+ scrollDirection: scrollDirection,
+ reverse: reverse,
+ controller: controller,
+ primary: primary,
+ physics: physics,
+ shrinkWrap: shrinkWrap,
+ padding: padding,
+ gridDelegate: gridDelegate,
+ addAutomaticKeepAlives: addAutomaticKeepAlives,
+ addRepaintBoundaries: addRepaintBoundaries,
+ addSemanticIndexes: addSemanticIndexes,
+ cacheExtent: cacheExtent,
+ semanticChildCount: semanticChildCount,
+ children: this,
+ );
+ }
+
+ // 嵌套自定义scrollerview
+ CustomScrollView nestedCustomScrollView({
+ Key? key,
+ Axis scrollDirection = Axis.vertical,
+ bool reverse = false,
+ ScrollController? controller,
+ bool? primary,
+ ScrollPhysics? physics,
+ bool shrinkWrap = false,
+ Key? center,
+ double anchor = 0.0,
+ double? cacheExtent,
+ int? semanticChildCount,
+ DragStartBehavior dragStartBehavior = DragStartBehavior.start,
+ }) {
+ return CustomScrollView(
+ key: key,
+ scrollDirection: scrollDirection,
+ reverse: reverse,
+ controller: controller,
+ primary: primary,
+ physics: physics,
+ shrinkWrap: shrinkWrap,
+ center: center,
+ anchor: anchor,
+ cacheExtent: cacheExtent,
+ semanticChildCount: semanticChildCount,
+ dragStartBehavior: dragStartBehavior,
+ slivers: this,
+ );
+ }
+}
+
+// TextSpan 嵌套扩展
+extension MultipleWidgetNestedTextSpan on List {
+ // 嵌套一个 TextSpan
+ TextSpan nestedTextSpan({
+ String? text,
+ TextStyle? style,
+ GestureRecognizer? recognizer,
+ String? semanticsLabel,
+ }) {
+ return TextSpan(
+ text: text,
+ style: style,
+ recognizer: recognizer,
+ semanticsLabel: semanticsLabel,
+ children: this,
+ );
+ }
+}
+
+// 多个widget 添加widget 扩展
+extension MultipleWidgetAddWidgetExtension on List {
+ // 添加一个 widget
+ List addWidget(Widget widget,
+ {AddWidgetAsListType addType = AddWidgetAsListType.behind,}) {
+ if (addType == AddWidgetAsListType.front) {
+ return [widget] + this;
+ }
+ return this..add(widget);
+ }
+
+ // 添加 widget 数组 然后 返回一个list
+ List addWidgetList(List widgets,
+ {AddWidgetAsListType addType = AddWidgetAsListType.behind,}) {
+ if (addType == AddWidgetAsListType.front) {
+ return widgets + this;
+ }
+ return this + widgets;
+ }
+}
+
+/// widget 嵌套 的list 扩展
+extension WidgetNestedListExtension on List {
+ // 将list转换为widget数组
+ List transformToWidgets(Widget Function(T) builder) {
+ return map((item) {
+ return builder(item);
+ }).toList();
+ }
+}
diff --git a/lib/common/extensions/single_widget_nested.dart b/lib/common/extensions/single_widget_nested.dart
new file mode 100644
index 0000000..a88e23d
--- /dev/null
+++ b/lib/common/extensions/single_widget_nested.dart
@@ -0,0 +1,674 @@
+import 'package:flutter/gestures.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_boilerplate/common/extensions/widget_nested_common.dart';
+
+// Commonly used 常用
+// Uncommonly used 不常用
+
+// 单个widget的扩展常用Widget
+extension SingleWidgetNestedCommonlyUsedExtension on Widget {
+ // 嵌套一个container
+ Container nestedContainer({
+ Key? key,
+ AlignmentGeometry? alignment,
+ EdgeInsetsGeometry? padding,
+ Color? color,
+ Decoration? decoration,
+ Decoration? foregroundDecoration,
+ double? width,
+ double? height,
+ BoxConstraints? constraints,
+ EdgeInsetsGeometry? margin,
+ Matrix4? transform,
+ Clip clipBehavior = Clip.none,
+ }) {
+ return Container(
+ key: key,
+ alignment: alignment,
+ padding: padding,
+ color: color,
+ decoration: decoration,
+ foregroundDecoration: foregroundDecoration,
+ width: width,
+ height: height,
+ constraints: constraints,
+ margin: margin,
+ transform: transform,
+ clipBehavior: clipBehavior,
+ child: this,
+ );
+ }
+
+ // 嵌套一个center
+ Center nestedCenter({
+ Key? key,
+ double? widthFactor,
+ double? heightFactor,
+ }) {
+ return Center(
+ key: key,
+ widthFactor: widthFactor,
+ heightFactor: heightFactor,
+ child: this,
+ );
+ }
+
+ // 嵌套一个padding
+ Padding nestedPadding({
+ Key? key,
+ required EdgeInsetsGeometry padding,
+ }) {
+ return Padding(
+ key: key,
+ padding: padding,
+ child: this,
+ );
+ }
+
+ // 嵌套一个Expanded
+ Expanded nestedExpanded({
+ Key? key,
+ int flex = 1,
+ }) {
+ return Expanded(
+ key: key,
+ flex: flex,
+ child: this,
+ );
+ }
+
+ // 嵌套一个TextButton
+ TextButton nestedTextButton({
+ Key? key,
+ required VoidCallback onPressed,
+ VoidCallback? onLongPress,
+ Clip clipBehavior = Clip.none,
+ FocusNode? focusNode,
+ bool autofocus = false,
+ }) {
+ return TextButton(
+ key: key,
+ onPressed: onPressed,
+ onLongPress: onLongPress,
+ clipBehavior: clipBehavior,
+ focusNode: focusNode,
+ autofocus: autofocus,
+ child: this,
+ );
+ }
+
+ // 嵌套一个Align
+ Align nestedAlign({
+ Key? key,
+ Alignment alignment = Alignment.center,
+ double? widthFactor,
+ double? heightFactor,
+ }) {
+ return Align(
+ key: key,
+ alignment: alignment,
+ widthFactor: widthFactor,
+ heightFactor: heightFactor,
+ child: this,
+ );
+ }
+
+ // 嵌套一个ClipRRect
+ ClipRRect nestedClipRRect({
+ Key? key,
+ BorderRadius borderRadius = BorderRadius.zero,
+ CustomClipper? clipper,
+ Clip clipBehavior = Clip.antiAlias,
+ }) {
+ return ClipRRect(
+ key: key,
+ borderRadius: borderRadius,
+ clipper: clipper,
+ clipBehavior: clipBehavior,
+ child: this,
+ );
+ }
+
+ // 嵌套一个ClipOval
+ ClipOval nestedClipOval({
+ Key? key,
+ BorderRadius borderRadius = BorderRadius.zero,
+ CustomClipper? clipper,
+ Clip clipBehavior = Clip.antiAlias,
+ }) {
+ return ClipOval(
+ key: key,
+ clipper: clipper,
+ clipBehavior: clipBehavior,
+ child: this,
+ );
+ }
+
+ // 嵌套一个Offstage
+ Offstage nestedOffstage({
+ Key? key,
+ bool offstage = true,
+ }) {
+ return Offstage(
+ key: key,
+ offstage: offstage,
+ child: this,
+ );
+ }
+
+ // 嵌套一个Positioned
+ Positioned nestedPositioned({
+ Key? key,
+ double? left,
+ double? top,
+ double? right,
+ double? bottom,
+ double? width,
+ double? height,
+ }) {
+ return Positioned(
+ key: key,
+ left: left,
+ top: top,
+ right: right,
+ bottom: bottom,
+ width: width,
+ height: height,
+ child: this,
+ );
+ }
+
+ // 嵌套一个SingleChildScrollView
+ SingleChildScrollView nestedSingleChildScrollView({
+ Key? key,
+ Axis scrollDirection = Axis.vertical,
+ bool reverse = false,
+ EdgeInsetsGeometry? padding,
+ bool? primary,
+ ScrollPhysics? physics,
+ ScrollController? controller,
+ DragStartBehavior dragStartBehavior = DragStartBehavior.start,
+ }) {
+ return SingleChildScrollView(
+ key: key,
+ scrollDirection: scrollDirection,
+ reverse: reverse,
+ padding: padding,
+ primary: primary,
+ physics: physics,
+ controller: controller,
+ dragStartBehavior: dragStartBehavior,
+ child: this,
+ );
+ }
+
+ // 嵌套一个Flexible
+ Flexible nestedFlexible({
+ Key? key,
+ int flex = 1,
+ FlexFit fit = FlexFit.loose,
+ }) {
+ return Flexible(
+ key: key,
+ flex: flex,
+ fit: fit,
+ child: this,
+ );
+ }
+
+ // 嵌套一个SizedBox
+ SizedBox nestedSizedBox({
+ Key? key,
+ double? width,
+ double? height,
+ }) {
+ return SizedBox(
+ key: key,
+ width: width,
+ height: height,
+ child: this,
+ );
+ }
+
+ // 嵌套一个LimitedBox
+ LimitedBox nestedLimitedBox({
+ Key? key,
+ double maxWidth = double.infinity,
+ double maxHeight = double.infinity,
+ }) {
+ return LimitedBox(
+ key: key,
+ maxWidth: maxWidth,
+ maxHeight: maxHeight,
+ child: this,
+ );
+ }
+
+ // 嵌套一个OverflowBox
+ OverflowBox nestedOverflowBox({
+ Key? key,
+ Alignment alignment = Alignment.center,
+ double? minWidth,
+ double? maxWidth,
+ double? minHeight,
+ double? maxHeight,
+ }) {
+ return OverflowBox(
+ key: key,
+ alignment: alignment,
+ minWidth: minWidth,
+ minHeight: minHeight,
+ maxWidth: maxWidth,
+ maxHeight: maxHeight,
+ child: this,
+ );
+ }
+
+ // 嵌套一个SizedOverflowBox
+ SizedOverflowBox nestedSizedOverflowBox({
+ Key? key,
+ required Size size,
+ Alignment alignment = Alignment.center,
+ }) {
+ return SizedOverflowBox(
+ key: key,
+ size: size,
+ alignment: alignment,
+ child: this,
+ );
+ }
+
+ // 嵌套一个FittedBox
+ FittedBox nestedFittedBox({
+ Key? key,
+ BoxFit fit = BoxFit.contain,
+ AlignmentGeometry alignment = Alignment.center,
+ }) {
+ return FittedBox(
+ key: key,
+ fit: fit,
+ alignment: alignment,
+ child: this,
+ );
+ }
+
+ // 嵌套一个card
+ Card nestedCard({
+ Key? key,
+ Color? color,
+ Color? shadowColor,
+ double? elevation,
+ ShapeBorder? shape,
+ bool borderOnForeground = true,
+ EdgeInsetsGeometry? margin,
+ Clip? clipBehavior,
+ bool semanticContainer = true,
+ }) {
+ return Card(
+ key: key,
+ color: color,
+ elevation: elevation,
+ shape: shape,
+ borderOnForeground: borderOnForeground,
+ margin: margin,
+ clipBehavior: clipBehavior,
+ semanticContainer: semanticContainer,
+ child: this,
+ );
+ }
+
+ // 嵌套一个 InkWell
+ InkWell nestedInkWell({
+ Key? key,
+ GestureTapCallback? onTap,
+ GestureTapCallback? onDoubleTap,
+ GestureLongPressCallback? onLongPress,
+ GestureTapDownCallback? onTapDown,
+ GestureTapCancelCallback? onTapCancel,
+ ValueChanged? onHighlightChanged,
+ ValueChanged? onHover,
+ Color? focusColor,
+ Color? hoverColor,
+ Color? highlightColor,
+ Color? splashColor,
+ InteractiveInkFeatureFactory? splashFactory,
+ double? radius,
+ BorderRadius? borderRadius,
+ ShapeBorder? customBorder,
+ bool enableFeedback = true,
+ bool excludeFromSemantics = false,
+ FocusNode? focusNode,
+ bool canRequestFocus = true,
+ ValueChanged? onFocusChange,
+ bool autofocus = false,
+ }) {
+ return InkWell(
+ key: key,
+ onTap: onTap,
+ onDoubleTap: onDoubleTap,
+ onLongPress: onLongPress,
+ onTapDown: onTapDown,
+ onTapCancel: onTapCancel,
+ onHighlightChanged: onHighlightChanged,
+ onHover: onHover,
+ focusColor: focusColor,
+ hoverColor: hoverColor,
+ highlightColor: highlightColor,
+ splashColor: splashColor,
+ splashFactory: splashFactory,
+ radius: radius,
+ borderRadius: borderRadius,
+ customBorder: customBorder,
+ enableFeedback: enableFeedback,
+ excludeFromSemantics: excludeFromSemantics,
+ focusNode: focusNode,
+ canRequestFocus: canRequestFocus,
+ onFocusChange: onFocusChange,
+ autofocus: autofocus,
+ child: this,
+ );
+ }
+
+ // 嵌套一个 SafeArea
+ SafeArea nestedSafeArea({
+ Key? key,
+ bool left = true,
+ bool top = true,
+ bool right = true,
+ bool bottom = true,
+ EdgeInsets minimum = EdgeInsets.zero,
+ bool maintainBottomViewPadding = false,
+ }) {
+ return SafeArea(
+ key: key,
+ left: left,
+ top: top,
+ right: right,
+ bottom: bottom,
+ minimum: minimum,
+ maintainBottomViewPadding: maintainBottomViewPadding,
+ child: this,
+ );
+ }
+}
+
+// 单个widget的扩展非常用Widget
+extension SingleWidgetNestedUncommonlyUsedExtension on Widget {
+ // 嵌套一个ConstrainedBox
+ ConstrainedBox nestedConstrainedBox({
+ Key? key,
+ required BoxConstraints constraints,
+ }) {
+ return ConstrainedBox(
+ key: key,
+ constraints: constraints,
+ child: this,
+ );
+ }
+
+ // 嵌套一个ClipPath
+ ClipPath nestedClipPath({
+ Key? key,
+ BorderRadius borderRadius = BorderRadius.zero,
+ CustomClipper? clipper,
+ Clip clipBehavior = Clip.antiAlias,
+ }) {
+ return ClipPath(
+ key: key,
+ clipper: clipper,
+ clipBehavior: clipBehavior,
+ child: this,
+ );
+ }
+
+ // 嵌套一个DecoratedBox
+ DecoratedBox nestedDecoratedBox({
+ Key? key,
+ required Decoration decoration,
+ DecorationPosition position = DecorationPosition.background,
+ }) {
+ return DecoratedBox(
+ key: key,
+ decoration: decoration,
+ position: position,
+ child: this,
+ );
+ }
+
+ // 嵌套一个RotatedBox
+ RotatedBox nestedRotatedBox({
+ Key? key,
+ required int quarterTurns,
+ }) {
+ return RotatedBox(
+ key: key,
+ quarterTurns: quarterTurns,
+ child: this,
+ );
+ }
+
+ // 嵌套一个UnconstrainedBox
+ UnconstrainedBox nestedUnconstrainedBox({
+ Key? key,
+ TextDirection? textDirection,
+ Alignment alignment = Alignment.center,
+ Axis? constrainedAxis,
+ }) {
+ return UnconstrainedBox(
+ key: key,
+ textDirection: textDirection,
+ alignment: alignment,
+ constrainedAxis: constrainedAxis,
+ child: this,
+ );
+ }
+
+ // 嵌套一个AnimatedAlign
+ AnimatedAlign nestedAnimatedAlign({
+ Key? key,
+ Alignment alignment = Alignment.center,
+ Curve curve = Curves.linear,
+ required Duration duration,
+ VoidCallback? onEnd,
+ }) {
+ return AnimatedAlign(
+ key: key,
+ alignment: alignment,
+ curve: curve,
+ duration: duration,
+ onEnd: onEnd,
+ child: this,
+ );
+ }
+
+ // 嵌套一个Animatedpadding
+ AnimatedPadding nestedAnimatedpadding({
+ Key? key,
+ required EdgeInsetsGeometry padding,
+ Curve curve = Curves.linear,
+ required Duration duration,
+ VoidCallback? onEnd,
+ }) {
+ return AnimatedPadding(
+ key: key,
+ padding: padding,
+ curve: curve,
+ duration: duration,
+ onEnd: onEnd,
+ child: this,
+ );
+ }
+
+ // 嵌套一个AnimatedContainer
+ AnimatedContainer nestedAnimatedContainer({
+ Key? key,
+ Alignment? alignment,
+ EdgeInsetsGeometry? padding,
+ Color? color,
+ Decoration? decoration,
+ Decoration? foregroundDecoration,
+ double? width,
+ double? height,
+ BoxConstraints? constraints,
+ EdgeInsetsGeometry? margin,
+ Matrix4? transform,
+ Curve curve = Curves.linear,
+ required Duration duration,
+ VoidCallback? onEnd,
+ }) {
+ return AnimatedContainer(
+ key: key,
+ alignment: alignment,
+ padding: padding,
+ color: color,
+ decoration: decoration,
+ foregroundDecoration: foregroundDecoration,
+ width: width,
+ height: height,
+ constraints: constraints,
+ margin: margin,
+ transform: transform,
+ curve: curve,
+ duration: duration,
+ onEnd: onEnd,
+ child: this,
+ );
+ }
+}
+
+// 单个widget 手势 嵌套 扩展
+extension WidgetGestureExtension on Widget {
+ // 单击手势
+ GestureDetector nestedTap(GestureTapCallback onTap, {Key? key}) {
+ return _nestedGestureDetector(onTap: onTap, key: key);
+ }
+
+ // 双击手势
+ GestureDetector nestedDoubleTap(GestureTapCallback onDoubleTap, {Key? key}) {
+ return _nestedGestureDetector(onDoubleTap: onDoubleTap, key: key);
+ }
+
+ // 长按手势
+ GestureDetector nestedLongPress(
+ GestureLongPressCallback onLongPress, {
+ Key? key,
+ }) {
+ return _nestedGestureDetector(onLongPress: onLongPress, key: key);
+ }
+
+ // 嵌套手势
+ GestureDetector _nestedGestureDetector({
+ Key? key,
+ GestureTapDownCallback? onTapDown,
+ GestureTapUpCallback? onTapUp,
+ GestureTapCallback? onTap,
+ GestureTapCancelCallback? onTapCancel,
+ GestureTapDownCallback? onSecondaryTapDown,
+ GestureTapUpCallback? onSecondaryTapUp,
+ GestureTapCancelCallback? onSecondaryTapCancel,
+ GestureTapCallback? onDoubleTap,
+ GestureLongPressCallback? onLongPress,
+ GestureLongPressStartCallback? onLongPressStart,
+ GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
+ GestureLongPressUpCallback? onLongPressUp,
+ GestureLongPressEndCallback? onLongPressEnd,
+ GestureDragDownCallback? onVerticalDragDown,
+ GestureDragStartCallback? onVerticalDragStart,
+ GestureDragUpdateCallback? onVerticalDragUpdate,
+ GestureDragEndCallback? onVerticalDragEnd,
+ GestureDragCancelCallback? onVerticalDragCancel,
+ GestureDragDownCallback? onHorizontalDragDown,
+ GestureDragStartCallback? onHorizontalDragStart,
+ GestureDragUpdateCallback? onHorizontalDragUpdate,
+ GestureDragEndCallback? onHorizontalDragEnd,
+ GestureDragCancelCallback? onHorizontalDragCancel,
+ GestureForcePressStartCallback? onForcePressStart,
+ GestureForcePressPeakCallback? onForcePressPeak,
+ GestureForcePressUpdateCallback? onForcePressUpdate,
+ GestureForcePressEndCallback? onForcePressEnd,
+ GestureDragDownCallback? onPanDown,
+ GestureDragStartCallback? onPanStart,
+ GestureDragUpdateCallback? onPanUpdate,
+ GestureDragEndCallback? onPanEnd,
+ GestureDragCancelCallback? onPanCancel,
+ GestureScaleStartCallback? onScaleStart,
+ GestureScaleUpdateCallback? onScaleUpdate,
+ GestureScaleEndCallback? onScaleEnd,
+ HitTestBehavior? behavior,
+ bool excludeFromSemantics = false,
+ DragStartBehavior dragStartBehavior = DragStartBehavior.start,
+ }) {
+ return GestureDetector(
+ key: key,
+ onTapDown: onTapDown,
+ onTapUp: onTapUp,
+ onTap: onTap,
+ onTapCancel: onTapCancel,
+ onSecondaryTapDown: onSecondaryTapDown,
+ onSecondaryTapUp: onSecondaryTapUp,
+ onSecondaryTapCancel: onSecondaryTapCancel,
+ onDoubleTap: onDoubleTap,
+ onLongPress: onLongPress,
+ onLongPressStart: onLongPressStart,
+ onLongPressMoveUpdate: onLongPressMoveUpdate,
+ onLongPressUp: onLongPressUp,
+ onLongPressEnd: onLongPressEnd,
+ onVerticalDragDown: onVerticalDragDown,
+ onVerticalDragStart: onVerticalDragStart,
+ onVerticalDragUpdate: onVerticalDragUpdate,
+ onVerticalDragEnd: onVerticalDragEnd,
+ onVerticalDragCancel: onVerticalDragCancel,
+ onHorizontalDragDown: onHorizontalDragDown,
+ onHorizontalDragStart: onHorizontalDragStart,
+ onHorizontalDragUpdate: onHorizontalDragUpdate,
+ onHorizontalDragEnd: onHorizontalDragEnd,
+ onHorizontalDragCancel: onHorizontalDragCancel,
+ onForcePressStart: onForcePressStart,
+ onForcePressPeak: onForcePressPeak,
+ onForcePressUpdate: onForcePressUpdate,
+ onForcePressEnd: onForcePressEnd,
+ onPanDown: onPanDown,
+ onPanStart: onPanStart,
+ onPanUpdate: onPanUpdate,
+ onPanEnd: onPanEnd,
+ onPanCancel: onPanCancel,
+ onScaleStart: onScaleStart,
+ onScaleUpdate: onScaleUpdate,
+ onScaleEnd: onScaleEnd,
+ behavior: behavior,
+ excludeFromSemantics: excludeFromSemantics,
+ dragStartBehavior: dragStartBehavior,
+ child: this,
+ );
+ }
+}
+
+// 单个widget 转 list 扩展
+extension WidgetAsListExtension on Widget {
+ // 将self转成list
+ List asList() {
+ return [this];
+ }
+
+ // 添加一个 widget 然后 返回一个list
+ List addWidgetAsList(
+ Widget widget, {
+ AddWidgetAsListType nestedType = AddWidgetAsListType.behind,
+ }) {
+ if (nestedType == AddWidgetAsListType.front) {
+ return [widget, this];
+ }
+ return [this, widget];
+ }
+
+ // 添加 widget 数组 然后 返回一个list
+ List addWidgetListAsList(
+ List widgets, {
+ AddWidgetAsListType nestedType = AddWidgetAsListType.behind,
+ }) {
+ if (nestedType == AddWidgetAsListType.front) {
+ return widgets..add(this);
+ }
+ return [this] + widgets;
+ }
+}
diff --git a/lib/common/extensions/widget_nested.dart b/lib/common/extensions/widget_nested.dart
new file mode 100644
index 0000000..02f27d1
--- /dev/null
+++ b/lib/common/extensions/widget_nested.dart
@@ -0,0 +1,3 @@
+export 'multiple_widget_nested.dart';
+export 'single_widget_nested.dart';
+export 'widget_nested_common.dart';
diff --git a/lib/common/extensions/widget_nested_common.dart b/lib/common/extensions/widget_nested_common.dart
new file mode 100644
index 0000000..55b3c38
--- /dev/null
+++ b/lib/common/extensions/widget_nested_common.dart
@@ -0,0 +1,7 @@
+// 添加widget为list的类型
+enum AddWidgetAsListType {
+ // 前面
+ front,
+ // 后面
+ behind
+}
diff --git a/lib/common/http/auth_http.dart b/lib/common/http/auth_http.dart
new file mode 100644
index 0000000..5276e30
--- /dev/null
+++ b/lib/common/http/auth_http.dart
@@ -0,0 +1,11 @@
+import 'package:flutter_boilerplate/common/http/base_http.dart';
+import 'package:flutter_boilerplate/common/http/interceptors/auth_interceptor.dart';
+
+final AuthHttp authHttp = AuthHttp();
+
+class AuthHttp extends BaseHttp {
+ @override
+ void init() {
+ interceptors.addAll([AuthorizationInterceptor()]);
+ }
+}
diff --git a/lib/common/http/base_http.dart b/lib/common/http/base_http.dart
new file mode 100644
index 0000000..2a408ec
--- /dev/null
+++ b/lib/common/http/base_http.dart
@@ -0,0 +1,38 @@
+import 'dart:convert';
+
+import 'package:dio/native_imp.dart';
+import 'package:dio_trending_api/dio_trending_api.dart';
+import 'package:flutter/foundation.dart';
+import 'package:flutter_boilerplate/common/constants/constants.dart';
+import 'package:flutter_boilerplate/common/http/interceptors/base_interceptor.dart';
+import 'package:flutter_boilerplate/common/http/interceptors/error_interceptor.dart';
+import 'package:pretty_dio_logger/pretty_dio_logger.dart';
+
+// 必须是顶层函数
+dynamic _parseAndDecode(String response) {
+ return jsonDecode(response);
+}
+
+Future parseJson(String text) {
+ return compute(_parseAndDecode, text);
+}
+
+abstract class BaseHttp extends DioForNative {
+ BaseHttp({String baseUrl = Constants.githubApiPrefix}) {
+ /// 初始化 加入app通用处理
+ (transformer as DefaultTransformer).jsonDecodeCallback = parseJson;
+ interceptors.addAll([
+ ErrorInterceptor(),
+ BaseInterceptor(baseUrl),
+ if (!kReleaseMode) ...[
+ PrettyDioLogger(
+ requestHeader: true,
+ requestBody: true,
+ )
+ ],
+ ]);
+ init();
+ }
+
+ void init();
+}
diff --git a/lib/common/http/interceptors/auth_interceptor.dart b/lib/common/http/interceptors/auth_interceptor.dart
new file mode 100644
index 0000000..0c62e25
--- /dev/null
+++ b/lib/common/http/interceptors/auth_interceptor.dart
@@ -0,0 +1,10 @@
+import 'package:dio/dio.dart';
+import 'package:flutter_boilerplate/app/app_manager.dart';
+
+class AuthorizationInterceptor extends InterceptorsWrapper {
+ @override
+ void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
+ options.headers['Authorization'] = 'Bearer ${AppManager.instance.token}';
+ super.onRequest(options, handler);
+ }
+}
diff --git a/lib/common/http/interceptors/base_interceptor.dart b/lib/common/http/interceptors/base_interceptor.dart
new file mode 100644
index 0000000..d13f21f
--- /dev/null
+++ b/lib/common/http/interceptors/base_interceptor.dart
@@ -0,0 +1,18 @@
+import 'package:dio/dio.dart';
+import 'package:flutter_boilerplate/common/constants/constants.dart';
+
+class BaseInterceptor extends InterceptorsWrapper {
+
+ BaseInterceptor(this.baseUrl);
+ final String baseUrl;
+
+ @override
+ void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
+ options
+ ..baseUrl = baseUrl
+ ..connectTimeout = Constants.timeOut * 1000 //5s
+ ..receiveTimeout = Constants.timeOut * 1000
+ ..headers.addAll(Constants.headers);
+ super.onRequest(options, handler);
+ }
+}
diff --git a/lib/common/http/interceptors/error_interceptor.dart b/lib/common/http/interceptors/error_interceptor.dart
new file mode 100644
index 0000000..ca690ab
--- /dev/null
+++ b/lib/common/http/interceptors/error_interceptor.dart
@@ -0,0 +1,14 @@
+
+import 'package:dio_trending_api/dio_trending_api.dart';
+
+class ErrorInterceptor extends InterceptorsWrapper {
+
+ @override
+ void onError(DioError err, ErrorInterceptorHandler handler) {
+ if(err.response!.statusCode == 401) {
+
+ return;
+ }
+ handler.reject(err);
+ }
+}
diff --git a/lib/common/http/login_http.dart b/lib/common/http/login_http.dart
new file mode 100644
index 0000000..3bf11eb
--- /dev/null
+++ b/lib/common/http/login_http.dart
@@ -0,0 +1,69 @@
+import 'dart:convert';
+
+import 'package:dio/dio.dart';
+import 'package:flutter_boilerplate/app/app_manager.dart';
+import 'package:flutter_boilerplate/common/http/base_http.dart';
+
+final LoginHttp loginHttp = LoginHttp();
+
+class LoginHttp extends BaseHttp {
+
+ @override
+ void init() {
+ interceptors.addAll([AuthorizationApiInterceptor()]);
+ }
+}
+
+/// App相关 API
+class AuthorizationApiInterceptor extends InterceptorsWrapper {
+
+ @override
+ void onRequest(RequestOptions options, RequestInterceptorHandler handler) async {
+ final username = AppManager.instance.username;
+ final password = AppManager.instance.password;
+ options.headers['Authorization'] = 'Basic ${base64.encode(utf8.encode('$username:$password')).trim()}';
+ options.headers['content-type'] = Headers.jsonContentType;
+ super.onRequest(options, handler);
+ }
+
+ @override
+ void onResponse(Response response, ResponseInterceptorHandler handler) {
+ handler.resolve(response);
+ }
+
+ @override
+ void onError(DioError err, ErrorInterceptorHandler handler) {
+ handler.reject(err);
+ }
+}
+
+final LogoutHttp logoutHttp = LogoutHttp();
+
+class LogoutHttp extends BaseHttp {
+
+ @override
+ void init() {
+ interceptors.addAll([AuthorizationDeleteApiInterceptor()]);
+ }
+}
+
+class AuthorizationDeleteApiInterceptor extends InterceptorsWrapper {
+
+ @override
+ void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
+ final username = AppManager.instance.username;
+ final password = AppManager.instance.password;
+ options.headers['Authorization'] = 'Basic ${base64.encode(utf8.encode('$username:$password')).trim()}';
+ super.onRequest(options, handler);
+ }
+
+ @override
+ void onResponse(Response response, ResponseInterceptorHandler handler) {
+ handler.resolve(response);
+ }
+
+ @override
+ void onError(DioError err, ErrorInterceptorHandler handler) {
+ handler.reject(err);
+ }
+}
diff --git a/lib/common/http/other_http.dart b/lib/common/http/other_http.dart
new file mode 100644
index 0000000..7819b3d
--- /dev/null
+++ b/lib/common/http/other_http.dart
@@ -0,0 +1,15 @@
+import 'package:flutter_boilerplate/common/constants/constants.dart';
+import 'package:flutter_boilerplate/common/http/base_http.dart';
+
+final OtherHttp trendingHttp = OtherHttp(Constants.githubTrendingApiPrefix);
+final OtherHttp contributionsHttp = OtherHttp(Constants.githubOtherApiPrefix);
+final OtherHttp loginHttp = OtherHttp('https://github.com');
+
+class OtherHttp extends BaseHttp {
+ OtherHttp(String baseUrl) : super(baseUrl: baseUrl);
+
+ @override
+ void init() {
+ // do something
+ }
+}
diff --git a/lib/common/utils/color_util.dart b/lib/common/utils/color_util.dart
new file mode 100644
index 0000000..f4550c6
--- /dev/null
+++ b/lib/common/utils/color_util.dart
@@ -0,0 +1,75 @@
+import 'dart:ui';
+
+class ColorUtil {
+ static const int black = 0xFF000000;
+ static const int dkgray = 0xFF444444;
+ static const int gray = 0xFF888888;
+ static const int ltgray = 0xFFCCCCCC;
+ static const int white = 0xFFFFFFFF;
+ static const int red = 0xFFFF0000;
+ static const int green = 0xFF00FF00;
+ static const int blue = 0xFF0000FF;
+ static const int yellow = 0xFFFFFF00;
+ static const int cyan = 0xFF00FFFF;
+ static const int magenta = 0xFFFF00FF;
+ static const int transparent = 0;
+
+ /// Parse the color string, and return the corresponding color-int.
+ /// If the string cannot be parsed, throws an ArgumentError
+ static int? intColor(String colorString) {
+ if (colorString.isEmpty) {
+ throw ArgumentError('Unknown color');
+ }
+ if (colorString[0] == '#') {
+ var color = int.tryParse(colorString.substring(1), radix: 16);
+ if (colorString.length == 7) {
+ // Set the alpha value
+ if(color != null) {
+ color |= 0x00000000ff000000;
+ }
+ } else if (colorString.length != 9) {
+ throw ArgumentError('Unknown color');
+ }
+ return color;
+ } else {
+ var color = sColorNameMap[(colorString.toLowerCase())];
+ if (color != null) {
+ return color;
+ } else {
+ return intColor('#' + colorString);
+ }
+ }
+ }
+
+ /// Parse the color string, and return the corresponding color.
+ /// If the string cannot be parsed, throws an ArgumentError
+ static Color color(String colorString) {
+ return Color(intColor(colorString)!);
+ }
+
+ static const sColorNameMap = {
+ 'black': black,
+ 'darkgray': dkgray,
+ 'gray': gray,
+ 'lightgray': ltgray,
+ 'white': white,
+ 'red': red,
+ 'green': green,
+ 'blue': blue,
+ 'yellow': yellow,
+ 'cyan': cyan,
+ 'magenta': magenta,
+ 'aqua': 0xFF00FFFF,
+ 'fuchsia': 0xFFFF00FF,
+ 'darkgrey': dkgray,
+ 'grey': gray,
+ 'lightgrey': ltgray,
+ 'lime': 0xFF00FF00,
+ 'maroon': 0xFF800000,
+ 'navy': 0xFF000080,
+ 'olive': 0xFF808000,
+ 'purple': 0xFF800080,
+ 'silver': 0xFFC0C0C0,
+ 'teal': 0xFF008080
+ };
+}
diff --git a/lib/common/utils/logger_utils.dart b/lib/common/utils/logger_utils.dart
new file mode 100644
index 0000000..7460cd3
--- /dev/null
+++ b/lib/common/utils/logger_utils.dart
@@ -0,0 +1,6 @@
+mixin Logger {
+ // Sample of abstract logging function
+ static void write(String text, {bool isError = false}) {
+ Future.microtask(() => print('** $text. isError: [$isError]'));
+ }
+}
diff --git a/lib/common/utils/navigator_util.dart b/lib/common/utils/navigator_util.dart
new file mode 100644
index 0000000..2ce4773
--- /dev/null
+++ b/lib/common/utils/navigator_util.dart
@@ -0,0 +1,20 @@
+import 'package:flutter/material.dart';
+
+///
+class NavigatorUtil {
+ static void push(
+ BuildContext context,
+ Widget widget, {
+ RouteSettings? settings,
+ }) {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (BuildContext context) => widget, settings: settings),
+ );
+ }
+
+ static void pop(BuildContext context) {
+ Navigator.pop(context);
+ }
+}
diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb
new file mode 100644
index 0000000..425965a
--- /dev/null
+++ b/lib/l10n/arb/app_en.arb
@@ -0,0 +1,7 @@
+{
+ "@@locale": "en",
+ "title": "Flutter Boilerplate",
+ "languages": "Languages",
+ "languagesZh": "Chinese",
+ "languagesEn": "English"
+}
diff --git a/lib/l10n/arb/app_zh.arb b/lib/l10n/arb/app_zh.arb
new file mode 100644
index 0000000..18d37c0
--- /dev/null
+++ b/lib/l10n/arb/app_zh.arb
@@ -0,0 +1,7 @@
+{
+ "@@locale": "zh",
+ "title": "Flutter模版",
+ "languages": "语言",
+ "languagesZh": "中文",
+ "languagesEn": "英文"
+}
diff --git a/lib/l10n/l10n.dart b/lib/l10n/l10n.dart
new file mode 100644
index 0000000..17c891b
--- /dev/null
+++ b/lib/l10n/l10n.dart
@@ -0,0 +1,8 @@
+import 'package:flutter/widgets.dart';
+import 'package:flutter_gen/gen_l10n/app_localizations.dart';
+
+export 'package:flutter_gen/gen_l10n/app_localizations.dart';
+
+extension AppLocalizationsX on BuildContext {
+ AppLocalizations get l10n => AppLocalizations.of(this);
+}
diff --git a/lib/main.dart b/lib/main.dart
new file mode 100644
index 0000000..78e7aee
--- /dev/null
+++ b/lib/main.dart
@@ -0,0 +1,19 @@
+import 'package:dio_trending_api/dio_trending_api.dart';
+import 'package:flutter/widgets.dart';
+import 'package:flutter_boilerplate/bootstrap.dart';
+import 'package:flutter_boilerplate/common/http/other_http.dart';
+import 'package:local_storage_trending_repository_middleware/local_storage_trending_repository_middleware.dart';
+
+Future main() async {
+ WidgetsFlutterBinding.ensureInitialized();
+
+ final trendingApi = DioTrendingApi(dio: trendingHttp);
+ final trendingRepositoryMiddleware = LocalStorageTrendingRepositoryMiddleware(
+ plugin: await SharedPreferences.getInstance(),
+ );
+
+ bootstrap(
+ trendingApi: trendingApi,
+ trendingRepositoryMiddleware: trendingRepositoryMiddleware,
+ );
+}
diff --git a/lib/modules/app/app.dart b/lib/modules/app/app.dart
new file mode 100644
index 0000000..a75a4f1
--- /dev/null
+++ b/lib/modules/app/app.dart
@@ -0,0 +1,2 @@
+export './cubit/app_cubit.dart';
+export './views/views.dart';
diff --git a/lib/modules/app/cubit/app_cubit.dart b/lib/modules/app/cubit/app_cubit.dart
new file mode 100644
index 0000000..feb3300
--- /dev/null
+++ b/lib/modules/app/cubit/app_cubit.dart
@@ -0,0 +1,19 @@
+
+import 'package:bloc/bloc.dart';
+import 'package:equatable/equatable.dart';
+import 'package:flutter/material.dart';
+
+part 'app_state.dart';
+
+class AppCubit extends Cubit {
+ AppCubit() : super(const AppState());
+
+ void setThemeColor(int themeColor) =>
+ emit(state.copyWith(themeColor: themeColor));
+
+ void setLocale(Locale locale) =>
+ emit(state.copyWith(locale: locale));
+
+ void setThemeMode(ThemeMode themeMode) =>
+ emit(state.copyWith(themeMode: themeMode));
+}
diff --git a/lib/modules/app/cubit/app_state.dart b/lib/modules/app/cubit/app_state.dart
new file mode 100644
index 0000000..a6b0816
--- /dev/null
+++ b/lib/modules/app/cubit/app_state.dart
@@ -0,0 +1,28 @@
+part of 'app_cubit.dart';
+
+class AppState extends Equatable {
+ const AppState({
+ this.themeColor = 0xFF13B9FF,
+ this.locale = const Locale('en'),
+ this.themeMode = ThemeMode.system,
+ });
+
+ final int themeColor;
+ final Locale locale;
+ final ThemeMode themeMode;
+
+ AppState copyWith({
+ int? themeColor,
+ Locale? locale,
+ ThemeMode? themeMode,
+ }) {
+ return AppState(
+ themeColor: themeColor ?? this.themeColor,
+ locale: locale ?? this.locale,
+ themeMode: themeMode ?? this.themeMode,
+ );
+ }
+
+ @override
+ List