diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac4a906 --- /dev/null +++ b/.gitignore @@ -0,0 +1,72 @@ +# 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/ +.dart_tool/ +.flutter-plugins +.packages +.pub-cache/ +.pub/ +/build/ + +# Android related +**/android/**/gradle-wrapper.jar +**/android/.gradle +**/android/captures/ +**/android/gradlew +**/android/gradlew.bat +**/android/local.properties +**/android/**/GeneratedPluginRegistrant.java + +# iOS/XCode related +**/ios/**/*.mode1v3 +**/ios/**/*.mode2v3 +**/ios/**/*.moved-aside +**/ios/**/*.pbxuser +**/ios/**/*.perspectivev3 +**/ios/**/*sync/ +**/ios/**/.sconsign.dblite +**/ios/**/.tags* +**/ios/**/.vagrant/ +**/ios/**/DerivedData/ +**/ios/**/Icon? +**/ios/**/Pods/ +**/ios/**/.symlinks/ +**/ios/**/profile +**/ios/**/xcuserdata +**/ios/.generated/ +**/ios/Flutter/App.framework +**/ios/Flutter/Flutter.framework +**/ios/Flutter/Generated.xcconfig +**/ios/Flutter/app.flx +**/ios/Flutter/app.zip +**/ios/Flutter/flutter_assets/ +**/ios/ServiceDefinitions.json +**/ios/Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!**/ios/**/default.mode1v3 +!**/ios/**/default.mode2v3 +!**/ios/**/default.pbxuser +!**/ios/**/default.perspectivev3 +!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/.metadata b/.metadata new file mode 100644 index 0000000..e023651 --- /dev/null +++ b/.metadata @@ -0,0 +1,10 @@ +# 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: 20e59316b8b8474554b38493b8ca888794b0234a + channel: stable + +project_type: app diff --git a/README.md b/README.md new file mode 100644 index 0000000..6fffbb2 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# car_insurance_system + +A new Flutter project. + +## Getting Started + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) + +For help getting started with Flutter, view our +[online documentation](https://flutter.dev/docs), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/android/app/build.gradle b/android/app/build.gradle new file mode 100644 index 0000000..df3ebd2 --- /dev/null +++ b/android/app/build.gradle @@ -0,0 +1,61 @@ +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 from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdkVersion 28 + + lintOptions { + disable 'InvalidPackage' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.car_insurance_system" + minSdkVersion 16 + targetSdkVersion 28 + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + } + + 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 { + testImplementation 'junit:junit:4.12' + androidTestImplementation 'com.android.support.test:runner:1.0.2' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' +} diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..c5a7a5b --- /dev/null +++ b/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..0142b8c --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + diff --git a/android/app/src/main/java/com/example/car_insurance_system/MainActivity.java b/android/app/src/main/java/com/example/car_insurance_system/MainActivity.java new file mode 100644 index 0000000..08de6e3 --- /dev/null +++ b/android/app/src/main/java/com/example/car_insurance_system/MainActivity.java @@ -0,0 +1,13 @@ +package com.example.car_insurance_system; + +import android.os.Bundle; +import io.flutter.app.FlutterActivity; +import io.flutter.plugins.GeneratedPluginRegistrant; + +public class MainActivity extends FlutterActivity { + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + GeneratedPluginRegistrant.registerWith(this); + } +} diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..304732f --- /dev/null +++ b/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..db77bb4 Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..17987b7 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..09d4391 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d5f1c8d Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..4d6372e Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..00fa441 --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,8 @@ + + + + diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..c5a7a5b --- /dev/null +++ b/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/build.gradle b/android/build.gradle new file mode 100644 index 0000000..bb8a303 --- /dev/null +++ b/android/build.gradle @@ -0,0 +1,29 @@ +buildscript { + repositories { + google() + jcenter() + } + + dependencies { + classpath 'com.android.tools.build:gradle:3.2.1' + } +} + +allprojects { + repositories { + google() + jcenter() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..2bd6f4f --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,2 @@ +org.gradle.jvmargs=-Xmx1536M + diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..2819f02 --- /dev/null +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#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-4.10.2-all.zip diff --git a/android/settings.gradle b/android/settings.gradle new file mode 100644 index 0000000..5a2f14f --- /dev/null +++ b/android/settings.gradle @@ -0,0 +1,15 @@ +include ':app' + +def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() + +def plugins = new Properties() +def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') +if (pluginsFile.exists()) { + pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } +} + +plugins.each { name, path -> + def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() + include ":$name" + project(":$name").projectDir = pluginDirectory +} diff --git a/images/BMW.jpg b/images/BMW.jpg new file mode 100644 index 0000000..a3ad930 Binary files /dev/null and b/images/BMW.jpg differ diff --git a/images/car1.png b/images/car1.png new file mode 100644 index 0000000..d1a4009 Binary files /dev/null and b/images/car1.png differ diff --git a/images/card.jpg b/images/card.jpg new file mode 100644 index 0000000..310ce30 Binary files /dev/null and b/images/card.jpg differ diff --git a/images/carr.jpg b/images/carr.jpg new file mode 100644 index 0000000..f9fed9f Binary files /dev/null and b/images/carr.jpg differ diff --git a/images/emoji.png b/images/emoji.png new file mode 100644 index 0000000..efaf953 Binary files /dev/null and b/images/emoji.png differ diff --git a/images/login.png b/images/login.png new file mode 100644 index 0000000..2dcc093 Binary files /dev/null and b/images/login.png differ diff --git a/images/payment.png b/images/payment.png new file mode 100644 index 0000000..8361262 Binary files /dev/null and b/images/payment.png differ diff --git a/images/signup.png b/images/signup.png new file mode 100644 index 0000000..3afe20a Binary files /dev/null and b/images/signup.png differ diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..6b4c0f7 --- /dev/null +++ b/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 8.0 + + diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..e8efba1 --- /dev/null +++ b/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..399e934 --- /dev/null +++ b/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/ios/Flutter/flutter_export_environment.sh b/ios/Flutter/flutter_export_environment.sh new file mode 100755 index 0000000..1f95dd3 --- /dev/null +++ b/ios/Flutter/flutter_export_environment.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# This is a generated file; do not edit or check into version control. +export "FLUTTER_ROOT=/Users/sarthakpol/Desktop/flutter" +export "FLUTTER_APPLICATION_PATH=/Users/sarthakpol/Downloads/WorkArea/flutter proj/car_insurance_system" +export "FLUTTER_TARGET=/Users/sarthakpol/Downloads/WorkArea/flutter proj/car_insurance_system/lib/main.dart" +export "FLUTTER_BUILD_DIR=build" +export "SYMROOT=${SOURCE_ROOT}/../build/ios" +export "FLUTTER_FRAMEWORK_DIR=/Users/sarthakpol/Desktop/flutter/bin/cache/artifacts/engine/ios" +export "FLUTTER_BUILD_NAME=1.0.0" +export "FLUTTER_BUILD_NUMBER=1" +export "TRACK_WIDGET_CREATION=true" diff --git a/ios/Podfile b/ios/Podfile new file mode 100644 index 0000000..1de1efc --- /dev/null +++ b/ios/Podfile @@ -0,0 +1,75 @@ +# Using a CDN with CocoaPods 1.7.2 or later can save a lot of time on pod installation, but it's experimental rather than the default. +# source 'https://cdn.cocoapods.org/' + +# Uncomment this line to define a global platform for your project +# platform :ios, '9.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def parse_KV_file(file, separator='=') + file_abs_path = File.expand_path(file) + if !File.exists? file_abs_path + return []; + end + pods_ary = [] + skip_line_start_symbols = ["#", "/"] + File.foreach(file_abs_path) { |line| + next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } + plugin = line.split(pattern=separator) + if plugin.length == 2 + podname = plugin[0].strip() + path = plugin[1].strip() + podpath = File.expand_path("#{path}", file_abs_path) + pods_ary.push({:name => podname, :path => podpath}); + else + puts "Invalid plugin specification: #{line}" + end + } + return pods_ary +end + +target 'Runner' do + # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock + # referring to absolute paths on developers' machines. + system('rm -rf .symlinks') + system('mkdir -p .symlinks/plugins') + + # Flutter Pods + generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig') + if generated_xcode_build_settings.empty? + puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first." + end + generated_xcode_build_settings.map { |p| + if p[:name] == 'FLUTTER_FRAMEWORK_DIR' + symlink = File.join('.symlinks', 'flutter') + File.symlink(File.dirname(p[:path]), symlink) + pod 'Flutter', :path => File.join(symlink, File.basename(p[:path])) + end + } + + # Plugin Pods + plugin_pods = parse_KV_file('../.flutter-plugins') + plugin_pods.map { |p| + symlink = File.join('.symlinks', 'plugins', p[:name]) + File.symlink(p[:path], symlink) + pod p[:name], :path => File.join(symlink, 'ios') + } +end + +# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. +install! 'cocoapods', :disable_input_output_paths => true + +post_install do |installer| + installer.pods_project.targets.each do |target| + target.build_configurations.each do |config| + config.build_settings['ENABLE_BITCODE'] = 'NO' + end + end +end diff --git a/ios/Podfile.lock b/ios/Podfile.lock new file mode 100644 index 0000000..65bb25a --- /dev/null +++ b/ios/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - Flutter (1.0.0) + +DEPENDENCIES: + - Flutter (from `.symlinks/flutter/ios`) + +EXTERNAL SOURCES: + Flutter: + :path: ".symlinks/flutter/ios" + +SPEC CHECKSUMS: + Flutter: 0e3d915762c693b495b44d77113d4970485de6ec + +PODFILE CHECKSUM: 64b2109b760ac9073c864e2a8278e6464efaa219 + +COCOAPODS: 1.7.5 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..c399841 --- /dev/null +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,577 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 0D0D68CD3040892077C4A0F9 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C4E87824A7F73A463B8BEEE7 /* libPods-Runner.a */; }; + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; + 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; + 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; + 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + 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 = ( + 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, + 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 08EBAD7078B821C93012D03D /* 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 = ""; }; + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 1F8E55D5CA57E3ED23DD5D0A /* 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 = ""; }; + 20DE2022C640D38FD5A97617 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + C4E87824A7F73A463B8BEEE7 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, + 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, + 0D0D68CD3040892077C4A0F9 /* libPods-Runner.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 209C8E996F4EDE35223F2003 /* Frameworks */ = { + isa = PBXGroup; + children = ( + C4E87824A7F73A463B8BEEE7 /* libPods-Runner.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B80C3931E831B6300D905FE /* App.framework */, + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEBA1CF902C7004384FC /* Flutter.framework */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + D8A2352880A1F1830F5DB8F8 /* Pods */, + 209C8E996F4EDE35223F2003 /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 97C146F21CF9000F007C117D /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + D8A2352880A1F1830F5DB8F8 /* Pods */ = { + isa = PBXGroup; + children = ( + 1F8E55D5CA57E3ED23DD5D0A /* Pods-Runner.debug.xcconfig */, + 08EBAD7078B821C93012D03D /* Pods-Runner.release.xcconfig */, + 20DE2022C640D38FD5A97617 /* Pods-Runner.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 769CD72313F22E87793FD356 /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + 31A46D52E246D34A6C60538E /* [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 = "The Chromium Authors"; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 3.2"; + 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 */, + 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 31A46D52E246D34A6C60538E /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 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\" thin"; + }; + 769CD72313F22E87793FD356 /* [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"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, + 97C146F31CF9000F007C117D /* main.m in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + 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 = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = 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; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = S8QB4VV633; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.carInsuranceSystem; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + 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 = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + 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 = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.carInsuranceSystem; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.carInsuranceSystem; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..a28140c --- /dev/null +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..21a3cc1 --- /dev/null +++ b/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/ios/Runner/AppDelegate.h b/ios/Runner/AppDelegate.h new file mode 100644 index 0000000..36e21bb --- /dev/null +++ b/ios/Runner/AppDelegate.h @@ -0,0 +1,6 @@ +#import +#import + +@interface AppDelegate : FlutterAppDelegate + +@end diff --git a/ios/Runner/AppDelegate.m b/ios/Runner/AppDelegate.m new file mode 100644 index 0000000..59a72e9 --- /dev/null +++ b/ios/Runner/AppDelegate.m @@ -0,0 +1,13 @@ +#include "AppDelegate.h" +#include "GeneratedPluginRegistrant.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + [GeneratedPluginRegistrant registerWithRegistry:self]; + // Override point for customization after application launch. + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +@end diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d36b1fa --- /dev/null +++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000..3d43d11 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..28c6bf0 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..2ccbfd9 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..f091b6b Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..4cde121 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..d0ef06e Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..dcdc230 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..2ccbfd9 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..c8f9ed8 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..a6d6b86 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..a6d6b86 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..75b2d16 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..c4df70d Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..6a84f41 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000..d0e1f58 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..0bedcf2 --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f2e259c --- /dev/null +++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist new file mode 100644 index 0000000..1199a88 --- /dev/null +++ b/ios/Runner/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + car_insurance_system + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/ios/Runner/main.m b/ios/Runner/main.m new file mode 100644 index 0000000..dff6597 --- /dev/null +++ b/ios/Runner/main.m @@ -0,0 +1,9 @@ +#import +#import +#import "AppDelegate.h" + +int main(int argc, char* argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/lib/brain.dart b/lib/brain.dart new file mode 100644 index 0000000..6e11497 --- /dev/null +++ b/lib/brain.dart @@ -0,0 +1,116 @@ +library my_prj.globals; +class CalculatorBrain { + CalculatorBrain({this.ec,this.ty,this.dis,this.it,this.orgPri}); + final String ec; + final String ty; + final String dis; + final String it; + final String orgPri; + double finPrinci; + double dep; + double discou; + double finalPrice; + double iDV; + double odc; + double ecPric; + double base; + var price; + double ecPrice(){ + if(ec=='<=1000cc'){ + ecPric= 2055 ; + return ecPric; + } + else if(ec=='<=2000cc'){ + ecPric= 2863; + return ecPric; + } + else if(ec=='<=3000cc'){ + ecPric =7890; + return ecPric; + } + else + ecPric= 0; + return ecPric; + } + double timeDep(){ + var price = double.parse(orgPri); + if(ty=='0-1 yrs'){ + dep=price*0.05; + return dep; + } + else if(ty=='1-2 yrs'){ + dep=price*0.1; + return dep; + } + else if(ty=='2-3 yrs'){ + dep=price*0.2; + return dep; + } + else if(ty=='3-4 yrs'){ + dep=price*0.3; + return dep; + } + else if(ty=='4-5 yrs'){ + dep=price*0.4; + return dep; + } + else if(ty=='5-6 yrs'){ + dep=price*0.5; + return dep; + } + else + dep=0; + return dep; + } + double disco(){ + var price = double.parse(orgPri); + if(dis=='5%'){ + discou=price*0.05; + return discou; + } + else if(dis=='10%'){ + discou=price*0.1; + return discou; + } + else if(dis=='15%'){ + discou=price*0.15; + return discou; + } + else if(dis=='20%'){ + discou=price*0.2; + return discou; + } + else + discou=0; + return discou; + } + double insuType(){ + base=insuType(); + dep=timeDep(); + discou=disco(); + var price = double.parse(orgPri); + iDV= price-dep; + odc=iDV-discou; + if(it=='3rd party'){ + finalPrice=ecPric; + return finalPrice; + } + else if(it=='Own Damage Cover'){ + finalPrice=odc; + return finalPrice; + } + else if(it=='comprehensive'){ + finalPrice=ecPric+odc; + return finalPrice; + } + else{ + finalPrice=0; + return finalPrice; + } + } + double main(){ + var carInsu=new CalculatorBrain(); + double hi=carInsu.insuType(); + return hi; + } +} \ No newline at end of file diff --git a/lib/components/Bottom_Button.dart b/lib/components/Bottom_Button.dart new file mode 100644 index 0000000..c8748da --- /dev/null +++ b/lib/components/Bottom_Button.dart @@ -0,0 +1,30 @@ +import 'package:flutter/material.dart'; +import 'package:car_insurance_system/constant.dart'; + +class BottomButton extends StatelessWidget { + +BottomButton({@required this.onTap,@required this.buttonTitle}); + +final Function onTap; +final String buttonTitle; + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: onTap, + child: Container( + child: Center( + child: Text( + buttonTitle, + style: kLargeButtonTextStyle, + ), + ), + color: Colors.teal[800], + margin: EdgeInsets.only(top: 10), + padding: EdgeInsets.only(bottom: 20.0), + width: double.infinity, + height: kBottomContainerHeight, + ), + ); + } +} \ No newline at end of file diff --git a/lib/components/icon_content.dart b/lib/components/icon_content.dart new file mode 100644 index 0000000..b0cf8f5 --- /dev/null +++ b/lib/components/icon_content.dart @@ -0,0 +1,29 @@ +import 'package:flutter/material.dart'; +import 'package:car_insurance_system/constant.dart'; + +class IconContent extends StatelessWidget { + IconContent({this.icon,this.label}); + + final IconData icon; + final String label; + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment:MainAxisAlignment.center, + children: [ + Icon( + icon, + size: 80.0, + ), + SizedBox( + height: 15.0, + ), + Text( + label, + style: kLableTextStyle, + ), + ], + ); + } +} \ No newline at end of file diff --git a/lib/components/reusable_card.dart b/lib/components/reusable_card.dart new file mode 100644 index 0000000..1605d44 --- /dev/null +++ b/lib/components/reusable_card.dart @@ -0,0 +1,24 @@ +import 'package:flutter/material.dart'; + +class ReusableCard extends StatelessWidget { + ReusableCard({@required this.colour,this.cardChild,this.onPress}); + + final Color colour; + final Widget cardChild; + final Function onPress; + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: onPress, + child: Container( + child: cardChild, + margin: EdgeInsets.all(15), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + color: colour, + ), + ), + ); + } +} diff --git a/lib/components/round_icon_button.dart b/lib/components/round_icon_button.dart new file mode 100644 index 0000000..455c1e8 --- /dev/null +++ b/lib/components/round_icon_button.dart @@ -0,0 +1,24 @@ +import 'package:flutter/material.dart'; + +class RoundIconButton extends StatelessWidget { + + RoundIconButton({@required this.icon,@required this.onPressed}); + + final IconData icon; + final Function onPressed; + + @override + Widget build(BuildContext context) { + return RawMaterialButton( + child: Icon(icon), + elevation: 0.0, + onPressed: onPressed, + constraints: BoxConstraints.tightFor( + width: 56.0, + height: 56.0, + ), + shape: CircleBorder(), + fillColor: Color(0xFF4C4F5E), + ); + } +} \ No newline at end of file diff --git a/lib/constant.dart b/lib/constant.dart new file mode 100644 index 0000000..b3a8cee --- /dev/null +++ b/lib/constant.dart @@ -0,0 +1,40 @@ +import 'package:flutter/material.dart'; + +const kBottomContainerHeight=80.0; +const kActiveCardColour=Colors.teal; +const kInactiveCardColour=Colors.teal; +const kBottomContainerColour=Color(0xFFEB1555); + +const kLableTextStyle = TextStyle( + fontSize: 25.0, + color: Colors.white, + ); +const kLableTextStyleSlider = TextStyle( + fontSize: 38.0, + color: Colors.white, + ); +const kNumTextStyle = TextStyle( + fontSize: 50.0, + fontWeight: FontWeight.w900, + ); +const kLargeButtonTextStyle = TextStyle( + fontSize: 25.0, + fontWeight: FontWeight.bold, + ); +const kTitleTextStyle = TextStyle( + fontSize: 50.0, + fontWeight: FontWeight.bold, + ); +const kResultTextStyle = TextStyle( + color: Color(0xFF24D876), + fontSize: 22.0, + fontWeight: FontWeight.bold, + ); +const kBMITextStyle = TextStyle( + fontSize: 100.0, + fontWeight: FontWeight.bold, + ); +const kBodyTextStyle = TextStyle( + fontSize: 22.0, + fontWeight: FontWeight.bold, +); \ No newline at end of file diff --git a/lib/main.dart b/lib/main.dart new file mode 100644 index 0000000..7107b21 --- /dev/null +++ b/lib/main.dart @@ -0,0 +1,39 @@ +import 'package:car_insurance_system/screens/result.dart'; +import 'package:flutter/material.dart'; +import 'package:car_insurance_system/screens/screen0.dart'; +import 'package:car_insurance_system/screens/screen1.dart'; +import 'package:car_insurance_system/screens/screen2.dart'; +import 'package:car_insurance_system/screens/screen3.dart'; +import 'package:car_insurance_system/screens/screen4.dart'; +import 'package:car_insurance_system/screens/screen5A.dart'; +import 'package:car_insurance_system/screens/screen5B.dart'; +import 'package:car_insurance_system/screens/screen6.dart'; +import 'screens/trial.dart'; + +void main() => runApp(CarInsurance()); + +class CarInsurance extends StatelessWidget { + @override + Widget build(BuildContext context) { + return MaterialApp( + debugShowCheckedModeBanner: false, + title: 'CAR INSURANCE', + theme: ThemeData.dark(), + initialRoute: '/', + routes: { + //'/': (context) => cardPay(), + '/': (context) => logSign(), + + '/first': (context) => logInPage(), + '/second': (context) => signUpPage(), + '/third': (context) => homeScr(), + '/forth': (context) => payment(), + '/fifthA': (context) => card(), + '/fifthB': (context) => cash(), + //'/sixth': (context) => resultPage(), + }, + //home: logSign(), + ); + } +} + diff --git a/lib/screens/result.dart b/lib/screens/result.dart new file mode 100644 index 0000000..2d249c4 --- /dev/null +++ b/lib/screens/result.dart @@ -0,0 +1,76 @@ +import 'package:flutter/material.dart'; +import 'screen3.dart'; +import 'package:car_insurance_system/brain.dart'; +import 'package:car_insurance_system/constant.dart'; +import 'reusable_card.dart'; + +class resultPage extends StatelessWidget { + + resultPage({@required this.isuran/*, @required this.depri, @required this.discoun, @required this.insuTYpe*/}); + + final double isuran; + /*final double depri; + final double discoun; + final double insuTYpe;*/ + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text('Invoice'), + ), + body: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Expanded( + child: Container( + padding: EdgeInsets.all(15.0), + child: Text( + 'Your Invoice', + //style: kTitleTextStyle, + ), + ), + ), + Expanded( + flex: 5, + child: ReusableCard( + colour: kActiveCardColour, + cardChild: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text( + 'hi', + //isuran.toString(), + style: kResultTextStyle, + ), + /*Text( + isuran.toString(), + style: kBMITextStyle, + ),*/ + /*Text( + interpretation, + textAlign: TextAlign.center, + style: kBodyTextStyle, + ), */ + ], + ), + ), + ), + ], + ), + ); + } +} + + /*BottomButton( + buttonTitle: 'PAYMENT', + onTap: (){ + Navigator.pop(context); + }, + ), + ], + ), + ); + } +}*/ \ No newline at end of file diff --git a/lib/screens/reusable_card.dart b/lib/screens/reusable_card.dart new file mode 100644 index 0000000..1605d44 --- /dev/null +++ b/lib/screens/reusable_card.dart @@ -0,0 +1,24 @@ +import 'package:flutter/material.dart'; + +class ReusableCard extends StatelessWidget { + ReusableCard({@required this.colour,this.cardChild,this.onPress}); + + final Color colour; + final Widget cardChild; + final Function onPress; + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: onPress, + child: Container( + child: cardChild, + margin: EdgeInsets.all(15), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + color: colour, + ), + ), + ); + } +} diff --git a/lib/screens/sample b/lib/screens/sample new file mode 100644 index 0000000..e2b9ce6 --- /dev/null +++ b/lib/screens/sample @@ -0,0 +1,104 @@ +import 'package:flutter/material.dart'; +import 'package:font_awesome_flutter/font_awesome_flutter.dart'; +import 'package:car_insurance_system/components/icon_content.dart'; +import 'package:car_insurance_system/components/reusable_card.dart'; +import 'package:car_insurance_system/constant.dart'; +import 'package:car_insurance_system/components/Bottom_Button.dart'; +import 'package:car_insurance_system/components/round_icon_button.dart'; +import 'package:car_insurance_system/brain.dart'; +import 'screen6.dart'; + +class mConsole extends StatefulWidget { + @override + _mConsoleState createState() => _mConsoleState(); +} + +class _mConsoleState extends State { + + String dropdownValue = 'HatchBack'; + String dropdownType = 'Type1'; + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + backgroundColor: Colors.teal, + body: Center( + child: SafeArea( + child: + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + + Expanded( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Center( + child: DropdownButton( + value: dropdownValue, + onChanged: (String newValue) { + setState(() { + dropdownValue = newValue; + }); + }, + items: ['HatchBack', 'Sedan', 'SUV'] + .map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value, + style: TextStyle( + fontSize: 27.0, + ), + ), + ); + }) + .toList(), + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Center( + child: DropdownButton( + value: dropdownType, + onChanged: (String newValue) { + setState(() { + dropdownType = newValue; + }); + }, + items: ['Type1', 'Type2', 'Type3'] + .map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value, + style: TextStyle( + fontSize: 27.0, + ),), + ); + }) + .toList(), + ), + ), + ), + ), + + + + ], + ), + + ), + ), + ), + ); + // ], + // ), + // ), + // ), + + // ), + // ); +} +} \ No newline at end of file diff --git a/lib/screens/screen0.dart b/lib/screens/screen0.dart new file mode 100644 index 0000000..311a218 --- /dev/null +++ b/lib/screens/screen0.dart @@ -0,0 +1,83 @@ +import 'package:flutter/material.dart'; +import 'package:font_awesome_flutter/font_awesome_flutter.dart'; + +class logSign extends StatefulWidget { + @override + _logSignState createState() => _logSignState(); +} + +class _logSignState extends State { + @override + Widget build(BuildContext context) { + return MaterialApp( + debugShowCheckedModeBanner: false, + home: Scaffold( + backgroundColor: Colors.teal[400], + body: Center( + child: SafeArea( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Padding( + padding: const EdgeInsets.all(20.0), + child: CircleAvatar( + radius: 90.0, + backgroundImage: AssetImage('images/carr.jpg'), + ), + ), + + Padding( + padding: const EdgeInsets.all(18.0), + child: Text( + 'CAR INSURANCE', + style: TextStyle( + fontSize: 40.0, + fontFamily: 'Pacifico', + color: Colors.lime, + ),), + ), + + Padding( + padding: const EdgeInsets.all(16.0), + child: FlatButton( + textColor: Colors.white70, + padding: EdgeInsets.all(10.0), + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(30.0)), + onPressed: (){ + Navigator.pushNamed(context, '/first'); + }, + child: Text( + 'LOG IN', + style: TextStyle( + // backgroundColor: Colors.white10, + fontSize: 50.0, + ), + ), + ), + ), + Padding( + padding: const EdgeInsets.all(16.0), + child: FlatButton( + textColor: Colors.white70, + padding: EdgeInsets.all(10.0), + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(30.0)), + onPressed: (){ + Navigator.pushNamed(context, '/second'); + }, + child: Text( + 'SIGN UP', + style: TextStyle( + // backgroundColor: Colors.white10, + fontSize: 50.0, + ), + ), + ), + ), + ], + ), + ), + ), + ), + ); + } +} \ No newline at end of file diff --git a/lib/screens/screen1.dart b/lib/screens/screen1.dart new file mode 100644 index 0000000..9fa66e8 --- /dev/null +++ b/lib/screens/screen1.dart @@ -0,0 +1,135 @@ +import 'package:flutter/material.dart'; + + +class logInPage extends StatefulWidget { + @override + _logInPageState createState() => _logInPageState(); +} + +class _logInPageState extends State { + + final formKey = GlobalKey(); + String _email, _password; + + @override + Widget build(BuildContext context) { + return MaterialApp( + debugShowCheckedModeBanner: false, + home: Scaffold( + backgroundColor: Colors.teal[400], + body: Center( + child: SafeArea( + child: Form( + key: formKey, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Expanded( + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsets.all(5.0), + child: RaisedButton( + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + child: Text( + 'BACK', + style: TextStyle( + color: Colors.black + ), + ), + onPressed: (){ + Navigator.pop(context); + }, + ), + ), + ], + ), + ), + Padding( + padding: const EdgeInsets.all(18.0), + child: CircleAvatar( + radius: 50.0, + backgroundImage: AssetImage('images/login.png'), + ), + ), + + Padding( + padding: const EdgeInsets.all(18.0), + child: Text( + 'LOG IN', + style: TextStyle( + fontSize: 40.0, + fontFamily: 'Pacifico', + color: Colors.lime, + ), + ), + ), + + Padding( + padding: const EdgeInsets.all(28.0), + + child: TextFormField( + + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 38.0 + ), + decoration: InputDecoration( + labelText: 'E-Mail:', + border: OutlineInputBorder() + ), + + validator: (input) => !input.contains('@') ? 'Not a Valid Email' : null, + onSaved: (input) => _email = input, + ), + ), + Padding( + padding: const EdgeInsets.all(28.0), + child: TextFormField( + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 38.0 + ), + decoration: InputDecoration( + labelText: 'Password:', + border: OutlineInputBorder() + ), + validator: (input) => input.length<8 ? 'length must be greater than 8 characters' : null, + onSaved: (input) => _password = input, + obscureText: true, + ), + ), + + Padding( + + padding: const EdgeInsets.all(30.0), + child: RaisedButton( + //textColor: Colors.white70, + padding: EdgeInsets.all(10.0), + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + onPressed: _submit, + + child: Text( + 'Sign In', + style: TextStyle( + fontSize: 35.0, + ), + ), + ), + ), + ], + ), + ), + ), + ), + ), + ); +} + void _submit(){ + if(formKey.currentState.validate()){ + formKey.currentState.save(); + } + } + +} diff --git a/lib/screens/screen2.dart b/lib/screens/screen2.dart new file mode 100644 index 0000000..9d6f466 --- /dev/null +++ b/lib/screens/screen2.dart @@ -0,0 +1,151 @@ +import 'package:flutter/material.dart'; +//import 'package:shared_preferences/shared_preferences.dart'; + +class signUpPage extends StatefulWidget { + @override + _signUpPageState createState() => _signUpPageState(); +} + +class _signUpPageState extends State { + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + backgroundColor: Colors.teal, + body: Center( + child: SafeArea( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Expanded( + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsets.all(2.5), + child: RaisedButton( + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + child: Text( + 'BACK', + style: TextStyle( + color: Colors.black + ), + ), + onPressed: (){ + Navigator.pop(context); + }, + ), + ), + ], + ), + ), + Padding( + padding: const EdgeInsets.all(8.0), + child: CircleAvatar( + radius: 50.0, + backgroundImage: AssetImage('images/signup.png'), + ), + ), + + Padding( + padding: const EdgeInsets.all(8.0), + child: Text( + 'SIGN UP', + style: TextStyle( + fontSize: 40.0, + fontFamily: 'Pacifico', + color: Colors.lime, + ), + ), + ), + + Padding( + padding: const EdgeInsets.all(11.0), + child: TextFormField( + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 38.0 + ), + decoration: InputDecoration( + labelText: 'Vehical No. :', + border: OutlineInputBorder() + ), + ), + ), + Padding( + padding: const EdgeInsets.all(11.0), + child: TextFormField( + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 38.0 + ), + decoration: InputDecoration( + labelText: 'Name :', + border: OutlineInputBorder() + ), + ), + ), + Padding( + padding: const EdgeInsets.all(11.0), + child: TextFormField( + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 38.0 + ), + decoration: InputDecoration( + labelText: 'E-Mail :', + border: OutlineInputBorder() + ), + ), + ), + Padding( + padding: const EdgeInsets.all(11.0), + child: TextFormField( + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 38.0 + ), + decoration: InputDecoration( + labelText: 'Mobile No. :', + border: OutlineInputBorder() + ), + ), + ), + Padding( + padding: const EdgeInsets.all(11.0), + child: TextFormField( + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 38.0 + ), + decoration: InputDecoration( + labelText: 'Create Password :', + border: OutlineInputBorder() + ), + ), + ), + Padding( + padding: const EdgeInsets.all(9.0), + child: RaisedButton( + //padding: EdgeInsets.all(10.0), + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + onPressed: (){ + Navigator.pushNamed(context, '/third'); + }, + child: Text( + 'Sign Up', + style: TextStyle( + fontSize: 35.0, + ), + ), + ), + ), + ], + ), + ), + ), + ), + ); + } +} \ No newline at end of file diff --git a/lib/screens/screen3.dart b/lib/screens/screen3.dart new file mode 100644 index 0000000..1afe02c --- /dev/null +++ b/lib/screens/screen3.dart @@ -0,0 +1,227 @@ +import 'package:car_insurance_system/screens/result.dart'; +import 'package:flutter/material.dart'; +import 'package:car_insurance_system/components/Bottom_Button.dart'; +import 'package:car_insurance_system/brain.dart'; +import 'screen6.dart'; +import 'result.dart'; + +class homeScr extends StatefulWidget { + @override + _homeScrState createState() => _homeScrState(); +} +class _homeScrState extends State { + + String dropCType = "Car Type"; + String tempCtype = ' '; + String dropEType = "Engine Capacity"; + String tempEtype = ' '; + String dropAge = "Time in yrs"; + String tempAge = ' '; + String dropCov = "Insurance Type"; + String tempCov = ' '; + String priceOfCar = 'Price Range'; + String orgPrice; + String dropDisc = 'Discounts'; + String discTemp = ' '; + int Result; + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text('Car Insurance Calculator'), + backgroundColor: Colors.teal[800], + ), + body: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Expanded( + child: Column( + children: [ + Expanded( + child: Padding( + padding: const EdgeInsets.all(1.0), + child: Center( + child: DropdownButton( + value: dropCType, + onChanged: (String newValue) { + tempCtype = newValue; + setState(() { + dropCType = newValue; + }); + }, + items: ['Car Type','HatchBack', 'Sedan', 'SUV '] + .map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value, + style: TextStyle( + fontSize: 20.0, + ), + ), + ); + }) + .toList(), + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.fromLTRB(50, 12, 50, 12), + child: TextFormField( + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 20.0 + ), + decoration: InputDecoration( + labelText: 'Price', + border: OutlineInputBorder() + ), + validator: (input) => !input.contains('0') ? null : 'Please enter a valid amt', + onSaved: (input) => orgPrice = input, + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(1.0), + child: Center( + child: DropdownButton( + value: dropEType, + onChanged: (String newValue) { + tempEtype = newValue; + setState(() { + dropEType = newValue; + }); + }, + items: ['Engine Capacity','<=1000cc', '<=2000cc', '<=3000cc '] + .map>((String value) { + //log(value); + return DropdownMenuItem( + value: value, + child: Text(value, + style: TextStyle( + fontSize: 20.0, + ), + ), + ); + },) + .toList(), + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(1.0), + child: Center( + child: DropdownButton( + value: dropAge, + onChanged: (String newValue) { + tempAge = newValue; + setState(() { + dropAge = newValue; + }); + }, + items: ['Time in yrs','0-1 yrs', '1-2 yrs', '2-3 yrs','3-4 yrs','4-5 yrs '] + .map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value, + style: TextStyle( + fontSize: 20.0, + ), + ), + ); + }) + .toList(), + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(1.0), + child: Center( + child: DropdownButton( + value: dropDisc, + onChanged: (String newValue) { + discTemp = newValue; + setState(() { + dropDisc = newValue; + }); + }, + items: ['Discounts','0%', '5%', '10%','15%','20% '] + .map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value, + style: TextStyle( + fontSize: 20.0, + ), + ), + ); + }) + .toList(), + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(1.0), + child: Center( + child: DropdownButton( + value: dropCov, + onChanged: (String newValue) { + tempCov = newValue; + setState(() { + dropCov = newValue; + }); + }, + items: ['Insurance Type','3rd party', 'comprehensive'] + .map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value, + style: TextStyle( + fontSize: 20.0, + ), + ), + ); + }) + .toList(), + ), + ), + ), + ), + ], + ), + ), + BottomButton( + buttonTitle: 'CALCULATE', + onTap: (){ + CalculatorBrain calc = CalculatorBrain( + ec: tempEtype, + ty: tempAge, + dis: discTemp, + it: tempCov, + orgPri: orgPrice, + ); + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => resultPage( + isuran: calc.main(), + ), + ), + ); + }, + ), + ], + ), + ); + } +} + + diff --git a/lib/screens/screen4.dart b/lib/screens/screen4.dart new file mode 100644 index 0000000..0d31249 --- /dev/null +++ b/lib/screens/screen4.dart @@ -0,0 +1,111 @@ +import 'package:flutter/material.dart'; + + +class payment extends StatefulWidget { + @override + _paymentState createState() => _paymentState(); +} + +class _paymentState extends State { + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + backgroundColor: Colors.teal, + body: Center( + child: SafeArea( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Expanded( + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsets.all(5.0), + child: RaisedButton( + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + child: Text( + 'BACK', + style: TextStyle( + color: Colors.black + ), + ), + onPressed: (){ + Navigator.pop(context); + }, + ), + ), + ], + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(30.0), + child: CircleAvatar( + radius: 50.0, + backgroundImage: AssetImage('images/payment.png'), + ), + ), + ), + + Expanded( + child: Padding( + padding: const EdgeInsets.all(15.0), + child: Text( + 'PAYMENT', + style: TextStyle( + fontSize: 40.0, + fontFamily: 'Pacifico', + color: Colors.lime, + ), + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(50.0), + child: RaisedButton( + // padding: EdgeInsets.all(10.0), + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + onPressed: (){ + Navigator.pushNamed(context, '/fifthA'); + }, + child: Text( + 'CARD', + style: TextStyle( + fontSize: 35.0, + ), + ), + + ), + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(50.0), + child: RaisedButton( + padding: EdgeInsets.all(10.0), + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + onPressed: (){ + Navigator.pushNamed(context, '/fifthB'); + }, + child: Text( + 'CASH', + style: TextStyle( + fontSize: 35.0, + ), + ), + ), + ), + ), + ], + ), + ), + ), + ), + + ); + + } +} \ No newline at end of file diff --git a/lib/screens/screen5A.dart b/lib/screens/screen5A.dart new file mode 100644 index 0000000..6d47c5a --- /dev/null +++ b/lib/screens/screen5A.dart @@ -0,0 +1,137 @@ +import 'package:flutter/material.dart'; + +class card extends StatefulWidget { + @override + _cardState createState() => _cardState(); +} + +class _cardState extends State { + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + backgroundColor: Colors.teal, + body: Center( + child: SafeArea( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Expanded( + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsets.all(5.0), + child: RaisedButton( + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + child: Text( + 'BACK', + style: TextStyle( + color: Colors.black + ), + ), + onPressed: (){ + Navigator.pop(context); + }, + ), + ), + ], + ), + ), + Padding( + padding: const EdgeInsets.all(11.0), + child: CircleAvatar( + radius: 50.0, + backgroundImage: AssetImage('images/card.jpg'), + ), + ), + + Padding( + padding: const EdgeInsets.all(11.0), + child: Text( + 'CARD DETAILS', + style: TextStyle( + fontSize: 40.0, + fontFamily: 'Pacifico', + color: Colors.lime, + ), + ), + ), + + Padding( + padding: const EdgeInsets.all(11.0), + child: TextFormField( + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 38.0 + ), + maxLength: 16, + decoration: InputDecoration( + labelText: 'Card No :', + border: OutlineInputBorder() + ), + ), + ), + Padding( + padding: const EdgeInsets.all(11.0), + child: TextFormField( + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 38.0 + ), + decoration: InputDecoration( + labelText: 'Expiry Date :', + border: OutlineInputBorder() + ), + ), + ), + Padding( + padding: const EdgeInsets.all(11.0), + child: TextFormField( + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 38.0 + ), + decoration: InputDecoration( + labelText: 'Card Holder Name :', + border: OutlineInputBorder() + ), + ), + ), + Padding( + padding: const EdgeInsets.all(11.0), + child: TextFormField( + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 38.0 + ), + maxLength: 3, + decoration: InputDecoration( + labelText: 'CVV :', + border: OutlineInputBorder() + ), + ), + ), + Padding( + padding: const EdgeInsets.all(11.0), + child: RaisedButton( + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + onPressed: (){ + Navigator.pushNamed(context, '/fifthB'); + }, + child: Text( + 'SUBMIT', + style: TextStyle( + fontSize: 35.0, + ), + ), + ), + ), + ], + ), + ), + ), + ), + ); + } +} \ No newline at end of file diff --git a/lib/screens/screen5B.dart b/lib/screens/screen5B.dart new file mode 100644 index 0000000..5dcb90a --- /dev/null +++ b/lib/screens/screen5B.dart @@ -0,0 +1,106 @@ +import 'package:flutter/material.dart'; + +class cash extends StatefulWidget { + @override + _cashState createState() => _cashState(); +} + +class _cashState extends State { + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + backgroundColor: Colors.teal, + body: Center( + child: SafeArea( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Expanded( + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsets.all(5.0), + child: RaisedButton( + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + child: Text( + 'BACK', + style: TextStyle( + color: Colors.black + ), + ), + onPressed: (){ + Navigator.pop(context); + }, + ), + ), + ], + ), + ), + Expanded( + child: Padding( + padding: const EdgeInsets.all(10.0), + child: Text( + 'PAYMENT RECIEVED', + style: TextStyle( + fontSize: 35.0, + color: Colors.black, + ), + ), + + ), + ), + Expanded( + child: CircleAvatar( + radius: 105.0, + backgroundImage: AssetImage('images/emoji.png'), + ), + ), + Expanded( + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Padding( + padding: const EdgeInsets.all(10.0), + child: RaisedButton( + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + child: Text( + 'INVOICE', + style: TextStyle( + fontSize: 35.0, + color: Colors.black, + ), + ), + onPressed: (){ + Navigator.pop(context); + }, + ), + ), + Padding( + padding: const EdgeInsets.all(11.0), + child: RaisedButton( + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + child: Text( + ' EXIT ', + style: TextStyle( + fontSize: 35.0, + color: Colors.black, + ), + ), + onPressed: (){ + Navigator.pushNamed(context, '/'); + }, + ), + ), + ], + ), + ), + ], + ), + ), + ), + ), + ); + } +} \ No newline at end of file diff --git a/lib/screens/screen6.dart b/lib/screens/screen6.dart new file mode 100644 index 0000000..9f84246 --- /dev/null +++ b/lib/screens/screen6.dart @@ -0,0 +1,97 @@ +import 'package:flutter/material.dart'; +import 'package:car_insurance_system/constant.dart'; +import 'package:car_insurance_system/components/reusable_card.dart'; +import 'package:car_insurance_system/components/Bottom_Button.dart'; + +class invoice extends StatefulWidget { + @override + _invoiceState createState() => _invoiceState(); +} + +class _invoiceState extends State { + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + backgroundColor: Colors.teal, + body: Center( + child: SafeArea( + + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Expanded( + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsets.all(2.5), + child: RaisedButton( + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(17.0)), + child: Text( + 'BACK', + style: TextStyle( + color: Colors.black + ), + ), + onPressed: (){ + Navigator.pop(context); + }, + ), + ), + ], + ), + ), + + Expanded( + child: Padding( + padding: const EdgeInsets.all(18.0), + child: Text( + 'YOUR INVOICE', + style: TextStyle( + fontSize: 40.0, + fontFamily: 'Pacifico', + color: Colors.black, + ),), + ), + ), + + + + + + + + + Expanded( + child: Padding( + padding: const EdgeInsets.all(99.0), + child: RaisedButton( + textColor: Colors.white70, + padding: EdgeInsets.all(10.0), + shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(30.0)), + onPressed: (){ + Navigator.pushNamed(context, '/'); + }, + child: Text( + 'EXIT', + style: TextStyle( + // backgroundColor: Colors.white10, + fontSize: 50.0, + color: Colors.black, + ), + ), + ), + ), + ), + ], + ), + ), + ), + ), + ); + } + + + +} \ No newline at end of file diff --git a/lib/screens/trial.dart b/lib/screens/trial.dart new file mode 100644 index 0000000..8457cf5 --- /dev/null +++ b/lib/screens/trial.dart @@ -0,0 +1,63 @@ +/*import 'package:flutter/material.dart'; +import 'package:square_in_app_payments/in_app_payments.dart'; +import 'package:square_in_app_payments/models.dart'; + +class cardPay extends StatefulWidget { + @override + _cardPayState createState() => _cardPayState(); +} + +class _cardPayState extends State { + + void _pay(){ + InAppPayments.setSquareApplicationId('sandbox-sq0idb-SqjLA_24u-dtMjwkLeWdMQ'); + InAppPayments.startCardEntryFlow( + onCardNonceRequestSuccess: _cardNonceRequestSuccess, + onCardEntryCancel: _cardEntryCancel, + ); + } + + void _cardEntryCancel(){ + + } + + void _cardNonceRequestSuccess(CardDetails result){ + print(result.nonce); + InAppPayments.completeCardEntry( + onCardEntryComplete: _cardEntryComplete, + ); + + } + void _cardEntryComplete(){ + + } + + + @override + Widget build(BuildContext context) { + return Scaffold( + + backgroundColor: Colors.teal, + appBar: AppBar( + title: Text('Payment Window',), + ), + body: Center( + + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + 'Make a Payment', + + ), + ],), + ), + floatingActionButton: FloatingActionButton( + onPressed: _pay, + tooltip: 'Payment', + child: Icon(Icons.payment), + ), + ); + + } +}*/ \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock new file mode 100644 index 0000000..1f389e5 --- /dev/null +++ b/pubspec.lock @@ -0,0 +1,153 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: transitive + description: + name: async + url: "https://pub.dartlang.org" + source: hosted + version: "2.3.0" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.5" + charcode: + dependency: transitive + description: + name: charcode + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.2" + collection: + dependency: transitive + description: + name: collection + url: "https://pub.dartlang.org" + source: hosted + version: "1.14.11" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.2" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + font_awesome_flutter: + dependency: "direct main" + description: + name: font_awesome_flutter + url: "https://pub.dartlang.org" + source: hosted + version: "8.5.0" + matcher: + dependency: transitive + description: + name: matcher + url: "https://pub.dartlang.org" + source: hosted + version: "0.12.5" + meta: + dependency: transitive + description: + name: meta + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.7" + path: + dependency: transitive + description: + name: path + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.4" + pedantic: + dependency: transitive + description: + name: pedantic + url: "https://pub.dartlang.org" + source: hosted + version: "1.8.0+1" + quiver: + dependency: transitive + description: + name: quiver + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.5" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + url: "https://pub.dartlang.org" + source: hosted + version: "1.5.5" + stack_trace: + dependency: transitive + description: + name: stack_trace + url: "https://pub.dartlang.org" + source: hosted + version: "1.9.3" + stream_channel: + dependency: transitive + description: + name: stream_channel + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.0" + string_scanner: + dependency: transitive + description: + name: string_scanner + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.5" + term_glyph: + dependency: transitive + description: + name: term_glyph + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + test_api: + dependency: transitive + description: + name: test_api + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.5" + typed_data: + dependency: transitive + description: + name: typed_data + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.6" + vector_math: + dependency: transitive + description: + name: vector_math + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.8" +sdks: + dart: ">=2.2.2 <3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..8817cbf --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,29 @@ +name: car_insurance_system +description: A new Flutter project. + +version: 1.0.0+1 + +environment: + sdk: ">=2.1.0 <3.0.0" + +dependencies: + flutter: + sdk: flutter + + cupertino_icons: ^0.1.2 + font_awesome_flutter: ^8.4.0 + #square_in_app_payments: ^1.1.0 + + +dev_dependencies: + flutter_test: + sdk: flutter + +flutter: + + uses-material-design: true + + assets: + - images/ + + #shared_preferences: ^0.4.3 \ No newline at end of file diff --git a/test/widget_test.dart b/test/widget_test.dart new file mode 100644 index 0000000..3e294d5 --- /dev/null +++ b/test/widget_test.dart @@ -0,0 +1,31 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility that Flutter provides. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. +/* +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:car_insurance_system/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(MyApp()); + + // Verify that our counter starts at 0. + expect(find.text('0'), findsOneWidget); + expect(find.text('1'), findsNothing); + + // Tap the '+' icon and trigger a frame. + await tester.tap(find.byIcon(Icons.add)); + await tester.pump(); + + // Verify that our counter has incremented. + expect(find.text('0'), findsNothing); + expect(find.text('1'), findsOneWidget); + }); +} +*/ \ No newline at end of file