Compare commits
No commits in common. 'sikander_work' and 'main' have entirely different histories.
sikander_w
...
main
@ -1,46 +0,0 @@
|
|||||||
# Miscellaneous
|
|
||||||
*.class
|
|
||||||
*.log
|
|
||||||
*.pyc
|
|
||||||
*.swp
|
|
||||||
.DS_Store
|
|
||||||
.atom/
|
|
||||||
.buildlog/
|
|
||||||
.history
|
|
||||||
.svn/
|
|
||||||
|
|
||||||
# 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/
|
|
||||||
|
|
||||||
# Web related
|
|
||||||
lib/generated_plugin_registrant.dart
|
|
||||||
|
|
||||||
# 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
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
# 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 and should not be manually edited.
|
|
||||||
|
|
||||||
version:
|
|
||||||
revision: 18116933e77adc82f80866c928266a5b4f1ed645
|
|
||||||
channel: stable
|
|
||||||
|
|
||||||
project_type: app
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
# This file configures the analyzer, which statically analyzes Dart code to
|
|
||||||
# check for errors, warnings, and lints.
|
|
||||||
#
|
|
||||||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
|
||||||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
|
||||||
# invoked from the command line by running `flutter analyze`.
|
|
||||||
|
|
||||||
# The following line activates a set of recommended lints for Flutter apps,
|
|
||||||
# packages, and plugins designed to encourage good coding practices.
|
|
||||||
include: package:flutter_lints/flutter.yaml
|
|
||||||
|
|
||||||
linter:
|
|
||||||
# The lint rules applied to this project can be customized in the
|
|
||||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
|
||||||
# included above or to enable additional rules. A list of all available lints
|
|
||||||
# and their documentation is published at
|
|
||||||
# https://dart-lang.github.io/linter/lints/index.html.
|
|
||||||
#
|
|
||||||
# Instead of disabling a lint rule for the entire project in the
|
|
||||||
# section below, it can also be suppressed for a single line of code
|
|
||||||
# or a specific dart file by using the `// ignore: name_of_lint` and
|
|
||||||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
|
||||||
# producing the lint.
|
|
||||||
rules:
|
|
||||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
|
||||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
|
||||||
|
|
||||||
# Additional information about this file can be found at
|
|
||||||
# https://dart.dev/guides/language/analysis-options
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
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
|
|
||||||
@ -1,68 +0,0 @@
|
|||||||
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 30
|
|
||||||
|
|
||||||
compileOptions {
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = '1.8'
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
|
||||||
main.java.srcDirs += 'src/main/kotlin'
|
|
||||||
}
|
|
||||||
|
|
||||||
defaultConfig {
|
|
||||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
||||||
applicationId "com.example.car_provider_app"
|
|
||||||
minSdkVersion 16
|
|
||||||
targetSdkVersion 30
|
|
||||||
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 '../..'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
package="com.example.car_provider_app">
|
|
||||||
<!-- Flutter needs it to communicate with the running application
|
|
||||||
to allow setting breakpoints, to provide hot reload, etc.
|
|
||||||
-->
|
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
|
||||||
</manifest>
|
|
||||||
@ -1,41 +0,0 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
package="com.example.car_provider_app">
|
|
||||||
<application
|
|
||||||
android:label="car_provider_app"
|
|
||||||
android:icon="@mipmap/ic_launcher">
|
|
||||||
<activity
|
|
||||||
android:name=".MainActivity"
|
|
||||||
android:launchMode="singleTop"
|
|
||||||
android:theme="@style/LaunchTheme"
|
|
||||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
|
||||||
android:hardwareAccelerated="true"
|
|
||||||
android:windowSoftInputMode="adjustResize">
|
|
||||||
<!-- Specifies an Android theme to apply to this Activity as soon as
|
|
||||||
the Android process has started. This theme is visible to the user
|
|
||||||
while the Flutter UI initializes. After that, this theme continues
|
|
||||||
to determine the Window background behind the Flutter UI. -->
|
|
||||||
<meta-data
|
|
||||||
android:name="io.flutter.embedding.android.NormalTheme"
|
|
||||||
android:resource="@style/NormalTheme"
|
|
||||||
/>
|
|
||||||
<!-- Displays an Android View that continues showing the launch screen
|
|
||||||
Drawable until Flutter paints its first frame, then this splash
|
|
||||||
screen fades out. A splash screen is useful to avoid any visual
|
|
||||||
gap between the end of Android's launch screen and the painting of
|
|
||||||
Flutter's first frame. -->
|
|
||||||
<meta-data
|
|
||||||
android:name="io.flutter.embedding.android.SplashScreenDrawable"
|
|
||||||
android:resource="@drawable/launch_background"
|
|
||||||
/>
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
|
||||||
<category android:name="android.intent.category.LAUNCHER"/>
|
|
||||||
</intent-filter>
|
|
||||||
</activity>
|
|
||||||
<!-- Don't delete the meta-data below.
|
|
||||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
|
||||||
<meta-data
|
|
||||||
android:name="flutterEmbedding"
|
|
||||||
android:value="2" />
|
|
||||||
</application>
|
|
||||||
</manifest>
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
package com.example.car_provider_app
|
|
||||||
|
|
||||||
import io.flutter.embedding.android.FlutterActivity
|
|
||||||
|
|
||||||
class MainActivity: FlutterActivity() {
|
|
||||||
}
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Modify this file to customize your launch splash screen -->
|
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:drawable="?android:colorBackground" />
|
|
||||||
|
|
||||||
<!-- You can insert your own image assets here -->
|
|
||||||
<!-- <item>
|
|
||||||
<bitmap
|
|
||||||
android:gravity="center"
|
|
||||||
android:src="@mipmap/launch_image" />
|
|
||||||
</item> -->
|
|
||||||
</layer-list>
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Modify this file to customize your launch splash screen -->
|
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:drawable="@android:color/white" />
|
|
||||||
|
|
||||||
<!-- You can insert your own image assets here -->
|
|
||||||
<!-- <item>
|
|
||||||
<bitmap
|
|
||||||
android:gravity="center"
|
|
||||||
android:src="@mipmap/launch_image" />
|
|
||||||
</item> -->
|
|
||||||
</layer-list>
|
|
||||||
|
Before Width: | Height: | Size: 544 B |
|
Before Width: | Height: | Size: 442 B |
|
Before Width: | Height: | Size: 721 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
|
|
||||||
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
|
||||||
<!-- Show a splash screen on the activity. Automatically removed when
|
|
||||||
Flutter draws its first frame -->
|
|
||||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
|
||||||
</style>
|
|
||||||
<!-- Theme applied to the Android Window as soon as the process has started.
|
|
||||||
This theme determines the color of the Android Window while your
|
|
||||||
Flutter UI initializes, as well as behind your Flutter UI while its
|
|
||||||
running.
|
|
||||||
|
|
||||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
|
||||||
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
|
||||||
<item name="android:windowBackground">?android:colorBackground</item>
|
|
||||||
</style>
|
|
||||||
</resources>
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
|
|
||||||
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
|
||||||
<!-- Show a splash screen on the activity. Automatically removed when
|
|
||||||
Flutter draws its first frame -->
|
|
||||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
|
||||||
</style>
|
|
||||||
<!-- Theme applied to the Android Window as soon as the process has started.
|
|
||||||
This theme determines the color of the Android Window while your
|
|
||||||
Flutter UI initializes, as well as behind your Flutter UI while its
|
|
||||||
running.
|
|
||||||
|
|
||||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
|
||||||
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
|
||||||
<item name="android:windowBackground">?android:colorBackground</item>
|
|
||||||
</style>
|
|
||||||
</resources>
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
package="com.example.car_provider_app">
|
|
||||||
<!-- Flutter needs it to communicate with the running application
|
|
||||||
to allow setting breakpoints, to provide hot reload, etc.
|
|
||||||
-->
|
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
|
||||||
</manifest>
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
buildscript {
|
|
||||||
ext.kotlin_version = '1.3.50'
|
|
||||||
repositories {
|
|
||||||
google()
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
classpath 'com.android.tools.build:gradle:4.1.0'
|
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
allprojects {
|
|
||||||
repositories {
|
|
||||||
google()
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rootProject.buildDir = '../build'
|
|
||||||
subprojects {
|
|
||||||
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
|
||||||
project.evaluationDependsOn(':app')
|
|
||||||
}
|
|
||||||
|
|
||||||
task clean(type: Delete) {
|
|
||||||
delete rootProject.buildDir
|
|
||||||
}
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
org.gradle.jvmargs=-Xmx1536M
|
|
||||||
android.useAndroidX=true
|
|
||||||
android.enableJetifier=true
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
#Fri Jun 23 08:50:38 CEST 2017
|
|
||||||
distributionBase=GRADLE_USER_HOME
|
|
||||||
distributionPath=wrapper/dists
|
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
|
||||||
zipStorePath=wrapper/dists
|
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
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"
|
|
||||||
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 43 KiB |
@ -1,34 +0,0 @@
|
|||||||
**/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
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
|
||||||
<string>en</string>
|
|
||||||
<key>CFBundleExecutable</key>
|
|
||||||
<string>App</string>
|
|
||||||
<key>CFBundleIdentifier</key>
|
|
||||||
<string>io.flutter.flutter.app</string>
|
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
|
||||||
<string>6.0</string>
|
|
||||||
<key>CFBundleName</key>
|
|
||||||
<string>App</string>
|
|
||||||
<key>CFBundlePackageType</key>
|
|
||||||
<string>FMWK</string>
|
|
||||||
<key>CFBundleShortVersionString</key>
|
|
||||||
<string>1.0</string>
|
|
||||||
<key>CFBundleSignature</key>
|
|
||||||
<string>????</string>
|
|
||||||
<key>CFBundleVersion</key>
|
|
||||||
<string>1.0</string>
|
|
||||||
<key>MinimumOSVersion</key>
|
|
||||||
<string>9.0</string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
|
|
||||||
#include "Generated.xcconfig"
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
|
|
||||||
#include "Generated.xcconfig"
|
|
||||||
@ -1,539 +0,0 @@
|
|||||||
// !$*UTF8*$!
|
|
||||||
{
|
|
||||||
archiveVersion = 1;
|
|
||||||
classes = {
|
|
||||||
};
|
|
||||||
objectVersion = 46;
|
|
||||||
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 */; };
|
|
||||||
5E9559759AEA0E089FDD9FD7 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BFCFDCCDB03A7D75BCB22117 /* Pods_Runner.framework */; };
|
|
||||||
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 */; };
|
|
||||||
/* 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 = "<group>"; };
|
|
||||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
|
||||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
|
||||||
589B0447F002C308698802BD /* 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 = "<group>"; };
|
|
||||||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
||||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
|
||||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
|
||||||
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
|
|
||||||
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
|
|
||||||
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 = "<group>"; };
|
|
||||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
|
||||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
|
||||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
|
||||||
B5D2F47A7F9A7D8C8678860A /* 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 = "<group>"; };
|
|
||||||
BFCFDCCDB03A7D75BCB22117 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
||||||
F095357B123772C701252686 /* 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 = "<group>"; };
|
|
||||||
/* End PBXFileReference section */
|
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
|
||||||
97C146EB1CF9000F007C117D /* Frameworks */ = {
|
|
||||||
isa = PBXFrameworksBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
5E9559759AEA0E089FDD9FD7 /* Pods_Runner.framework in Frameworks */,
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
/* End PBXFrameworksBuildPhase section */
|
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
|
||||||
9740EEB11CF90186004384FC /* Flutter */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
|
||||||
9740EEB21CF90195004384FC /* Debug.xcconfig */,
|
|
||||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
|
|
||||||
9740EEB31CF90195004384FC /* Generated.xcconfig */,
|
|
||||||
);
|
|
||||||
name = Flutter;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
97C146E51CF9000F007C117D = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
9740EEB11CF90186004384FC /* Flutter */,
|
|
||||||
97C146F01CF9000F007C117D /* Runner */,
|
|
||||||
97C146EF1CF9000F007C117D /* Products */,
|
|
||||||
CF641C50961DBDC07AA7AD64 /* Pods */,
|
|
||||||
C0F0C01C1B0541A9B1F8E6D5 /* Frameworks */,
|
|
||||||
);
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
97C146EF1CF9000F007C117D /* Products */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
97C146EE1CF9000F007C117D /* Runner.app */,
|
|
||||||
);
|
|
||||||
name = Products;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
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 = "<group>";
|
|
||||||
};
|
|
||||||
C0F0C01C1B0541A9B1F8E6D5 /* Frameworks */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
BFCFDCCDB03A7D75BCB22117 /* Pods_Runner.framework */,
|
|
||||||
);
|
|
||||||
name = Frameworks;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
CF641C50961DBDC07AA7AD64 /* Pods */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
589B0447F002C308698802BD /* Pods-Runner.debug.xcconfig */,
|
|
||||||
F095357B123772C701252686 /* Pods-Runner.release.xcconfig */,
|
|
||||||
B5D2F47A7F9A7D8C8678860A /* Pods-Runner.profile.xcconfig */,
|
|
||||||
);
|
|
||||||
name = Pods;
|
|
||||||
path = Pods;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
/* End PBXGroup section */
|
|
||||||
|
|
||||||
/* Begin PBXNativeTarget section */
|
|
||||||
97C146ED1CF9000F007C117D /* Runner */ = {
|
|
||||||
isa = PBXNativeTarget;
|
|
||||||
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
|
|
||||||
buildPhases = (
|
|
||||||
719FDEEFEE98A49E1AC9E990 /* [CP] Check Pods Manifest.lock */,
|
|
||||||
9740EEB61CF901F6004384FC /* Run Script */,
|
|
||||||
97C146EA1CF9000F007C117D /* Sources */,
|
|
||||||
97C146EB1CF9000F007C117D /* Frameworks */,
|
|
||||||
97C146EC1CF9000F007C117D /* Resources */,
|
|
||||||
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
|
||||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
|
||||||
C9CF36692C973DF3840AB8D9 /* [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 = 1020;
|
|
||||||
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";
|
|
||||||
};
|
|
||||||
719FDEEFEE98A49E1AC9E990 /* [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;
|
|
||||||
};
|
|
||||||
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";
|
|
||||||
};
|
|
||||||
C9CF36692C973DF3840AB8D9 /* [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;
|
|
||||||
};
|
|
||||||
/* 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 = "<group>";
|
|
||||||
};
|
|
||||||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
|
|
||||||
isa = PBXVariantGroup;
|
|
||||||
children = (
|
|
||||||
97C147001CF9000F007C117D /* Base */,
|
|
||||||
);
|
|
||||||
name = LaunchScreen.storyboard;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
/* 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 = 9.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)";
|
|
||||||
ENABLE_BITCODE = NO;
|
|
||||||
INFOPLIST_FILE = Runner/Info.plist;
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.carProviderApp;
|
|
||||||
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 = 9.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 = 9.0;
|
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
|
||||||
SDKROOT = iphoneos;
|
|
||||||
SUPPORTED_PLATFORMS = iphoneos;
|
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
|
||||||
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)";
|
|
||||||
ENABLE_BITCODE = NO;
|
|
||||||
INFOPLIST_FILE = Runner/Info.plist;
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.carProviderApp;
|
|
||||||
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)";
|
|
||||||
ENABLE_BITCODE = NO;
|
|
||||||
INFOPLIST_FILE = Runner/Info.plist;
|
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.carProviderApp;
|
|
||||||
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 */;
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Workspace
|
|
||||||
version = "1.0">
|
|
||||||
<FileRef
|
|
||||||
location = "self:">
|
|
||||||
</FileRef>
|
|
||||||
</Workspace>
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>IDEDidComputeMac32BitWarning</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>PreviewsEnabled</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@ -1,91 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Scheme
|
|
||||||
LastUpgradeVersion = "1020"
|
|
||||||
version = "1.3">
|
|
||||||
<BuildAction
|
|
||||||
parallelizeBuildables = "YES"
|
|
||||||
buildImplicitDependencies = "YES">
|
|
||||||
<BuildActionEntries>
|
|
||||||
<BuildActionEntry
|
|
||||||
buildForTesting = "YES"
|
|
||||||
buildForRunning = "YES"
|
|
||||||
buildForProfiling = "YES"
|
|
||||||
buildForArchiving = "YES"
|
|
||||||
buildForAnalyzing = "YES">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
|
||||||
BuildableName = "Runner.app"
|
|
||||||
BlueprintName = "Runner"
|
|
||||||
ReferencedContainer = "container:Runner.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildActionEntry>
|
|
||||||
</BuildActionEntries>
|
|
||||||
</BuildAction>
|
|
||||||
<TestAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
||||||
<Testables>
|
|
||||||
</Testables>
|
|
||||||
<MacroExpansion>
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
|
||||||
BuildableName = "Runner.app"
|
|
||||||
BlueprintName = "Runner"
|
|
||||||
ReferencedContainer = "container:Runner.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</MacroExpansion>
|
|
||||||
<AdditionalOptions>
|
|
||||||
</AdditionalOptions>
|
|
||||||
</TestAction>
|
|
||||||
<LaunchAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
launchStyle = "0"
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
|
||||||
debugDocumentVersioning = "YES"
|
|
||||||
debugServiceExtension = "internal"
|
|
||||||
allowLocationSimulation = "YES">
|
|
||||||
<BuildableProductRunnable
|
|
||||||
runnableDebuggingMode = "0">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
|
||||||
BuildableName = "Runner.app"
|
|
||||||
BlueprintName = "Runner"
|
|
||||||
ReferencedContainer = "container:Runner.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildableProductRunnable>
|
|
||||||
<AdditionalOptions>
|
|
||||||
</AdditionalOptions>
|
|
||||||
</LaunchAction>
|
|
||||||
<ProfileAction
|
|
||||||
buildConfiguration = "Profile"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
||||||
savedToolIdentifier = ""
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
debugDocumentVersioning = "YES">
|
|
||||||
<BuildableProductRunnable
|
|
||||||
runnableDebuggingMode = "0">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
|
||||||
BuildableName = "Runner.app"
|
|
||||||
BlueprintName = "Runner"
|
|
||||||
ReferencedContainer = "container:Runner.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildableProductRunnable>
|
|
||||||
</ProfileAction>
|
|
||||||
<AnalyzeAction
|
|
||||||
buildConfiguration = "Debug">
|
|
||||||
</AnalyzeAction>
|
|
||||||
<ArchiveAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
revealArchiveInOrganizer = "YES">
|
|
||||||
</ArchiveAction>
|
|
||||||
</Scheme>
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Workspace
|
|
||||||
version = "1.0">
|
|
||||||
<FileRef
|
|
||||||
location = "group:Runner.xcodeproj">
|
|
||||||
</FileRef>
|
|
||||||
<FileRef
|
|
||||||
location = "group:Pods/Pods.xcodeproj">
|
|
||||||
</FileRef>
|
|
||||||
</Workspace>
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>IDEDidComputeMac32BitWarning</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>PreviewsEnabled</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,122 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 564 B |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 68 B |
|
Before Width: | Height: | Size: 68 B |
|
Before Width: | Height: | Size: 68 B |
@ -1,5 +0,0 @@
|
|||||||
# 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.
|
|
||||||
@ -1,37 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
|
||||||
<dependencies>
|
|
||||||
<deployment identifier="iOS"/>
|
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
|
|
||||||
</dependencies>
|
|
||||||
<scenes>
|
|
||||||
<!--View Controller-->
|
|
||||||
<scene sceneID="EHf-IW-A2E">
|
|
||||||
<objects>
|
|
||||||
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
|
||||||
<layoutGuides>
|
|
||||||
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
|
|
||||||
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
|
|
||||||
</layoutGuides>
|
|
||||||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
||||||
<subviews>
|
|
||||||
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
|
|
||||||
</imageView>
|
|
||||||
</subviews>
|
|
||||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
|
||||||
<constraints>
|
|
||||||
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
|
|
||||||
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
|
|
||||||
</constraints>
|
|
||||||
</view>
|
|
||||||
</viewController>
|
|
||||||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
||||||
</objects>
|
|
||||||
<point key="canvasLocation" x="53" y="375"/>
|
|
||||||
</scene>
|
|
||||||
</scenes>
|
|
||||||
<resources>
|
|
||||||
<image name="LaunchImage" width="168" height="185"/>
|
|
||||||
</resources>
|
|
||||||
</document>
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
|
|
||||||
<dependencies>
|
|
||||||
<deployment identifier="iOS"/>
|
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
|
|
||||||
</dependencies>
|
|
||||||
<scenes>
|
|
||||||
<!--Flutter View Controller-->
|
|
||||||
<scene sceneID="tne-QT-ifu">
|
|
||||||
<objects>
|
|
||||||
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
|
|
||||||
<layoutGuides>
|
|
||||||
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
|
|
||||||
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
|
|
||||||
</layoutGuides>
|
|
||||||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
|
||||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
||||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
|
||||||
</view>
|
|
||||||
</viewController>
|
|
||||||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
|
||||||
</objects>
|
|
||||||
</scene>
|
|
||||||
</scenes>
|
|
||||||
</document>
|
|
||||||
@ -1,45 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
||||||
<key>CFBundleExecutable</key>
|
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
|
||||||
<key>CFBundleIdentifier</key>
|
|
||||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
|
||||||
<string>6.0</string>
|
|
||||||
<key>CFBundleName</key>
|
|
||||||
<string>car_provider_app</string>
|
|
||||||
<key>CFBundlePackageType</key>
|
|
||||||
<string>APPL</string>
|
|
||||||
<key>CFBundleShortVersionString</key>
|
|
||||||
<string>$(FLUTTER_BUILD_NAME)</string>
|
|
||||||
<key>CFBundleSignature</key>
|
|
||||||
<string>????</string>
|
|
||||||
<key>CFBundleVersion</key>
|
|
||||||
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
|
||||||
<key>LSRequiresIPhoneOS</key>
|
|
||||||
<true/>
|
|
||||||
<key>UILaunchStoryboardName</key>
|
|
||||||
<string>LaunchScreen</string>
|
|
||||||
<key>UIMainStoryboardFile</key>
|
|
||||||
<string>Main</string>
|
|
||||||
<key>UISupportedInterfaceOrientations</key>
|
|
||||||
<array>
|
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
||||||
</array>
|
|
||||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
||||||
<array>
|
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
|
||||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
||||||
</array>
|
|
||||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@ -1 +0,0 @@
|
|||||||
#import "GeneratedPluginRegistrant.h"
|
|
||||||
@ -1,156 +0,0 @@
|
|||||||
import 'dart:async';
|
|
||||||
import 'dart:convert';
|
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:car_provider_app/exceptions/api_exception.dart';
|
|
||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:http/http.dart';
|
|
||||||
import 'package:http/io_client.dart';
|
|
||||||
|
|
||||||
typedef FactoryConstructor<U> = U Function(dynamic);
|
|
||||||
|
|
||||||
class APIError {
|
|
||||||
int errorCode;
|
|
||||||
String errorMessage;
|
|
||||||
|
|
||||||
APIError(this.errorCode, this.errorMessage);
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => {'errorCode': errorCode, 'errorMessage': errorMessage};
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return jsonEncode(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
APIException _throwAPIException(Response response) {
|
|
||||||
switch (response.statusCode) {
|
|
||||||
case 400:
|
|
||||||
APIError? apiError;
|
|
||||||
if (response.body != null && response.body.isNotEmpty) {
|
|
||||||
var jsonError = jsonDecode(response.body);
|
|
||||||
apiError = APIError(jsonError['errorCode'], jsonError['errorMessage']);
|
|
||||||
}
|
|
||||||
return APIException(APIException.BAD_REQUEST, error: apiError);
|
|
||||||
case 401:
|
|
||||||
return APIException(APIException.UNAUTHORIZED);
|
|
||||||
case 403:
|
|
||||||
return APIException(APIException.FORBIDDEN);
|
|
||||||
case 404:
|
|
||||||
return APIException(APIException.NOT_FOUND);
|
|
||||||
case 500:
|
|
||||||
return APIException(APIException.INTERNAL_SERVER_ERROR);
|
|
||||||
case 444:
|
|
||||||
var downloadUrl = response.headers["location"];
|
|
||||||
return APIException(APIException.UPGRADE_REQUIRED, arguments: downloadUrl);
|
|
||||||
default:
|
|
||||||
return APIException(APIException.OTHER);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class ApiClient {
|
|
||||||
static final ApiClient _instance = ApiClient._internal();
|
|
||||||
|
|
||||||
ApiClient._internal();
|
|
||||||
|
|
||||||
factory ApiClient() => _instance;
|
|
||||||
|
|
||||||
Future<U> postJsonForObject<T, U>(FactoryConstructor<U> factoryConstructor, String url, T jsonObject,
|
|
||||||
{String? token, Map<String, dynamic>? queryParameters, Map<String, String>? headers, int retryTimes = 0}) async {
|
|
||||||
var _headers = {'Accept': 'application/json'};
|
|
||||||
if (headers != null && headers.isNotEmpty) {
|
|
||||||
_headers.addAll(headers);
|
|
||||||
}
|
|
||||||
if (!kReleaseMode) {
|
|
||||||
print("Url:$url");
|
|
||||||
print("body:$jsonObject");
|
|
||||||
}
|
|
||||||
var response = await postJsonForResponse(url, jsonObject, token: token, queryParameters: queryParameters, headers: _headers, retryTimes: retryTimes);
|
|
||||||
try {
|
|
||||||
var jsonData = jsonDecode(response.body);
|
|
||||||
return factoryConstructor(jsonData);
|
|
||||||
} catch (ex) {
|
|
||||||
print(ex);
|
|
||||||
throw APIException(APIException.BAD_RESPONSE_FORMAT, arguments: ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<Response> postJsonForResponse<T>(String url, T jsonObject, {String? token, Map<String, dynamic>? queryParameters, Map<String, String>? headers, int retryTimes = 0}) async {
|
|
||||||
String? requestBody;
|
|
||||||
if (jsonObject != null) {
|
|
||||||
requestBody = jsonEncode(jsonObject);
|
|
||||||
if (headers == null) {
|
|
||||||
headers = {'Content-Type': 'application/json'};
|
|
||||||
} else {
|
|
||||||
headers['Content-Type'] = 'application/json';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return await _postForResponse(url, requestBody, token: token, queryParameters: queryParameters, headers: headers, retryTimes: retryTimes);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<Response> _postForResponse(String url, requestBody, {String? token, Map<String, dynamic>? queryParameters, Map<String, String>? headers, int retryTimes = 0}) async {
|
|
||||||
try {
|
|
||||||
var _headers = <String, String>{};
|
|
||||||
if (token != null) {
|
|
||||||
_headers['Authorization'] = 'Bearer $token';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (headers != null && headers.isNotEmpty) {
|
|
||||||
_headers.addAll(headers);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (queryParameters != null) {
|
|
||||||
var queryString = new Uri(queryParameters: queryParameters).query;
|
|
||||||
url = url + '?' + queryString;
|
|
||||||
}
|
|
||||||
var response = await _post(Uri.parse(url), body: requestBody, headers: _headers).timeout(Duration(seconds: 60));
|
|
||||||
|
|
||||||
if (response.statusCode >= 200 && response.statusCode < 300) {
|
|
||||||
return response;
|
|
||||||
} else {
|
|
||||||
throw _throwAPIException(response);
|
|
||||||
}
|
|
||||||
} on SocketException catch (e) {
|
|
||||||
if (retryTimes > 0) {
|
|
||||||
print('will retry after 3 seconds...');
|
|
||||||
await Future.delayed(Duration(seconds: 3));
|
|
||||||
return await _postForResponse(url, requestBody, token: token, queryParameters: queryParameters, headers: headers, retryTimes: retryTimes - 1);
|
|
||||||
} else {
|
|
||||||
throw APIException(APIException.OTHER, arguments: e);
|
|
||||||
}
|
|
||||||
} on HttpException catch (e) {
|
|
||||||
if (retryTimes > 0) {
|
|
||||||
print('will retry after 3 seconds...');
|
|
||||||
await Future.delayed(Duration(seconds: 3));
|
|
||||||
return await _postForResponse(url, requestBody, token: token, queryParameters: queryParameters, headers: headers, retryTimes: retryTimes - 1);
|
|
||||||
} else {
|
|
||||||
throw APIException(APIException.OTHER, arguments: e);
|
|
||||||
}
|
|
||||||
} on TimeoutException catch (e) {
|
|
||||||
throw APIException(APIException.TIMEOUT, arguments: e);
|
|
||||||
} on ClientException catch (e) {
|
|
||||||
if (retryTimes > 0) {
|
|
||||||
print('will retry after 3 seconds...');
|
|
||||||
await Future.delayed(Duration(seconds: 3));
|
|
||||||
return await _postForResponse(url, requestBody, token: token, queryParameters: queryParameters, headers: headers, retryTimes: retryTimes - 1);
|
|
||||||
} else {
|
|
||||||
throw APIException(APIException.OTHER, arguments: e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool _certificateCheck(X509Certificate cert, String host, int port) => true;
|
|
||||||
|
|
||||||
Future<T> _withClient<T>(Future<T> Function(Client) fn) async {
|
|
||||||
var httpClient = HttpClient()..badCertificateCallback = _certificateCheck;
|
|
||||||
var client = IOClient(httpClient);
|
|
||||||
try {
|
|
||||||
return await fn(client);
|
|
||||||
} finally {
|
|
||||||
client.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<Response> _post(url, {Map<String, String>? headers, body, Encoding? encoding}) => _withClient((client) => client.post(url, headers: headers, body: body, encoding: encoding));
|
|
||||||
}
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
|
|
||||||
class LoginApiClient {
|
|
||||||
static final LoginApiClient _instance = LoginApiClient._internal();
|
|
||||||
|
|
||||||
LoginApiClient._internal();
|
|
||||||
|
|
||||||
factory LoginApiClient() => _instance;
|
|
||||||
|
|
||||||
// Future<CheckMobileAppVersionModel> checkMobileAppVersion() async {
|
|
||||||
// String url = "${ApiConsts.utilitiesRest}CheckMobileAppVersion";
|
|
||||||
// Map<String, dynamic> postParams = {};
|
|
||||||
// postParams.addAll(AppState().postParamsJson);
|
|
||||||
// return await ApiClient().postJsonForObject((json) => CheckMobileAppVersionModel.fromJson(json), url, postParams);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// Future<MemberLoginListModel?> memberLogin(String username, String password) async {
|
|
||||||
// String url = "${ApiConsts.erpRest}MemberLogin";
|
|
||||||
// Map<String, dynamic> postParams = {"P_APP_VERSION": "CS", "P_LANGUAGE": "US", "P_PASSWORD": password, "P_USER_NAME": username};
|
|
||||||
// postParams.addAll(AppState().postParamsJson);
|
|
||||||
// return await ApiClient().postJsonForObject((json) {
|
|
||||||
// GenericResponseModel responseData = GenericResponseModel.fromJson(json);
|
|
||||||
// AppState().postParamsObject?.setLogInTokenID = responseData.logInTokenID;
|
|
||||||
// return responseData.memberLoginList;
|
|
||||||
// }, url, postParams);
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
|
|
||||||
class TangheemUserApiClient {
|
|
||||||
static final TangheemUserApiClient _instance = TangheemUserApiClient._internal();
|
|
||||||
|
|
||||||
TangheemUserApiClient._internal();
|
|
||||||
|
|
||||||
factory TangheemUserApiClient() => _instance;
|
|
||||||
|
|
||||||
// Future<SurahModel> getSurahs() async {
|
|
||||||
// String url = "${ApiConsts.tangheemUsers}AlSuar_Get";
|
|
||||||
// var postParams = {};
|
|
||||||
// return await ApiClient().postJsonForObject((json) => SurahModel.fromJson(json), url, postParams);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// Future<MemberModel> getMembers() async {
|
|
||||||
// String url = "${ApiConsts.tangheemUsers}Committee_Get";
|
|
||||||
// var postParams = {};
|
|
||||||
// return await ApiClient().postJsonForObject((json) => MemberModel.fromJson(json), url, postParams);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// Future<ContentInfoModel> getContentInfo(int contentId) async {
|
|
||||||
// String url = "${ApiConsts.tangheemUsers}ContentInfo_Get";
|
|
||||||
// var postParams = {"contentTypeId": contentId};
|
|
||||||
// return await ApiClient().postJsonForObject((json) => ContentInfoModel.fromJson(json), url, postParams);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
import 'package:car_provider_app/provider/counter.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:provider/provider.dart';
|
|
||||||
|
|
||||||
class AppProvider extends StatelessWidget {
|
|
||||||
final Widget child;
|
|
||||||
|
|
||||||
AppProvider({required this.child});
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return MultiProvider(
|
|
||||||
providers: [
|
|
||||||
ChangeNotifierProvider(create: (_) => Counter()),
|
|
||||||
],
|
|
||||||
child: child,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
enum YesOrNo {
|
|
||||||
no,
|
|
||||||
yes,
|
|
||||||
}
|
|
||||||
|
|
||||||
const String icons = "assets/icons/";
|
|
||||||
const String categorySvgIcons = "assets/category/svg/";
|
|
||||||
const String svgIcons = "assets/svg/";
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
|
||||||
|
|
||||||
class AppLocalizations {
|
|
||||||
static const Iterable<LocalizationsDelegate<dynamic>> localizationsDelegates =
|
|
||||||
[
|
|
||||||
// ... app-specific localization delegate[s] here
|
|
||||||
// S.delegate,
|
|
||||||
GlobalMaterialLocalizations.delegate,
|
|
||||||
GlobalWidgetsLocalizations.delegate,
|
|
||||||
GlobalCupertinoLocalizations.delegate
|
|
||||||
];
|
|
||||||
|
|
||||||
static const List<Locale> supportedLocales = [
|
|
||||||
const Locale("en", "US")
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@ -1,46 +0,0 @@
|
|||||||
import 'package:car_provider_app/pages/dashboard/dashboard_page.dart';
|
|
||||||
import 'package:car_provider_app/pages/user/complete_profile_page.dart';
|
|
||||||
import 'package:car_provider_app/pages/user/forget_password_page.dart';
|
|
||||||
import 'package:car_provider_app/pages/user/login_verification_page.dart';
|
|
||||||
import 'package:car_provider_app/pages/user/login_verify_account_page.dart';
|
|
||||||
import 'package:car_provider_app/pages/user/profile/profile_1_page.dart';
|
|
||||||
import 'package:car_provider_app/pages/user/profile/profile_2_page.dart';
|
|
||||||
import 'package:car_provider_app/pages/user/profile/profile_3_page.dart';
|
|
||||||
import 'package:car_provider_app/pages/user/register_page.dart';
|
|
||||||
import 'package:car_provider_app/pages/user/register_selection_page.dart';
|
|
||||||
import 'package:car_provider_app/pages/user/splash_page.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class AppRoutes {
|
|
||||||
//User
|
|
||||||
static final String splash = "/splash";
|
|
||||||
static final String registerSelection = "/registerSelection";
|
|
||||||
static final String loginVerifyAccount = "/loginVerifyAccount";
|
|
||||||
static final String register = "/register";
|
|
||||||
static final String forgetPassword = "/forgetPassword";
|
|
||||||
static final String loginVerification = "/loginVerification";
|
|
||||||
static final String dashboard = "/dashboard";
|
|
||||||
static final String completeProfile = "/completeProfile";
|
|
||||||
static final String profile1 = "/profile1";
|
|
||||||
static final String profile2 = "/profile2";
|
|
||||||
static final String profile3 = "/profile3";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static final String initialRoute = splash;
|
|
||||||
|
|
||||||
static final Map<String, WidgetBuilder> routes = {
|
|
||||||
//User
|
|
||||||
splash: (context) => SplashPage(),
|
|
||||||
registerSelection: (context) => RegisterSelectionPage(),
|
|
||||||
loginVerifyAccount: (context) => LoginVerifyAccountPage(),
|
|
||||||
register: (context) => RegisterPage(),
|
|
||||||
forgetPassword: (context) => ForgetPasswordPage(),
|
|
||||||
loginVerification: (context) => LoginVerificationPage(),
|
|
||||||
dashboard: (context) => DashboardPage(),
|
|
||||||
completeProfile: (context) => CompleteProfilePage(),
|
|
||||||
profile1: (context) => Profile1Page(),
|
|
||||||
profile2: (context) => Profile2Page(),
|
|
||||||
profile3: (context) => Profile3Page(),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
|
|
||||||
import 'package:car_provider_app/api/api_client.dart';
|
|
||||||
|
|
||||||
class APIException implements Exception {
|
|
||||||
static const String BAD_REQUEST = 'api_common_bad_request';
|
|
||||||
static const String UNAUTHORIZED = 'api_common_unauthorized';
|
|
||||||
static const String FORBIDDEN = 'api_common_forbidden';
|
|
||||||
static const String NOT_FOUND = 'api_common_not_found';
|
|
||||||
static const String INTERNAL_SERVER_ERROR = 'api_common_internal_server_error';
|
|
||||||
static const String UPGRADE_REQUIRED = 'api_common_upgrade_required';
|
|
||||||
static const String BAD_RESPONSE_FORMAT = 'api_common_bad_response_format';
|
|
||||||
static const String OTHER = 'api_common_http_error';
|
|
||||||
static const String TIMEOUT = 'api_common_http_timeout';
|
|
||||||
static const String UNKNOWN = 'unexpected_error';
|
|
||||||
|
|
||||||
final String message;
|
|
||||||
final APIError? error;
|
|
||||||
final arguments;
|
|
||||||
|
|
||||||
const APIException(this.message, {this.arguments, this.error});
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => {'message': message, 'error': error, 'arguments': '$arguments'};
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return jsonEncode(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,94 +0,0 @@
|
|||||||
// DO NOT EDIT. This is code generated via package:easy_localization/generate.dart
|
|
||||||
|
|
||||||
// ignore_for_file: prefer_single_quotes
|
|
||||||
|
|
||||||
import 'dart:ui';
|
|
||||||
|
|
||||||
import 'package:easy_localization/easy_localization.dart' show AssetLoader;
|
|
||||||
|
|
||||||
class CodegenLoader extends AssetLoader{
|
|
||||||
const CodegenLoader();
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<Map<String, dynamic>> load(String fullPath, Locale locale ) {
|
|
||||||
return Future.value(mapLocales[locale.toString()]);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const Map<String,dynamic> en = {
|
|
||||||
"title": "Hello",
|
|
||||||
"msg": "Hello {} in the {} world ",
|
|
||||||
"msg_named": "{} are written in the {lang} language",
|
|
||||||
"clickMe": "Click me",
|
|
||||||
"profile": {
|
|
||||||
"reset_password": {
|
|
||||||
"label": "Reset Password",
|
|
||||||
"username": "Username",
|
|
||||||
"password": "password"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"clicked": {
|
|
||||||
"zero": "You clicked {} times!",
|
|
||||||
"one": "You clicked {} time!",
|
|
||||||
"two": "You clicked {} times!",
|
|
||||||
"few": "You clicked {} times!",
|
|
||||||
"many": "You clicked {} times!",
|
|
||||||
"other": "You clicked {} times!"
|
|
||||||
},
|
|
||||||
"amount": {
|
|
||||||
"zero": "Your amount : {} ",
|
|
||||||
"one": "Your amount : {} ",
|
|
||||||
"two": "Your amount : {} ",
|
|
||||||
"few": "Your amount : {} ",
|
|
||||||
"many": "Your amount : {} ",
|
|
||||||
"other": "Your amount : {} "
|
|
||||||
},
|
|
||||||
"gender": {
|
|
||||||
"male": "Hi man ;) ",
|
|
||||||
"female": "Hello girl :)",
|
|
||||||
"with_arg": {
|
|
||||||
"male": "Hi man ;) {}",
|
|
||||||
"female": "Hello girl :) {}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"reset_locale": "Reset Language"
|
|
||||||
};
|
|
||||||
static const Map<String,dynamic> en_US = {
|
|
||||||
"title": "Hello",
|
|
||||||
"msg": "Hello {} in the {} world ",
|
|
||||||
"msg_named": "{} are written in the {lang} language",
|
|
||||||
"clickMe": "Click me",
|
|
||||||
"profile": {
|
|
||||||
"reset_password": {
|
|
||||||
"label": "Reset Password",
|
|
||||||
"username": "Username",
|
|
||||||
"password": "password"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"clicked": {
|
|
||||||
"zero": "You clicked {} times!",
|
|
||||||
"one": "You clicked {} time!",
|
|
||||||
"two": "You clicked {} times!",
|
|
||||||
"few": "You clicked {} times!",
|
|
||||||
"many": "You clicked {} times!",
|
|
||||||
"other": "You clicked {} times!"
|
|
||||||
},
|
|
||||||
"amount": {
|
|
||||||
"zero": "Your amount : {} ",
|
|
||||||
"one": "Your amount : {} ",
|
|
||||||
"two": "Your amount : {} ",
|
|
||||||
"few": "Your amount : {} ",
|
|
||||||
"many": "Your amount : {} ",
|
|
||||||
"other": "Your amount : {} "
|
|
||||||
},
|
|
||||||
"gender": {
|
|
||||||
"male": "Hi man ;) ",
|
|
||||||
"female": "Hello girl :)",
|
|
||||||
"with_arg": {
|
|
||||||
"male": "Hi man ;) {}",
|
|
||||||
"female": "Hello girl :) {}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"reset_locale": "Reset Language"
|
|
||||||
};
|
|
||||||
static const Map<String, Map<String,dynamic>> mapLocales = {"en": en, "en_US": en_US};
|
|
||||||
}
|
|
||||||
@ -1,46 +0,0 @@
|
|||||||
import 'package:car_provider_app/config/app_provider.dart';
|
|
||||||
import 'package:car_provider_app/theme/app_theme.dart';
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:sizer/sizer.dart';
|
|
||||||
|
|
||||||
import 'config/routes.dart';
|
|
||||||
|
|
||||||
Future<void> main() async {
|
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
|
||||||
|
|
||||||
await EasyLocalization.ensureInitialized();
|
|
||||||
runApp(
|
|
||||||
EasyLocalization(
|
|
||||||
supportedLocales: [
|
|
||||||
Locale('en', 'US'),
|
|
||||||
],
|
|
||||||
path: 'resources/langs',
|
|
||||||
child: MyApp(),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
class MyApp extends StatelessWidget {
|
|
||||||
// This widget is the root of your application.
|
|
||||||
MyApp() {}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return AppProvider(
|
|
||||||
child: Sizer(
|
|
||||||
builder: (context, orientation, deviceType) {
|
|
||||||
return MaterialApp(
|
|
||||||
theme: AppTheme.getTheme(),
|
|
||||||
debugShowCheckedModeBanner: false,
|
|
||||||
localizationsDelegates: context.localizationDelegates,
|
|
||||||
supportedLocales: context.supportedLocales,
|
|
||||||
locale: context.locale,
|
|
||||||
initialRoute: AppRoutes.initialRoute,
|
|
||||||
routes: AppRoutes.routes,
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,43 +0,0 @@
|
|||||||
// To parse this JSON data, do
|
|
||||||
//
|
|
||||||
// final account = accountFromJson(jsonString);
|
|
||||||
|
|
||||||
import 'dart:convert';
|
|
||||||
|
|
||||||
import 'package:car_provider_app/models/parent_list.dart';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Account accountFromJson(String str) => Account.fromJson(json.decode(str));
|
|
||||||
|
|
||||||
String accountToJson(Account data) => json.encode(data.toJson());
|
|
||||||
|
|
||||||
class Account {
|
|
||||||
Account({
|
|
||||||
required this.parentList,
|
|
||||||
required this.selectedItem,
|
|
||||||
});
|
|
||||||
|
|
||||||
List<ParentList>? parentList;
|
|
||||||
int selectedItem;
|
|
||||||
|
|
||||||
factory Account.fromJson(Map<String, dynamic> json) => Account(
|
|
||||||
parentList: json["parentList"] == null
|
|
||||||
? null
|
|
||||||
: List<ParentList>.from(
|
|
||||||
json["parentList"].map((x) => ParentList.fromJson(x))),
|
|
||||||
selectedItem:
|
|
||||||
json["selectedItem"] == null ? null : json["selectedItem"],
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => {
|
|
||||||
"parentList": parentList == null
|
|
||||||
? null
|
|
||||||
: List<dynamic>.from(parentList!.map((x) => x.toJson())),
|
|
||||||
"selectedItem": selectedItem == null ? null : selectedItem,
|
|
||||||
};
|
|
||||||
|
|
||||||
Map<String, dynamic> toJsonData() => {
|
|
||||||
"selectedItem": selectedItem == null ? null : selectedItem,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
class ConfigModel {
|
|
||||||
ConfigModel(this.endpoint, this.organizationName);
|
|
||||||
|
|
||||||
String endpoint;
|
|
||||||
|
|
||||||
String organizationName;
|
|
||||||
|
|
||||||
factory ConfigModel.fromJson(Map<String, dynamic> json) =>
|
|
||||||
ConfigModel("", "");
|
|
||||||
|
|
||||||
// Map<String, dynamic> toJson() => _$ConfigModelToJson(this);
|
|
||||||
}
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
class ParentList {
|
|
||||||
ParentList({
|
|
||||||
required this.dbId,
|
|
||||||
required this.text,
|
|
||||||
required this.path,
|
|
||||||
required this.isSelected,
|
|
||||||
});
|
|
||||||
|
|
||||||
int dbId;
|
|
||||||
String text;
|
|
||||||
String path;
|
|
||||||
bool isSelected;
|
|
||||||
|
|
||||||
factory ParentList.fromJson(Map<String, dynamic> json) => ParentList(
|
|
||||||
dbId: json["dbId"] == null ? null : json["dbId"],
|
|
||||||
text: json["text"] == null ? null : json["text"],
|
|
||||||
path: json["path"] == null ? null : json["path"],
|
|
||||||
isSelected: false,
|
|
||||||
);
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => {
|
|
||||||
"dbId": dbId == null ? null : dbId,
|
|
||||||
"text": text == null ? null : text,
|
|
||||||
"path": path == null ? null : path,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@ -1,34 +0,0 @@
|
|||||||
///
|
|
||||||
/// This example was taken from
|
|
||||||
/// https://flutter.dev/docs/development/data-and-backend/json
|
|
||||||
///
|
|
||||||
|
|
||||||
/// This allows the `User` class to access private members in
|
|
||||||
/// the generated file. The value for this is *.g.dart, where
|
|
||||||
/// the star denotes the source file name.
|
|
||||||
|
|
||||||
/// An annotation for the code generator to know that this class needs the
|
|
||||||
/// JSON serialization logic to be generated.
|
|
||||||
|
|
||||||
class BackendResponse {
|
|
||||||
BackendResponse({required this.id, required this.isOk, required this.result});
|
|
||||||
|
|
||||||
int id;
|
|
||||||
bool isOk;
|
|
||||||
dynamic result;
|
|
||||||
|
|
||||||
/// A necessary factory constructor for creating a new User instance
|
|
||||||
/// from a map. Pass the map to the generated `_$UserFromJson()` constructor.
|
|
||||||
/// The constructor is named after the source class, in this case, User.
|
|
||||||
factory BackendResponse.fromJson(Map<String, dynamic> json) =>
|
|
||||||
BackendResponse(
|
|
||||||
id: 1,
|
|
||||||
isOk: false,
|
|
||||||
result: null,
|
|
||||||
);
|
|
||||||
//
|
|
||||||
// /// `toJson` is the convention for a class to declare support for serialization
|
|
||||||
// /// to JSON. The implementation simply calls the private, generated
|
|
||||||
// /// helper method `_$UserToJson`.
|
|
||||||
// Map<String, dynamic> toJson() => _$BackendResponseToJson(this);
|
|
||||||
}
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
class User {
|
|
||||||
int id;
|
|
||||||
|
|
||||||
User(this.id, this.userName, this.userImage, this.createdDate);
|
|
||||||
|
|
||||||
String userName;
|
|
||||||
String userImage;
|
|
||||||
String createdDate;
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
import 'package:car_provider_app/theme/colors.dart';
|
|
||||||
import 'package:car_provider_app/utils/navigator.dart';
|
|
||||||
import 'package:car_provider_app/widgets/app_bar.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/string_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/show_fill_button.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class DashboardPage extends StatelessWidget {
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
appBar: appBar(
|
|
||||||
title: "Logo/Brand",
|
|
||||||
),
|
|
||||||
drawer: showDrawer(context),
|
|
||||||
body: Container(
|
|
||||||
child: Center(
|
|
||||||
child: "Dashboard/Main Page".toText22(),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Widget showDrawer(BuildContext context) {
|
|
||||||
return Drawer(
|
|
||||||
child: Container(
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
Container(
|
|
||||||
width: double.infinity,
|
|
||||||
height: 200,
|
|
||||||
color: accentColor.withOpacity(0.3),
|
|
||||||
child: Icon(
|
|
||||||
Icons.person,
|
|
||||||
size: 80,
|
|
||||||
color: accentColor.withOpacity(0.3),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Container(
|
|
||||||
width: double.infinity,
|
|
||||||
color: accentColor.withOpacity(0.1),
|
|
||||||
padding: EdgeInsets.all(20),
|
|
||||||
child: Row(
|
|
||||||
children: [
|
|
||||||
Expanded(
|
|
||||||
child: Column(
|
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
"User Name".toText16(),
|
|
||||||
"User role or title".toText14(),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
ShowFillButton(
|
|
||||||
title: "EDIT",
|
|
||||||
onPressed: () {},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
ListTile(
|
|
||||||
leading: Icon(Icons.notifications),
|
|
||||||
title: "Notifications".toText14(),
|
|
||||||
),
|
|
||||||
ListTile(
|
|
||||||
leading: Icon(Icons.settings),
|
|
||||||
title: "General".toText14(),
|
|
||||||
),
|
|
||||||
ListTile(
|
|
||||||
leading: Icon(Icons.person),
|
|
||||||
title: "Account".toText14(),
|
|
||||||
),
|
|
||||||
ListTile(
|
|
||||||
leading: Icon(Icons.logout),
|
|
||||||
title: "Sign Out".toText14(),
|
|
||||||
onTap: () {
|
|
||||||
pop(context);
|
|
||||||
pop(context);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,61 +0,0 @@
|
|||||||
import 'package:car_provider_app/widgets/app_bar.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/int_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/string_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/show_fill_button.dart';
|
|
||||||
import 'package:car_provider_app/widgets/txt_field.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class CompleteProfilePage extends StatelessWidget {
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
appBar: appBar(title: "Sign Up"),
|
|
||||||
body: Container(
|
|
||||||
width: double.infinity,
|
|
||||||
height: double.infinity,
|
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: Padding(
|
|
||||||
padding: EdgeInsets.all(40),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
"Complete Profile".toText16(),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "First Name",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Surname",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Email",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Create Password",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Confirm Password",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Phone Number",
|
|
||||||
),
|
|
||||||
50.height,
|
|
||||||
"By creating an account you agree to our Terms of Service and Privacy Policy".toText14(),
|
|
||||||
16.height,
|
|
||||||
ShowFillButton(
|
|
||||||
title: "Continue",
|
|
||||||
width: double.infinity,
|
|
||||||
onPressed: () {},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,47 +0,0 @@
|
|||||||
import 'package:car_provider_app/widgets/app_bar.dart';
|
|
||||||
import 'package:car_provider_app/widgets/dialog/dialogs.dart';
|
|
||||||
import 'package:car_provider_app/widgets/dialog/message_dialog.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/int_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/string_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/show_fill_button.dart';
|
|
||||||
import 'package:car_provider_app/widgets/txt_field.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class ForgetPasswordPage extends StatelessWidget {
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
appBar: appBar(title: "Forget Password"),
|
|
||||||
body: Container(
|
|
||||||
width: double.infinity,
|
|
||||||
height: double.infinity,
|
|
||||||
padding: EdgeInsets.all(40),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
"Retrieve Password".toText16(),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Phone Number",
|
|
||||||
),
|
|
||||||
TxtField(
|
|
||||||
hint: "Email",
|
|
||||||
),
|
|
||||||
40.height,
|
|
||||||
ShowFillButton(
|
|
||||||
title: "Continue",
|
|
||||||
width: double.infinity,
|
|
||||||
onPressed: () {
|
|
||||||
showMDialog(
|
|
||||||
context,
|
|
||||||
child: MessageDialog(
|
|
||||||
title: "New Password sent used",
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,88 +0,0 @@
|
|||||||
import 'package:car_provider_app/config/constants.dart';
|
|
||||||
import 'package:car_provider_app/config/routes.dart';
|
|
||||||
import 'package:car_provider_app/utils/navigator.dart';
|
|
||||||
import 'package:car_provider_app/utils/utils.dart';
|
|
||||||
import 'package:car_provider_app/widgets/app_bar.dart';
|
|
||||||
import 'package:car_provider_app/widgets/button/show_image_button.dart';
|
|
||||||
import 'package:car_provider_app/widgets/dialog/dialogs.dart';
|
|
||||||
import 'package:car_provider_app/widgets/dialog/message_dialog.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/int_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/string_extensions.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class LoginVerificationPage extends StatelessWidget {
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
appBar: appBar(title: "Log In"),
|
|
||||||
body: Container(
|
|
||||||
width: double.infinity,
|
|
||||||
height: double.infinity,
|
|
||||||
padding: EdgeInsets.all(40),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
"Verify Account".toText16(),
|
|
||||||
mFlex(2),
|
|
||||||
Row(
|
|
||||||
children: [
|
|
||||||
Expanded(
|
|
||||||
child: ShowImageButton(
|
|
||||||
onClick: () {
|
|
||||||
showMDialog(
|
|
||||||
context,
|
|
||||||
child: MessageDialog(
|
|
||||||
title: "Account Verified",
|
|
||||||
onClick: () {
|
|
||||||
pop(context);
|
|
||||||
navigateWithName(context, AppRoutes.dashboard);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
title: 'Finger Print',
|
|
||||||
icon: icons + "ic_fingerprint.png",
|
|
||||||
),
|
|
||||||
),
|
|
||||||
20.height,
|
|
||||||
Expanded(
|
|
||||||
child: ShowImageButton(
|
|
||||||
onClick: () {
|
|
||||||
navigateWithName(context, AppRoutes.dashboard);
|
|
||||||
},
|
|
||||||
title: 'Face Recognition',
|
|
||||||
icon: icons + "ic_face_id.png",
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
40.height,
|
|
||||||
Row(
|
|
||||||
children: [
|
|
||||||
Expanded(
|
|
||||||
child: ShowImageButton(
|
|
||||||
onClick: () {
|
|
||||||
navigateWithName(context, AppRoutes.dashboard);
|
|
||||||
},
|
|
||||||
title: 'With SMS',
|
|
||||||
icon: icons + "ic_sms.png",
|
|
||||||
),
|
|
||||||
),
|
|
||||||
20.height,
|
|
||||||
Expanded(
|
|
||||||
child: ShowImageButton(
|
|
||||||
onClick: () {
|
|
||||||
navigateWithName(context, AppRoutes.dashboard);
|
|
||||||
},
|
|
||||||
title: 'With Whatsapp',
|
|
||||||
icon: icons + "ic_whatsapp.png",
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
mFlex(10),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,91 +0,0 @@
|
|||||||
import 'package:car_provider_app/config/constants.dart';
|
|
||||||
import 'package:car_provider_app/config/routes.dart';
|
|
||||||
import 'package:car_provider_app/utils/navigator.dart';
|
|
||||||
import 'package:car_provider_app/utils/utils.dart';
|
|
||||||
import 'package:car_provider_app/widgets/app_bar.dart';
|
|
||||||
import 'package:car_provider_app/widgets/button/show_image_button.dart';
|
|
||||||
import 'package:car_provider_app/widgets/dialog/dialogs.dart';
|
|
||||||
import 'package:car_provider_app/widgets/dialog/message_dialog.dart';
|
|
||||||
import 'package:car_provider_app/widgets/dialog/otp_dialog.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/int_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/string_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/txt_field.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class LoginVerifyAccountPage extends StatelessWidget {
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
appBar: appBar(title: "Log In"),
|
|
||||||
body: Container(
|
|
||||||
width: double.infinity,
|
|
||||||
height: double.infinity,
|
|
||||||
padding: EdgeInsets.all(40),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
"Verify Account".toText16(),
|
|
||||||
mFlex(1),
|
|
||||||
TxtField(
|
|
||||||
hint: "Enter Phone number to verify",
|
|
||||||
),
|
|
||||||
mFlex(2),
|
|
||||||
Row(
|
|
||||||
children: [
|
|
||||||
Expanded(
|
|
||||||
child: ShowImageButton(
|
|
||||||
onClick: () {
|
|
||||||
showMDialog(context, child: OtpDialog(
|
|
||||||
onClick: () {
|
|
||||||
pop(context);
|
|
||||||
delay(300).then(
|
|
||||||
(value) => showMDialog(
|
|
||||||
context,
|
|
||||||
child: MessageDialog(
|
|
||||||
title: "Phone Number Verified",
|
|
||||||
onClick: () {
|
|
||||||
navigateWithName(context, AppRoutes.profile1);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
));
|
|
||||||
},
|
|
||||||
title: 'With SMS',
|
|
||||||
icon: icons + "ic_sms.png",
|
|
||||||
),
|
|
||||||
),
|
|
||||||
20.height,
|
|
||||||
Expanded(
|
|
||||||
child: ShowImageButton(
|
|
||||||
onClick: () {
|
|
||||||
showMDialog(context, child: OtpDialog(
|
|
||||||
onClick: () {
|
|
||||||
pop(context);
|
|
||||||
delay(300).then(
|
|
||||||
(value) => showMDialog(
|
|
||||||
context,
|
|
||||||
child: MessageDialog(
|
|
||||||
title: "Phone Number Verified",
|
|
||||||
onClick: () {
|
|
||||||
navigateWithName(context, AppRoutes.profile1);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
));
|
|
||||||
},
|
|
||||||
title: 'With Whatsapp',
|
|
||||||
icon: icons + "ic_whatsapp.png",
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
mFlex(10),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,70 +0,0 @@
|
|||||||
import 'package:car_provider_app/config/routes.dart';
|
|
||||||
import 'package:car_provider_app/utils/navigator.dart';
|
|
||||||
import 'package:car_provider_app/widgets/app_bar.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/int_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/string_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/show_fill_button.dart';
|
|
||||||
import 'package:car_provider_app/widgets/txt_field.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class Profile1Page extends StatelessWidget {
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
appBar: appBar(title: "Sign Up"),
|
|
||||||
body: Container(
|
|
||||||
width: double.infinity,
|
|
||||||
height: double.infinity,
|
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: Padding(
|
|
||||||
padding: EdgeInsets.all(40),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
"Complete Profile 1/3".toText16(),
|
|
||||||
"User Information".toText14(),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Provider",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "First Name",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Surname",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Email",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Create Password",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Confirm Password",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Phone Number",
|
|
||||||
),
|
|
||||||
50.height,
|
|
||||||
"By creating an account you agree to our Terms of Service and Privacy Policy".toText14(),
|
|
||||||
16.height,
|
|
||||||
ShowFillButton(
|
|
||||||
title: "Continue",
|
|
||||||
width: double.infinity,
|
|
||||||
onPressed: () {
|
|
||||||
navigateWithName(context, AppRoutes.profile2);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,60 +0,0 @@
|
|||||||
import 'package:car_provider_app/config/routes.dart';
|
|
||||||
import 'package:car_provider_app/utils/navigator.dart';
|
|
||||||
import 'package:car_provider_app/utils/utils.dart';
|
|
||||||
import 'package:car_provider_app/widgets/app_bar.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/int_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/string_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/show_fill_button.dart';
|
|
||||||
import 'package:car_provider_app/widgets/txt_field.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class Profile2Page extends StatelessWidget {
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
appBar: appBar(title: "Sign Up"),
|
|
||||||
body: Container(
|
|
||||||
width: double.infinity,
|
|
||||||
height: double.infinity,
|
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: Padding(
|
|
||||||
padding: EdgeInsets.all(40),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
"Complete Profile 2/3".toText16(),
|
|
||||||
"licenses & certificatoins".toText14(),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Commercial Record N.O",
|
|
||||||
// isButtonEnable: true,
|
|
||||||
isNeedFilterButton: true,
|
|
||||||
postfixData: Icons.attach_file,
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Chamber of Commerce N.O",
|
|
||||||
isNeedFilterButton: true,
|
|
||||||
postfixData: Icons.attach_file,
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "VET Certificate N.O",
|
|
||||||
isNeedFilterButton: true,
|
|
||||||
postfixData: Icons.attach_file,
|
|
||||||
),
|
|
||||||
30.height,
|
|
||||||
ShowFillButton(
|
|
||||||
title: "Save",
|
|
||||||
width: double.infinity,
|
|
||||||
onPressed: () {
|
|
||||||
navigateWithName(context, AppRoutes.profile3);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
import 'package:car_provider_app/widgets/app_bar.dart';
|
|
||||||
import 'package:car_provider_app/widgets/dialog/dialogs.dart';
|
|
||||||
import 'package:car_provider_app/widgets/dialog/message_dialog.dart';
|
|
||||||
import 'package:car_provider_app/widgets/dropdown/dropdow_field.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/int_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/string_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/show_fill_button.dart';
|
|
||||||
import 'package:car_provider_app/widgets/txt_field.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class Profile3Page extends StatelessWidget {
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
appBar: appBar(title: "Sign Up"),
|
|
||||||
body: Container(
|
|
||||||
width: double.infinity,
|
|
||||||
height: double.infinity,
|
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: Padding(
|
|
||||||
padding: EdgeInsets.all(40),
|
|
||||||
child: Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
"Complete Profile 3/3".toText16(),
|
|
||||||
"Branch Info and Services".toText14(),
|
|
||||||
12.height,
|
|
||||||
DropdownField(
|
|
||||||
hint: "Country",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
DropdownField(
|
|
||||||
hint: "City",
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Address",
|
|
||||||
maxLines: 5,
|
|
||||||
),
|
|
||||||
12.height,
|
|
||||||
"Select Location Map".toText14(),
|
|
||||||
12.height,
|
|
||||||
Image.asset("assets/images/bn_map.png"),
|
|
||||||
50.height,
|
|
||||||
ShowFillButton(
|
|
||||||
title: "Save",
|
|
||||||
width: double.infinity,
|
|
||||||
onPressed: () {
|
|
||||||
showMDialog(context,
|
|
||||||
child: MessageDialog(
|
|
||||||
title: "Profile Completed",
|
|
||||||
));
|
|
||||||
},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,44 +0,0 @@
|
|||||||
import 'package:car_provider_app/widgets/app_bar.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/int_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/string_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/show_fill_button.dart';
|
|
||||||
import 'package:car_provider_app/widgets/txt_field.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class RegisterPage extends StatelessWidget {
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
appBar: appBar(title: "Sign Up"),
|
|
||||||
body: Container(
|
|
||||||
width: double.infinity,
|
|
||||||
height: double.infinity,
|
|
||||||
padding: EdgeInsets.all(40),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
"Enter Phone Number".toText16(),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Enter Phone number to Register",
|
|
||||||
),
|
|
||||||
TxtField(
|
|
||||||
hint: "Enter Phone number to Register",
|
|
||||||
),
|
|
||||||
40.height,
|
|
||||||
"Or Enter Email".toText16(),
|
|
||||||
12.height,
|
|
||||||
TxtField(
|
|
||||||
hint: "Enter Email to Register",
|
|
||||||
),
|
|
||||||
50.height,
|
|
||||||
ShowFillButton(
|
|
||||||
title: "Continue",
|
|
||||||
width: double.infinity,
|
|
||||||
onPressed: () {},
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
import 'package:car_provider_app/config/routes.dart';
|
|
||||||
import 'package:car_provider_app/utils/navigator.dart';
|
|
||||||
import 'package:car_provider_app/utils/utils.dart';
|
|
||||||
import 'package:car_provider_app/widgets/app_bar.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/int_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/string_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/show_fill_button.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class RegisterSelectionPage extends StatelessWidget {
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
appBar: appBar(title: "Log In"),
|
|
||||||
body: Container(
|
|
||||||
width: double.infinity,
|
|
||||||
height: double.infinity,
|
|
||||||
padding: EdgeInsets.all(40),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
"Welcome Message".toText16(),
|
|
||||||
mFlex(1),
|
|
||||||
ShowFillButton(
|
|
||||||
title: "Log In",
|
|
||||||
width: double.infinity,
|
|
||||||
onPressed: () {
|
|
||||||
navigateWithName(context, AppRoutes.loginVerifyAccount);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
20.height,
|
|
||||||
ShowFillButton(
|
|
||||||
title: "Sign Up",
|
|
||||||
width: double.infinity,
|
|
||||||
onPressed: () {
|
|
||||||
navigateWithName(context, AppRoutes.register);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
20.height,
|
|
||||||
ShowFillButton(
|
|
||||||
title: "Forget Password",
|
|
||||||
width: double.infinity,
|
|
||||||
onPressed: () {
|
|
||||||
navigateWithName(context, AppRoutes.forgetPassword);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
mFlex(2),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
import 'package:car_provider_app/config/routes.dart';
|
|
||||||
import 'package:car_provider_app/utils/navigator.dart';
|
|
||||||
import 'package:car_provider_app/utils/utils.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/string_extensions.dart';
|
|
||||||
import 'package:car_provider_app/widgets/extensions/widget_extensions.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class SplashPage extends StatelessWidget {
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Scaffold(
|
|
||||||
body: Container(
|
|
||||||
width: double.infinity,
|
|
||||||
height: double.infinity,
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
mFlex(5),
|
|
||||||
"Logo".toText32(isBold: true),
|
|
||||||
mFlex(3),
|
|
||||||
"First Time Log In".toText24().onPress(() {
|
|
||||||
navigateWithName(context, AppRoutes.registerSelection);
|
|
||||||
}),
|
|
||||||
mFlex(1),
|
|
||||||
"Already Signed Up and Logged In".toText24().onPress(() {
|
|
||||||
navigateWithName(context, AppRoutes.loginVerification);
|
|
||||||
}),
|
|
||||||
mFlex(5),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class Counter with ChangeNotifier, DiagnosticableTreeMixin {
|
|
||||||
int _count = 0;
|
|
||||||
|
|
||||||
int get count => _count;
|
|
||||||
|
|
||||||
void increment() {
|
|
||||||
_count++;
|
|
||||||
notifyListeners();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Makes `Counter` readable inside the devtools by listing all of its properties
|
|
||||||
@override
|
|
||||||
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
|
|
||||||
super.debugFillProperties(properties);
|
|
||||||
properties.add(IntProperty('count', count));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,127 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
import 'dart:io';
|
|
||||||
import 'package:car_provider_app/models/response_models.dart';
|
|
||||||
import 'package:car_provider_app/services/secure_storage.dart';
|
|
||||||
import 'package:http/http.dart';
|
|
||||||
import 'package:injector/injector.dart';
|
|
||||||
|
|
||||||
import 'http_service.dart';
|
|
||||||
import 'network_service.dart';
|
|
||||||
|
|
||||||
abstract class IBackendApiService {
|
|
||||||
Future<BackendResponse> getUnauthenticatedAPI(String route);
|
|
||||||
|
|
||||||
Future<BackendResponse> getAuthenticatedAPI(String route);
|
|
||||||
|
|
||||||
Future<BackendResponse> postUnauthenticatedAPI(
|
|
||||||
String route, String dataAsJson);
|
|
||||||
|
|
||||||
Future<BackendResponse> postAuthenticatedAPI(String route, String dataAsJson);
|
|
||||||
|
|
||||||
Future<BackendResponse> deleteAuthenticatedAPI(String route, String id);
|
|
||||||
}
|
|
||||||
|
|
||||||
class BackendApiService implements IBackendApiService {
|
|
||||||
static String _homeUrl = "https://check.revotec.eu/check2/";
|
|
||||||
static String _serverApiBaseUrl = _homeUrl + "mapi/v1/";
|
|
||||||
|
|
||||||
static String get homeUrl => _homeUrl;
|
|
||||||
|
|
||||||
final ISecureStorage _secureStorage =
|
|
||||||
Injector.appInstance.getDependency<ISecureStorage>();
|
|
||||||
final IHttpService _httpService =
|
|
||||||
Injector.appInstance.getDependency<IHttpService>();
|
|
||||||
|
|
||||||
///internal helper functions which executes the given api call
|
|
||||||
///and wraps the response
|
|
||||||
Future<BackendResponse> _callApi(Future<dynamic> callback) async {
|
|
||||||
Response response;
|
|
||||||
try {
|
|
||||||
//execute future
|
|
||||||
response = await callback;
|
|
||||||
//check response code, and if not ok return isOk = false
|
|
||||||
//200 for Get
|
|
||||||
//201 for Post
|
|
||||||
|
|
||||||
// print("res121: " +
|
|
||||||
// response.statusCode.toString() +
|
|
||||||
// " Body:" +
|
|
||||||
// response.body.toString());
|
|
||||||
//if delete request sent so server is returning 204 in case of success.
|
|
||||||
if (response.statusCode == 204)
|
|
||||||
return BackendResponse(id: 1, isOk: true, result: null);
|
|
||||||
|
|
||||||
if (response.statusCode != 200 && response.statusCode != 201)
|
|
||||||
return BackendResponse(id: -1, isOk: false, result: null);
|
|
||||||
//if response code is good then parse message and return parsed response
|
|
||||||
return BackendResponse.fromJson(json.decode(response.body));
|
|
||||||
//return BackendResponse.fromJson(dioResponse.body);
|
|
||||||
} catch (e) {
|
|
||||||
return BackendResponse(id: -1, isOk: false, result: null);
|
|
||||||
// try {
|
|
||||||
// return BackendResponse.fromJson(json.decode(response.body));
|
|
||||||
// } catch (e) {
|
|
||||||
// return BackendResponse(id:-1, isOk:false,result: null);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<BackendResponse> getAuthenticatedAPI(String route) async {
|
|
||||||
await checkConnection();
|
|
||||||
final token = await _secureStorage.readBearerToken();
|
|
||||||
return _callApi(_httpService.get(_serverApiBaseUrl + route, headers: {
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
'Accept': '*/*',
|
|
||||||
HttpHeaders.authorizationHeader: "Bearer $token"
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<BackendResponse> getUnauthenticatedAPI(String route) async {
|
|
||||||
await checkConnection();
|
|
||||||
return _callApi(_httpService.get(_serverApiBaseUrl + route,
|
|
||||||
headers: {'Content-Type': 'application/json', 'Accept': '*/*'}));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<BackendResponse> postAuthenticatedAPI(
|
|
||||||
String route, String dataAsJson) async {
|
|
||||||
await checkConnection();
|
|
||||||
final token = await _secureStorage.readBearerToken();
|
|
||||||
// print("res121: " + _serverApiBaseUrl + route);
|
|
||||||
return _callApi(_httpService
|
|
||||||
.post(_serverApiBaseUrl + route, body: dataAsJson, headers: {
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
'Accept': '*/*',
|
|
||||||
HttpHeaders.authorizationHeader: "Bearer $token"
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<BackendResponse> postUnauthenticatedAPI(
|
|
||||||
String route, String dataAsJson) async {
|
|
||||||
await checkConnection();
|
|
||||||
return _callApi(_httpService.post(_serverApiBaseUrl + route,
|
|
||||||
body: dataAsJson, headers: {'Content-Type': 'application/json'}));
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> checkConnection() async {
|
|
||||||
if (!(await Injector.appInstance
|
|
||||||
.getDependency<INetworkService>()
|
|
||||||
.isHostAvailable(_homeUrl))) throw NetworkException();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<BackendResponse> deleteAuthenticatedAPI(
|
|
||||||
String route, String id) async {
|
|
||||||
await checkConnection();
|
|
||||||
final token = await _secureStorage.readBearerToken();
|
|
||||||
return _callApi(
|
|
||||||
_httpService.delete(_serverApiBaseUrl + route + "/" + id, headers: {
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
'Accept': '*/*',
|
|
||||||
HttpHeaders.authorizationHeader: "Bearer $token"
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,180 +0,0 @@
|
|||||||
/*
|
|
||||||
import 'dart:io' show Platform;
|
|
||||||
import 'package:firebase_messaging/firebase_messaging.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
|
||||||
|
|
||||||
abstract class IFirebaseService {
|
|
||||||
Future<String> get token;
|
|
||||||
|
|
||||||
Future<dynamic> backgroundMessageHandler(Map<String, dynamic> message);
|
|
||||||
|
|
||||||
Future<dynamic> messageHandler(Map<String, dynamic> message);
|
|
||||||
|
|
||||||
Future<dynamic> onLaunch(Map<String, dynamic> message);
|
|
||||||
|
|
||||||
Future<dynamic> onResume(Map<String, dynamic> message);
|
|
||||||
|
|
||||||
void subscribeForPromotions();
|
|
||||||
|
|
||||||
void unsubscribeFromPromotions();
|
|
||||||
}
|
|
||||||
|
|
||||||
//https://medium.com/@SebastianEngel/easy-push-notifications-with-flutter-and-firebase-cloud-messaging-d96084f5954f
|
|
||||||
class FirebaseService implements IFirebaseService {
|
|
||||||
FirebaseMessaging _firebaseMessaging;
|
|
||||||
|
|
||||||
FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin;
|
|
||||||
|
|
||||||
FirebaseService() {.
|
|
||||||
_firebaseMessaging = FirebaseMessaging();
|
|
||||||
|
|
||||||
//https://github.com/FirebaseExtended/flutterfire/issues/1695
|
|
||||||
_firebaseMessaging.configure(
|
|
||||||
onMessage: messageHandler,
|
|
||||||
onBackgroundMessage:
|
|
||||||
Platform.isAndroid ? myBackgroundMessageHandler : null,
|
|
||||||
onLaunch: onLaunch,
|
|
||||||
onResume: onResume,
|
|
||||||
);
|
|
||||||
|
|
||||||
//monitor firebase token changes
|
|
||||||
//https://firebase.google.com/docs/cloud-messaging/android/client#sample-register
|
|
||||||
///The registration token may change when:
|
|
||||||
//
|
|
||||||
//The app deletes Instance ID
|
|
||||||
//The app is restored on a new device
|
|
||||||
//The user uninstalls/reinstall the app
|
|
||||||
//The user clears app data.
|
|
||||||
///
|
|
||||||
|
|
||||||
//for the first release we don't care about token refreshes
|
|
||||||
/*Stream<String> fcmStream = _firebaseMessaging.onTokenRefresh;
|
|
||||||
fcmStream.listen((token) {
|
|
||||||
|
|
||||||
});*/
|
|
||||||
|
|
||||||
//ios specific settings
|
|
||||||
//taken from https://github.com/FirebaseExtended/flutterfire/blob/master/packages/firebase_messaging/example/lib/main.dart
|
|
||||||
_firebaseMessaging.requestNotificationPermissions(
|
|
||||||
const IosNotificationSettings(
|
|
||||||
sound: true, badge: true, alert: true, provisional: true));
|
|
||||||
_firebaseMessaging.onIosSettingsRegistered
|
|
||||||
.listen((IosNotificationSettings settings) {
|
|
||||||
print("Settings registered: $settings");
|
|
||||||
});
|
|
||||||
|
|
||||||
var initializationSettingsAndroid =
|
|
||||||
AndroidInitializationSettings('app_icon');
|
|
||||||
var initializationSettingsIOS =
|
|
||||||
IOSInitializationSettings(onDidReceiveLocalNotification: onDidReceiveLocalNotification);
|
|
||||||
var initializationSettings = InitializationSettings(
|
|
||||||
initializationSettingsAndroid, initializationSettingsIOS);
|
|
||||||
flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin();
|
|
||||||
flutterLocalNotificationsPlugin.initialize(initializationSettings,
|
|
||||||
onSelectNotification: selectNotification);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<dynamic> onDidReceiveLocalNotification(int id, String title, String body, String payload) async{
|
|
||||||
var androidPlatformChannelSpecifics = AndroidNotificationDetails(
|
|
||||||
'new_message_channel_id',
|
|
||||||
'Neue Nachricht',
|
|
||||||
'Channel für neue Nachrichten',
|
|
||||||
importance: Importance.Max,
|
|
||||||
priority: Priority.High,
|
|
||||||
ticker: 'ticker');
|
|
||||||
var iOSPlatformChannelSpecifics = IOSNotificationDetails();
|
|
||||||
var platformChannelSpecifics = NotificationDetails(
|
|
||||||
androidPlatformChannelSpecifics, iOSPlatformChannelSpecifics);
|
|
||||||
await flutterLocalNotificationsPlugin.show(
|
|
||||||
0,
|
|
||||||
title,
|
|
||||||
body,
|
|
||||||
platformChannelSpecifics);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future backgroundMessageHandler(Map<String, dynamic> message) async {
|
|
||||||
await myBackgroundMessageHandler(message);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future messageHandler(Map<String, dynamic> message) async {
|
|
||||||
print("onMessage: $message");
|
|
||||||
|
|
||||||
// initialise the plugin. app_icon needs to be a added as a drawable resource to the Android head project
|
|
||||||
|
|
||||||
var androidPlatformChannelSpecifics = AndroidNotificationDetails(
|
|
||||||
'new_message_channel_id',
|
|
||||||
'Neue Nachricht',
|
|
||||||
'Channel für neue Nachrichten',
|
|
||||||
importance: Importance.Max,
|
|
||||||
priority: Priority.High,
|
|
||||||
ticker: 'ticker');
|
|
||||||
var iOSPlatformChannelSpecifics = IOSNotificationDetails();
|
|
||||||
var platformChannelSpecifics = NotificationDetails(
|
|
||||||
androidPlatformChannelSpecifics, iOSPlatformChannelSpecifics);
|
|
||||||
|
|
||||||
if(Platform.isAndroid) {
|
|
||||||
await flutterLocalNotificationsPlugin.show(
|
|
||||||
0,
|
|
||||||
message["notification"]["title"],
|
|
||||||
message["notification"]["body"],
|
|
||||||
platformChannelSpecifics);
|
|
||||||
}else if(Platform.isIOS){
|
|
||||||
await flutterLocalNotificationsPlugin.show(
|
|
||||||
0,
|
|
||||||
message["aps"]["alert"]["title"],
|
|
||||||
message["aps"]["alert"]["body"],
|
|
||||||
platformChannelSpecifics);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Future selectNotification(String payload) async {
|
|
||||||
if (payload != null) {
|
|
||||||
debugPrint('notification payload: ' + payload);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future onLaunch(Map<String, dynamic> message) async {
|
|
||||||
print("onLaunch: $message");
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future onResume(Map<String, dynamic> message) async {
|
|
||||||
print("onResume: $message");
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<String> get token => _firebaseMessaging.getToken();
|
|
||||||
|
|
||||||
@override
|
|
||||||
void subscribeForPromotions() {
|
|
||||||
_firebaseMessaging.subscribeToTopic("promotions");
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void unsubscribeFromPromotions() {
|
|
||||||
_firebaseMessaging.unsubscribeFromTopic("promotions");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<dynamic> myBackgroundMessageHandler(Map<String, dynamic> message) {
|
|
||||||
debugPrint("BACKGROUND MESSAGE RECEIVED");
|
|
||||||
print("BACKGROUND MESSAGE RECEIVED");
|
|
||||||
return Future.value(() => true);
|
|
||||||
|
|
||||||
/*if (message.containsKey('data')) {
|
|
||||||
// Handle data message
|
|
||||||
final dynamic data = message['data'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (message.containsKey('notification')) {
|
|
||||||
// Handle notification message
|
|
||||||
final dynamic notification = message['notification'];
|
|
||||||
}*/
|
|
||||||
|
|
||||||
// Or do other work.
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
@ -1,36 +0,0 @@
|
|||||||
import 'dart:convert';
|
|
||||||
import 'dart:io';
|
|
||||||
import 'dart:async';
|
|
||||||
|
|
||||||
|
|
||||||
import 'package:http/http.dart' as http;
|
|
||||||
import 'package:http/http.dart';
|
|
||||||
import 'package:path/path.dart';
|
|
||||||
import 'package:injector/injector.dart';
|
|
||||||
|
|
||||||
abstract class IHttpService {
|
|
||||||
Future<Response> post(url,
|
|
||||||
{Map<String, String> headers, body, Encoding encoding});
|
|
||||||
|
|
||||||
Future<Response> get(url, {Map<String, String> headers});
|
|
||||||
|
|
||||||
Future<Response> delete(url, {Map<String, String> headers});
|
|
||||||
}
|
|
||||||
|
|
||||||
class HttpService implements IHttpService {
|
|
||||||
@override
|
|
||||||
Future<Response> delete(url, {Map<String, String>? headers}) {
|
|
||||||
return http.delete(url, headers: headers);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<Response> get(url, {Map<String, String>? headers}) {
|
|
||||||
return http.get(url, headers: headers);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<Response> post(url,
|
|
||||||
{Map<String, String>? headers, body, Encoding? encoding}) {
|
|
||||||
return http.post(url, headers: headers, body: body, encoding: encoding);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
// import 'dart:io';
|
|
||||||
//
|
|
||||||
// import 'package:image_picker/image_picker.dart';
|
|
||||||
//
|
|
||||||
// abstract class IMediaService {
|
|
||||||
// Future<File?> takePicture();
|
|
||||||
//
|
|
||||||
// Future<File?> openImageFromGallery();
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// class MediaService implements IMediaService {
|
|
||||||
// @override
|
|
||||||
// Future<File?> openImageFromGallery() async {
|
|
||||||
// final pickedFile =
|
|
||||||
// await ImagePicker().getImage(source: ImageSource.gallery);
|
|
||||||
// if (pickedFile == null) return null;
|
|
||||||
// return File(pickedFile.path);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// @override
|
|
||||||
// Future<File?> takePicture() async {
|
|
||||||
// final pickedFile = await ImagePicker().getImage(source: ImageSource.camera);
|
|
||||||
// if (pickedFile == null) return null;
|
|
||||||
// return File(pickedFile.path);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
|
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
abstract class INetworkService {
|
|
||||||
Future<bool> isHostAvailable(String endpoint);
|
|
||||||
}
|
|
||||||
|
|
||||||
class NetworkService implements INetworkService{
|
|
||||||
@override
|
|
||||||
Future<bool> isHostAvailable(String endpoint) async {
|
|
||||||
try {
|
|
||||||
final result = await InternetAddress.lookup(endpoint.substring(endpoint.indexOf('//')+2).substring(0,endpoint.substring(endpoint.indexOf('//')+2).indexOf('/')));
|
|
||||||
if (result.isNotEmpty && result[0].rawAddress.isNotEmpty) {
|
|
||||||
return true;
|
|
||||||
} else{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} on SocketException catch (_) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class NetworkException implements Exception {
|
|
||||||
}
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
abstract class ISecureStorage {
|
|
||||||
Future<String> readBearerToken();
|
|
||||||
|
|
||||||
Future<void> clearUserCredentials();
|
|
||||||
}
|
|
||||||
|
|
||||||
class SecureStorage implements ISecureStorage {
|
|
||||||
///return bearer token if present, or null if not
|
|
||||||
@override
|
|
||||||
Future<String> readBearerToken() async {
|
|
||||||
try {
|
|
||||||
return "";
|
|
||||||
} catch (_) {
|
|
||||||
//an error occured returning null
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
///returns true if write was successful, false otherwise
|
|
||||||
@override
|
|
||||||
Future<bool> writeBearerToken(String token) async {
|
|
||||||
try {
|
|
||||||
await "";
|
|
||||||
return true;
|
|
||||||
} catch (_) {
|
|
||||||
//an error occured returning false
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Future<void> clearUserCredentials() async {}
|
|
||||||
}
|
|
||||||