├── .flutter-plugins-dependencies
├── .gitignore
├── .metadata
├── README.md
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── cookies_app
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── cookiecream.jpg
│ │ │ ├── ic_launcher.png
│ │ │ └── marshmallowcakecookie.jpeg
│ │ │ ├── mipmap-mdpi
│ │ │ ├── cookiecream.jpg
│ │ │ ├── ic_launcher.png
│ │ │ └── marshmallowcakecookie.jpeg
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── cookiecream.jpg
│ │ │ ├── ic_launcher.png
│ │ │ └── marshmallowcakecookie.jpeg
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── cookiecream.jpg
│ │ │ ├── ic_launcher.png
│ │ │ └── marshmallowcakecookie.jpeg
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── cookiecream.jpg
│ │ │ ├── ic_launcher.png
│ │ │ └── marshmallowcakecookie.jpeg
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── VarelaRound-Regular.ttf
├── browniecookies.jpg
├── choclatecookiecake.jpeg
├── cookiechoco.jpg
├── cookiechocochip.jpeg
├── cookieclassic.jpg
├── cookiecream.jpg
├── cookiemint.jpg
├── cookievan.jpg
├── logo.png
├── man.jpg
├── marshmallowcakecookie.jpeg
├── peanutbuttercookie.jpeg
├── powered_by.png
├── rainbowcakecookie.jpeg
└── redvelvetcakecookie.jpeg
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── Ui
│ ├── cart.dart
│ ├── cookie_cake.dart
│ ├── cookie_detail.dart
│ ├── cookie_icecream.dart
│ ├── cookie_page.dart
│ ├── home.dart
│ ├── home_page.dart
│ ├── login.dart
│ ├── profile.dart
│ ├── search.dart
│ └── signup.dart
├── View_Model
│ ├── cart_view_model.dart
│ ├── cookie_cake_view_model.dart
│ ├── cookie_detail_view_model.dart
│ ├── cookie_icecream_view_model.dart
│ ├── cookie_page_view_model.dart
│ ├── home_view_model.dart
│ ├── login_view_model.dart
│ ├── profile_view_model.dart
│ ├── search_view_model.dart
│ └── signup_view_model.dart
├── autoComplete.dart
├── base
│ ├── base_model.dart
│ └── base_view.dart
├── bottom_bar.dart
├── deviceSize.dart
├── locator.dart
├── main.dart
├── prefer.dart
├── repository.dart
├── routes.dart
├── splash.dart
├── validation.dart
└── view_state.dart
├── pubspec.lock
├── pubspec.yaml
├── screens
├── android1.png
├── android2.png
├── android3.png
├── android4.png
├── android5.png
├── android6.png
├── android7.png
├── demo.gif
├── iphone1.png
├── iphone2.png
├── iphone3.png
├── iphone4.png
├── iphone5.png
├── iphone6.png
└── iphone7.png
└── test
└── widget_test.dart
/.flutter-plugins-dependencies:
--------------------------------------------------------------------------------
1 | {"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"fluttertoast","dependencies":[]},{"name":"geolocator","dependencies":["google_api_availability","location_permissions"]},{"name":"google_api_availability","dependencies":[]},{"name":"google_maps_flutter","dependencies":[]},{"name":"location_permissions","dependencies":[]},{"name":"path_provider","dependencies":[]},{"name":"razorpay_flutter","dependencies":[]},{"name":"shared_preferences","dependencies":[]}]}
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .packages
28 | .pub-cache/
29 | .pub/
30 | /build/
31 |
32 | # Android related
33 | **/android/**/gradle-wrapper.jar
34 | **/android/.gradle
35 | **/android/captures/
36 | **/android/gradlew
37 | **/android/gradlew.bat
38 | **/android/local.properties
39 | **/android/**/GeneratedPluginRegistrant.java
40 |
41 | # iOS/XCode related
42 | **/ios/**/*.mode1v3
43 | **/ios/**/*.mode2v3
44 | **/ios/**/*.moved-aside
45 | **/ios/**/*.pbxuser
46 | **/ios/**/*.perspectivev3
47 | **/ios/**/*sync/
48 | **/ios/**/.sconsign.dblite
49 | **/ios/**/.tags*
50 | **/ios/**/.vagrant/
51 | **/ios/**/DerivedData/
52 | **/ios/**/Icon?
53 | **/ios/**/Pods/
54 | **/ios/**/.symlinks/
55 | **/ios/**/profile
56 | **/ios/**/xcuserdata
57 | **/ios/.generated/
58 | **/ios/Flutter/App.framework
59 | **/ios/Flutter/Flutter.framework
60 | **/ios/Flutter/Generated.xcconfig
61 | **/ios/Flutter/app.flx
62 | **/ios/Flutter/app.zip
63 | **/ios/Flutter/flutter_assets/
64 | **/ios/Flutter/flutter_export_environment.sh
65 | **/ios/ServiceDefinitions.json
66 | **/ios/Runner/GeneratedPluginRegistrant.*
67 |
68 | # Exceptions to above rules.
69 | !**/ios/**/default.mode1v3
70 | !**/ios/**/default.mode2v3
71 | !**/ios/**/default.pbxuser
72 | !**/ios/**/default.perspectivev3
73 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
74 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 68587a0916366e9512a78df22c44163d041dd5f3
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Flutter Bakery Shop Demo
2 |
3 | A Flutter app to showcase Bakery Shop Demo.
4 |
5 | # Demo
6 |
7 |
8 |
9 |
10 | # Android Screen
11 |
12 |
13 |
14 | # iOS Screen
15 |
16 |
17 |
18 |
19 | ## Getting Started
20 |
21 | For help getting started with Flutter, view our online
22 | [documentation](https://flutter.io/).
23 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.example.cookies_app"
42 | minSdkVersion 21
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
47 | }
48 |
49 | buildTypes {
50 | release {
51 | // TODO: Add your own signing config for the release build.
52 | // Signing with the debug keys for now, so `flutter run --release` works.
53 | signingConfig signingConfigs.debug
54 | }
55 | }
56 | }
57 |
58 | flutter {
59 | source '../..'
60 | }
61 |
62 | dependencies {
63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64 | testImplementation 'junit:junit:4.12'
65 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
66 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
67 | }
68 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
12 |
16 |
23 |
27 |
30 |
31 |
32 |
33 |
34 |
35 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/cookies_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.cookies_app
2 |
3 | import android.os.Bundle
4 |
5 | import io.flutter.app.FlutterActivity
6 | import io.flutter.plugins.GeneratedPluginRegistrant
7 |
8 | class MainActivity: FlutterActivity() {
9 | override fun onCreate(savedInstanceState: Bundle?) {
10 | super.onCreate(savedInstanceState)
11 | GeneratedPluginRegistrant.registerWith(this)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/cookiecream.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-hdpi/cookiecream.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/marshmallowcakecookie.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-hdpi/marshmallowcakecookie.jpeg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/cookiecream.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-mdpi/cookiecream.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/marshmallowcakecookie.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-mdpi/marshmallowcakecookie.jpeg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/cookiecream.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-xhdpi/cookiecream.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/marshmallowcakecookie.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-xhdpi/marshmallowcakecookie.jpeg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/cookiecream.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-xxhdpi/cookiecream.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/marshmallowcakecookie.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-xxhdpi/marshmallowcakecookie.jpeg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/cookiecream.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-xxxhdpi/cookiecream.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/marshmallowcakecookie.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/android/app/src/main/res/mipmap-xxxhdpi/marshmallowcakecookie.jpeg
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.2.71'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 | subprojects {
14 | project.configurations.all {
15 | resolutionStrategy.eachDependency { details ->
16 | if (details.requested.group == 'androidx.core' &&
17 | !details.requested.name.contains('androidx')) {
18 | details.useVersion "1.0.1"
19 | }
20 | }
21 | }
22 | }
23 |
24 | allprojects {
25 | repositories {
26 | google()
27 | jcenter()
28 | }
29 | }
30 |
31 | rootProject.buildDir = '../build'
32 | subprojects {
33 | project.buildDir = "${rootProject.buildDir}/${project.name}"
34 | }
35 | subprojects {
36 | project.evaluationDependsOn(':app')
37 | }
38 |
39 | task clean(type: Delete) {
40 | delete rootProject.buildDir
41 | }
42 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 | android.enableR8=true
5 |
6 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/assets/VarelaRound-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/VarelaRound-Regular.ttf
--------------------------------------------------------------------------------
/assets/browniecookies.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/browniecookies.jpg
--------------------------------------------------------------------------------
/assets/choclatecookiecake.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/choclatecookiecake.jpeg
--------------------------------------------------------------------------------
/assets/cookiechoco.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/cookiechoco.jpg
--------------------------------------------------------------------------------
/assets/cookiechocochip.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/cookiechocochip.jpeg
--------------------------------------------------------------------------------
/assets/cookieclassic.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/cookieclassic.jpg
--------------------------------------------------------------------------------
/assets/cookiecream.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/cookiecream.jpg
--------------------------------------------------------------------------------
/assets/cookiemint.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/cookiemint.jpg
--------------------------------------------------------------------------------
/assets/cookievan.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/cookievan.jpg
--------------------------------------------------------------------------------
/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/logo.png
--------------------------------------------------------------------------------
/assets/man.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/man.jpg
--------------------------------------------------------------------------------
/assets/marshmallowcakecookie.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/marshmallowcakecookie.jpeg
--------------------------------------------------------------------------------
/assets/peanutbuttercookie.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/peanutbuttercookie.jpeg
--------------------------------------------------------------------------------
/assets/powered_by.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/powered_by.png
--------------------------------------------------------------------------------
/assets/rainbowcakecookie.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/rainbowcakecookie.jpeg
--------------------------------------------------------------------------------
/assets/redvelvetcakecookie.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/assets/redvelvetcakecookie.jpeg
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | platform :ios, '10.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def parse_KV_file(file, separator='=')
14 | file_abs_path = File.expand_path(file)
15 | if !File.exists? file_abs_path
16 | return [];
17 | end
18 | generated_key_values = {}
19 | skip_line_start_symbols = ["#", "/"]
20 | File.foreach(file_abs_path) do |line|
21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
22 | plugin = line.split(pattern=separator)
23 | if plugin.length == 2
24 | podname = plugin[0].strip()
25 | path = plugin[1].strip()
26 | podpath = File.expand_path("#{path}", file_abs_path)
27 | generated_key_values[podname] = podpath
28 | else
29 | puts "Invalid plugin specification: #{line}"
30 | end
31 | end
32 | generated_key_values
33 | end
34 |
35 | target 'Runner' do
36 | use_frameworks!
37 | use_modular_headers!
38 |
39 | # Flutter Pod
40 |
41 | copied_flutter_dir = File.join(__dir__, 'Flutter')
42 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
43 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
44 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
45 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
46 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
47 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
48 |
49 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
50 | unless File.exist?(generated_xcode_build_settings_path)
51 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
52 | end
53 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
54 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
55 |
56 | unless File.exist?(copied_framework_path)
57 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
58 | end
59 | unless File.exist?(copied_podspec_path)
60 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
61 | end
62 | end
63 |
64 | # Keep pod path relative so it can be checked into Podfile.lock.
65 | pod 'Flutter', :path => 'Flutter'
66 |
67 | # Plugin Pods
68 |
69 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
70 | # referring to absolute paths on developers' machines.
71 | system('rm -rf .symlinks')
72 | system('mkdir -p .symlinks/plugins')
73 | plugin_pods = parse_KV_file('../.flutter-plugins')
74 | plugin_pods.each do |name, path|
75 | symlink = File.join('.symlinks', 'plugins', name)
76 | File.symlink(path, symlink)
77 | pod name, :path => File.join(symlink, 'ios')
78 | end
79 | end
80 |
81 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
82 | install! 'cocoapods', :disable_input_output_paths => true
83 |
84 | post_install do |installer|
85 | installer.pods_project.targets.each do |target|
86 | target.build_configurations.each do |config|
87 | config.build_settings['ENABLE_BITCODE'] = 'NO'
88 | end
89 | end
90 | end
91 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - fluttertoast (0.0.2):
4 | - Flutter
5 | - geolocator (5.2.0):
6 | - Flutter
7 | - google_api_availability (2.0.2):
8 | - Flutter
9 | - google_maps_flutter (0.0.1):
10 | - Flutter
11 | - GoogleMaps
12 | - GoogleMaps (3.7.0):
13 | - GoogleMaps/Maps (= 3.7.0)
14 | - GoogleMaps/Base (3.7.0)
15 | - GoogleMaps/Maps (3.7.0):
16 | - GoogleMaps/Base
17 | - "location_permissions (2.0.4+1)":
18 | - Flutter
19 | - path_provider (0.0.1):
20 | - Flutter
21 | - razorpay-pod (1.1.4)
22 | - razorpay_flutter (1.1.1):
23 | - Flutter
24 | - razorpay-pod (~> 1.1.4)
25 | - shared_preferences (0.0.1):
26 | - Flutter
27 |
28 | DEPENDENCIES:
29 | - Flutter (from `Flutter`)
30 | - fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
31 | - geolocator (from `.symlinks/plugins/geolocator/ios`)
32 | - google_api_availability (from `.symlinks/plugins/google_api_availability/ios`)
33 | - google_maps_flutter (from `.symlinks/plugins/google_maps_flutter/ios`)
34 | - location_permissions (from `.symlinks/plugins/location_permissions/ios`)
35 | - path_provider (from `.symlinks/plugins/path_provider/ios`)
36 | - razorpay_flutter (from `.symlinks/plugins/razorpay_flutter/ios`)
37 | - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
38 |
39 | SPEC REPOS:
40 | trunk:
41 | - GoogleMaps
42 | - razorpay-pod
43 |
44 | EXTERNAL SOURCES:
45 | Flutter:
46 | :path: Flutter
47 | fluttertoast:
48 | :path: ".symlinks/plugins/fluttertoast/ios"
49 | geolocator:
50 | :path: ".symlinks/plugins/geolocator/ios"
51 | google_api_availability:
52 | :path: ".symlinks/plugins/google_api_availability/ios"
53 | google_maps_flutter:
54 | :path: ".symlinks/plugins/google_maps_flutter/ios"
55 | location_permissions:
56 | :path: ".symlinks/plugins/location_permissions/ios"
57 | path_provider:
58 | :path: ".symlinks/plugins/path_provider/ios"
59 | razorpay_flutter:
60 | :path: ".symlinks/plugins/razorpay_flutter/ios"
61 | shared_preferences:
62 | :path: ".symlinks/plugins/shared_preferences/ios"
63 |
64 | SPEC CHECKSUMS:
65 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
66 | fluttertoast: b644586ef3b16f67fae9a1f8754cef6b2d6b634b
67 | geolocator: cf6ecc0e5beffb31a51aee7ad6e49a49b293df32
68 | google_api_availability: 6f1017d3a61be12be3bd9f929cc5b2606f24ae7f
69 | google_maps_flutter: d0dd62f5a7d39bae61057eb9f52dd778d99c7c6c
70 | GoogleMaps: 55da829c68aa931f3ae982b9e341cc2f3d89c587
71 | location_permissions: 360d12ecd1c94a4cab68585f508be1d5ad944c8b
72 | path_provider: fb74bd0465e96b594bb3b5088ee4a4e7bb1f2a9d
73 | razorpay-pod: 592624080178be4c6121216508e7857fc245f4b8
74 | razorpay_flutter: 2af1a15499076b1798d81bc35e4837d467b2daac
75 | shared_preferences: 430726339841afefe5142b9c1f50cb6bd7793e01
76 |
77 | PODFILE CHECKSUM: 8f8c861fcb052da2e8967f107e8931ee7ae35f38
78 |
79 | COCOAPODS: 1.8.4
80 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
17 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
18 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
19 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
20 | A3DA87DFA88E13C99CBF3929 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EF1A366AB31CBC5444D7C43 /* Pods_Runner.framework */; };
21 | /* End PBXBuildFile section */
22 |
23 | /* Begin PBXCopyFilesBuildPhase section */
24 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
25 | isa = PBXCopyFilesBuildPhase;
26 | buildActionMask = 2147483647;
27 | dstPath = "";
28 | dstSubfolderSpec = 10;
29 | files = (
30 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
31 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
32 | );
33 | name = "Embed Frameworks";
34 | runOnlyForDeploymentPostprocessing = 0;
35 | };
36 | /* End PBXCopyFilesBuildPhase section */
37 |
38 | /* Begin PBXFileReference section */
39 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
40 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
41 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
42 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
43 | 5EF1A366AB31CBC5444D7C43 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
44 | 7064F2887A04EB9B8AD366E2 /* 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 = ""; };
45 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
46 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
47 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
48 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
49 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
50 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
51 | 9744BC0311FE10D4CD47F0F8 /* 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 = ""; };
52 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
53 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
54 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
55 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
56 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
57 | CD1D12F1182648FE675EA9D6 /* 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 = ""; };
58 | /* End PBXFileReference section */
59 |
60 | /* Begin PBXFrameworksBuildPhase section */
61 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
62 | isa = PBXFrameworksBuildPhase;
63 | buildActionMask = 2147483647;
64 | files = (
65 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
66 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
67 | A3DA87DFA88E13C99CBF3929 /* Pods_Runner.framework in Frameworks */,
68 | );
69 | runOnlyForDeploymentPostprocessing = 0;
70 | };
71 | /* End PBXFrameworksBuildPhase section */
72 |
73 | /* Begin PBXGroup section */
74 | 9740EEB11CF90186004384FC /* Flutter */ = {
75 | isa = PBXGroup;
76 | children = (
77 | 3B80C3931E831B6300D905FE /* App.framework */,
78 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
79 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
80 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
81 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
82 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
83 | );
84 | name = Flutter;
85 | sourceTree = "";
86 | };
87 | 97C146E51CF9000F007C117D = {
88 | isa = PBXGroup;
89 | children = (
90 | 9740EEB11CF90186004384FC /* Flutter */,
91 | 97C146F01CF9000F007C117D /* Runner */,
92 | 97C146EF1CF9000F007C117D /* Products */,
93 | B089E4C36AA3087374A52EEA /* Pods */,
94 | C74F072068B7DA96CD904E4C /* Frameworks */,
95 | );
96 | sourceTree = "";
97 | };
98 | 97C146EF1CF9000F007C117D /* Products */ = {
99 | isa = PBXGroup;
100 | children = (
101 | 97C146EE1CF9000F007C117D /* Runner.app */,
102 | );
103 | name = Products;
104 | sourceTree = "";
105 | };
106 | 97C146F01CF9000F007C117D /* Runner */ = {
107 | isa = PBXGroup;
108 | children = (
109 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
110 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
111 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
112 | 97C147021CF9000F007C117D /* Info.plist */,
113 | 97C146F11CF9000F007C117D /* Supporting Files */,
114 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
115 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
116 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
117 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
118 | );
119 | path = Runner;
120 | sourceTree = "";
121 | };
122 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
123 | isa = PBXGroup;
124 | children = (
125 | );
126 | name = "Supporting Files";
127 | sourceTree = "";
128 | };
129 | B089E4C36AA3087374A52EEA /* Pods */ = {
130 | isa = PBXGroup;
131 | children = (
132 | CD1D12F1182648FE675EA9D6 /* Pods-Runner.debug.xcconfig */,
133 | 7064F2887A04EB9B8AD366E2 /* Pods-Runner.release.xcconfig */,
134 | 9744BC0311FE10D4CD47F0F8 /* Pods-Runner.profile.xcconfig */,
135 | );
136 | path = Pods;
137 | sourceTree = "";
138 | };
139 | C74F072068B7DA96CD904E4C /* Frameworks */ = {
140 | isa = PBXGroup;
141 | children = (
142 | 5EF1A366AB31CBC5444D7C43 /* Pods_Runner.framework */,
143 | );
144 | name = Frameworks;
145 | sourceTree = "";
146 | };
147 | /* End PBXGroup section */
148 |
149 | /* Begin PBXNativeTarget section */
150 | 97C146ED1CF9000F007C117D /* Runner */ = {
151 | isa = PBXNativeTarget;
152 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
153 | buildPhases = (
154 | 8F629F2DCC4C7C4C82F3F1F3 /* [CP] Check Pods Manifest.lock */,
155 | 9740EEB61CF901F6004384FC /* Run Script */,
156 | 97C146EA1CF9000F007C117D /* Sources */,
157 | 97C146EB1CF9000F007C117D /* Frameworks */,
158 | 97C146EC1CF9000F007C117D /* Resources */,
159 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
160 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
161 | 5C222E7C8D9B14B3F2686EDE /* [CP] Embed Pods Frameworks */,
162 | B514FE26E49FB4936E180E20 /* [CP] Copy Pods Resources */,
163 | );
164 | buildRules = (
165 | );
166 | dependencies = (
167 | );
168 | name = Runner;
169 | productName = Runner;
170 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
171 | productType = "com.apple.product-type.application";
172 | };
173 | /* End PBXNativeTarget section */
174 |
175 | /* Begin PBXProject section */
176 | 97C146E61CF9000F007C117D /* Project object */ = {
177 | isa = PBXProject;
178 | attributes = {
179 | LastUpgradeCheck = 1020;
180 | ORGANIZATIONNAME = "The Chromium Authors";
181 | TargetAttributes = {
182 | 97C146ED1CF9000F007C117D = {
183 | CreatedOnToolsVersion = 7.3.1;
184 | DevelopmentTeam = 7C4R54BRA9;
185 | LastSwiftMigration = 1100;
186 | };
187 | };
188 | };
189 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
190 | compatibilityVersion = "Xcode 3.2";
191 | developmentRegion = en;
192 | hasScannedForEncodings = 0;
193 | knownRegions = (
194 | en,
195 | Base,
196 | );
197 | mainGroup = 97C146E51CF9000F007C117D;
198 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
199 | projectDirPath = "";
200 | projectRoot = "";
201 | targets = (
202 | 97C146ED1CF9000F007C117D /* Runner */,
203 | );
204 | };
205 | /* End PBXProject section */
206 |
207 | /* Begin PBXResourcesBuildPhase section */
208 | 97C146EC1CF9000F007C117D /* Resources */ = {
209 | isa = PBXResourcesBuildPhase;
210 | buildActionMask = 2147483647;
211 | files = (
212 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
213 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
214 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
215 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
216 | );
217 | runOnlyForDeploymentPostprocessing = 0;
218 | };
219 | /* End PBXResourcesBuildPhase section */
220 |
221 | /* Begin PBXShellScriptBuildPhase section */
222 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
223 | isa = PBXShellScriptBuildPhase;
224 | buildActionMask = 2147483647;
225 | files = (
226 | );
227 | inputPaths = (
228 | );
229 | name = "Thin Binary";
230 | outputPaths = (
231 | );
232 | runOnlyForDeploymentPostprocessing = 0;
233 | shellPath = /bin/sh;
234 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
235 | };
236 | 5C222E7C8D9B14B3F2686EDE /* [CP] Embed Pods Frameworks */ = {
237 | isa = PBXShellScriptBuildPhase;
238 | buildActionMask = 2147483647;
239 | files = (
240 | );
241 | inputPaths = (
242 | );
243 | name = "[CP] Embed Pods Frameworks";
244 | outputPaths = (
245 | );
246 | runOnlyForDeploymentPostprocessing = 0;
247 | shellPath = /bin/sh;
248 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
249 | showEnvVarsInLog = 0;
250 | };
251 | 8F629F2DCC4C7C4C82F3F1F3 /* [CP] Check Pods Manifest.lock */ = {
252 | isa = PBXShellScriptBuildPhase;
253 | buildActionMask = 2147483647;
254 | files = (
255 | );
256 | inputFileListPaths = (
257 | );
258 | inputPaths = (
259 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
260 | "${PODS_ROOT}/Manifest.lock",
261 | );
262 | name = "[CP] Check Pods Manifest.lock";
263 | outputFileListPaths = (
264 | );
265 | outputPaths = (
266 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
267 | );
268 | runOnlyForDeploymentPostprocessing = 0;
269 | shellPath = /bin/sh;
270 | 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";
271 | showEnvVarsInLog = 0;
272 | };
273 | 9740EEB61CF901F6004384FC /* Run Script */ = {
274 | isa = PBXShellScriptBuildPhase;
275 | buildActionMask = 2147483647;
276 | files = (
277 | );
278 | inputPaths = (
279 | );
280 | name = "Run Script";
281 | outputPaths = (
282 | );
283 | runOnlyForDeploymentPostprocessing = 0;
284 | shellPath = /bin/sh;
285 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
286 | };
287 | B514FE26E49FB4936E180E20 /* [CP] Copy Pods Resources */ = {
288 | isa = PBXShellScriptBuildPhase;
289 | buildActionMask = 2147483647;
290 | files = (
291 | );
292 | inputPaths = (
293 | );
294 | name = "[CP] Copy Pods Resources";
295 | outputPaths = (
296 | );
297 | runOnlyForDeploymentPostprocessing = 0;
298 | shellPath = /bin/sh;
299 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
300 | showEnvVarsInLog = 0;
301 | };
302 | /* End PBXShellScriptBuildPhase section */
303 |
304 | /* Begin PBXSourcesBuildPhase section */
305 | 97C146EA1CF9000F007C117D /* Sources */ = {
306 | isa = PBXSourcesBuildPhase;
307 | buildActionMask = 2147483647;
308 | files = (
309 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
310 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
311 | );
312 | runOnlyForDeploymentPostprocessing = 0;
313 | };
314 | /* End PBXSourcesBuildPhase section */
315 |
316 | /* Begin PBXVariantGroup section */
317 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
318 | isa = PBXVariantGroup;
319 | children = (
320 | 97C146FB1CF9000F007C117D /* Base */,
321 | );
322 | name = Main.storyboard;
323 | sourceTree = "";
324 | };
325 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
326 | isa = PBXVariantGroup;
327 | children = (
328 | 97C147001CF9000F007C117D /* Base */,
329 | );
330 | name = LaunchScreen.storyboard;
331 | sourceTree = "";
332 | };
333 | /* End PBXVariantGroup section */
334 |
335 | /* Begin XCBuildConfiguration section */
336 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
337 | isa = XCBuildConfiguration;
338 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
339 | buildSettings = {
340 | ALWAYS_SEARCH_USER_PATHS = NO;
341 | CLANG_ANALYZER_NONNULL = YES;
342 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
343 | CLANG_CXX_LIBRARY = "libc++";
344 | CLANG_ENABLE_MODULES = YES;
345 | CLANG_ENABLE_OBJC_ARC = YES;
346 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
347 | CLANG_WARN_BOOL_CONVERSION = YES;
348 | CLANG_WARN_COMMA = YES;
349 | CLANG_WARN_CONSTANT_CONVERSION = YES;
350 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
351 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
352 | CLANG_WARN_EMPTY_BODY = YES;
353 | CLANG_WARN_ENUM_CONVERSION = YES;
354 | CLANG_WARN_INFINITE_RECURSION = YES;
355 | CLANG_WARN_INT_CONVERSION = YES;
356 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
357 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
358 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
359 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
360 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
361 | CLANG_WARN_STRICT_PROTOTYPES = YES;
362 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
363 | CLANG_WARN_UNREACHABLE_CODE = YES;
364 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
365 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
366 | COPY_PHASE_STRIP = NO;
367 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
368 | ENABLE_NS_ASSERTIONS = NO;
369 | ENABLE_STRICT_OBJC_MSGSEND = YES;
370 | GCC_C_LANGUAGE_STANDARD = gnu99;
371 | GCC_NO_COMMON_BLOCKS = YES;
372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
374 | GCC_WARN_UNDECLARED_SELECTOR = YES;
375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
376 | GCC_WARN_UNUSED_FUNCTION = YES;
377 | GCC_WARN_UNUSED_VARIABLE = YES;
378 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
379 | MTL_ENABLE_DEBUG_INFO = NO;
380 | SDKROOT = iphoneos;
381 | SUPPORTED_PLATFORMS = iphoneos;
382 | TARGETED_DEVICE_FAMILY = "1,2";
383 | VALIDATE_PRODUCT = YES;
384 | };
385 | name = Profile;
386 | };
387 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
388 | isa = XCBuildConfiguration;
389 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
390 | buildSettings = {
391 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
392 | CLANG_ENABLE_MODULES = YES;
393 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
394 | DEVELOPMENT_TEAM = 7C4R54BRA9;
395 | ENABLE_BITCODE = NO;
396 | FRAMEWORK_SEARCH_PATHS = (
397 | "$(inherited)",
398 | "$(PROJECT_DIR)/Flutter",
399 | );
400 | INFOPLIST_FILE = Runner/Info.plist;
401 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
402 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
403 | LIBRARY_SEARCH_PATHS = (
404 | "$(inherited)",
405 | "$(PROJECT_DIR)/Flutter",
406 | );
407 | PRODUCT_BUNDLE_IDENTIFIER = com.example.shaiqFlutter;
408 | PRODUCT_NAME = "$(TARGET_NAME)";
409 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
410 | SWIFT_VERSION = 5.0;
411 | VERSIONING_SYSTEM = "apple-generic";
412 | };
413 | name = Profile;
414 | };
415 | 97C147031CF9000F007C117D /* Debug */ = {
416 | isa = XCBuildConfiguration;
417 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
418 | buildSettings = {
419 | ALWAYS_SEARCH_USER_PATHS = NO;
420 | CLANG_ANALYZER_NONNULL = YES;
421 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
422 | CLANG_CXX_LIBRARY = "libc++";
423 | CLANG_ENABLE_MODULES = YES;
424 | CLANG_ENABLE_OBJC_ARC = YES;
425 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
426 | CLANG_WARN_BOOL_CONVERSION = YES;
427 | CLANG_WARN_COMMA = YES;
428 | CLANG_WARN_CONSTANT_CONVERSION = YES;
429 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
430 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
431 | CLANG_WARN_EMPTY_BODY = YES;
432 | CLANG_WARN_ENUM_CONVERSION = YES;
433 | CLANG_WARN_INFINITE_RECURSION = YES;
434 | CLANG_WARN_INT_CONVERSION = YES;
435 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
436 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
437 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
438 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
439 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
440 | CLANG_WARN_STRICT_PROTOTYPES = YES;
441 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
442 | CLANG_WARN_UNREACHABLE_CODE = YES;
443 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
444 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
445 | COPY_PHASE_STRIP = NO;
446 | DEBUG_INFORMATION_FORMAT = dwarf;
447 | ENABLE_STRICT_OBJC_MSGSEND = YES;
448 | ENABLE_TESTABILITY = YES;
449 | GCC_C_LANGUAGE_STANDARD = gnu99;
450 | GCC_DYNAMIC_NO_PIC = NO;
451 | GCC_NO_COMMON_BLOCKS = YES;
452 | GCC_OPTIMIZATION_LEVEL = 0;
453 | GCC_PREPROCESSOR_DEFINITIONS = (
454 | "DEBUG=1",
455 | "$(inherited)",
456 | );
457 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
458 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
459 | GCC_WARN_UNDECLARED_SELECTOR = YES;
460 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
461 | GCC_WARN_UNUSED_FUNCTION = YES;
462 | GCC_WARN_UNUSED_VARIABLE = YES;
463 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
464 | MTL_ENABLE_DEBUG_INFO = YES;
465 | ONLY_ACTIVE_ARCH = YES;
466 | SDKROOT = iphoneos;
467 | TARGETED_DEVICE_FAMILY = "1,2";
468 | };
469 | name = Debug;
470 | };
471 | 97C147041CF9000F007C117D /* Release */ = {
472 | isa = XCBuildConfiguration;
473 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
474 | buildSettings = {
475 | ALWAYS_SEARCH_USER_PATHS = NO;
476 | CLANG_ANALYZER_NONNULL = YES;
477 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
478 | CLANG_CXX_LIBRARY = "libc++";
479 | CLANG_ENABLE_MODULES = YES;
480 | CLANG_ENABLE_OBJC_ARC = YES;
481 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
482 | CLANG_WARN_BOOL_CONVERSION = YES;
483 | CLANG_WARN_COMMA = YES;
484 | CLANG_WARN_CONSTANT_CONVERSION = YES;
485 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
486 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
487 | CLANG_WARN_EMPTY_BODY = YES;
488 | CLANG_WARN_ENUM_CONVERSION = YES;
489 | CLANG_WARN_INFINITE_RECURSION = YES;
490 | CLANG_WARN_INT_CONVERSION = YES;
491 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
492 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
493 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
494 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
495 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
496 | CLANG_WARN_STRICT_PROTOTYPES = YES;
497 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
498 | CLANG_WARN_UNREACHABLE_CODE = YES;
499 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
500 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
501 | COPY_PHASE_STRIP = NO;
502 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
503 | ENABLE_NS_ASSERTIONS = NO;
504 | ENABLE_STRICT_OBJC_MSGSEND = YES;
505 | GCC_C_LANGUAGE_STANDARD = gnu99;
506 | GCC_NO_COMMON_BLOCKS = YES;
507 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
508 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
509 | GCC_WARN_UNDECLARED_SELECTOR = YES;
510 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
511 | GCC_WARN_UNUSED_FUNCTION = YES;
512 | GCC_WARN_UNUSED_VARIABLE = YES;
513 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
514 | MTL_ENABLE_DEBUG_INFO = NO;
515 | SDKROOT = iphoneos;
516 | SUPPORTED_PLATFORMS = iphoneos;
517 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
518 | TARGETED_DEVICE_FAMILY = "1,2";
519 | VALIDATE_PRODUCT = YES;
520 | };
521 | name = Release;
522 | };
523 | 97C147061CF9000F007C117D /* Debug */ = {
524 | isa = XCBuildConfiguration;
525 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
526 | buildSettings = {
527 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
528 | CLANG_ENABLE_MODULES = YES;
529 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
530 | DEVELOPMENT_TEAM = 7C4R54BRA9;
531 | ENABLE_BITCODE = NO;
532 | FRAMEWORK_SEARCH_PATHS = (
533 | "$(inherited)",
534 | "$(PROJECT_DIR)/Flutter",
535 | );
536 | INFOPLIST_FILE = Runner/Info.plist;
537 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
538 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
539 | LIBRARY_SEARCH_PATHS = (
540 | "$(inherited)",
541 | "$(PROJECT_DIR)/Flutter",
542 | );
543 | PRODUCT_BUNDLE_IDENTIFIER = com.example.shaiqFlutter;
544 | PRODUCT_NAME = "$(TARGET_NAME)";
545 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
546 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
547 | SWIFT_VERSION = 5.0;
548 | VERSIONING_SYSTEM = "apple-generic";
549 | };
550 | name = Debug;
551 | };
552 | 97C147071CF9000F007C117D /* Release */ = {
553 | isa = XCBuildConfiguration;
554 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
555 | buildSettings = {
556 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
557 | CLANG_ENABLE_MODULES = YES;
558 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
559 | DEVELOPMENT_TEAM = 7C4R54BRA9;
560 | ENABLE_BITCODE = NO;
561 | FRAMEWORK_SEARCH_PATHS = (
562 | "$(inherited)",
563 | "$(PROJECT_DIR)/Flutter",
564 | );
565 | INFOPLIST_FILE = Runner/Info.plist;
566 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
567 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
568 | LIBRARY_SEARCH_PATHS = (
569 | "$(inherited)",
570 | "$(PROJECT_DIR)/Flutter",
571 | );
572 | PRODUCT_BUNDLE_IDENTIFIER = com.example.shaiqFlutter;
573 | PRODUCT_NAME = "$(TARGET_NAME)";
574 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
575 | SWIFT_VERSION = 5.0;
576 | VERSIONING_SYSTEM = "apple-generic";
577 | };
578 | name = Release;
579 | };
580 | /* End XCBuildConfiguration section */
581 |
582 | /* Begin XCConfigurationList section */
583 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
584 | isa = XCConfigurationList;
585 | buildConfigurations = (
586 | 97C147031CF9000F007C117D /* Debug */,
587 | 97C147041CF9000F007C117D /* Release */,
588 | 249021D3217E4FDB00AE95B9 /* Profile */,
589 | );
590 | defaultConfigurationIsVisible = 0;
591 | defaultConfigurationName = Release;
592 | };
593 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
594 | isa = XCConfigurationList;
595 | buildConfigurations = (
596 | 97C147061CF9000F007C117D /* Debug */,
597 | 97C147071CF9000F007C117D /* Release */,
598 | 249021D4217E4FDB00AE95B9 /* Profile */,
599 | );
600 | defaultConfigurationIsVisible = 0;
601 | defaultConfigurationName = Release;
602 | };
603 | /* End XCConfigurationList section */
604 | };
605 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
606 | }
607 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 | import GoogleMaps
4 |
5 | @UIApplicationMain
6 | @objc class AppDelegate: FlutterAppDelegate {
7 | override func application(
8 | _ application: UIApplication,
9 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10 | ) -> Bool {
11 | GMSServices.provideAPIKey("AIzaSyADx7e9LEaggUjkWhEhHyxJDeMR1ElR1wk")
12 | GeneratedPluginRegistrant.register(with: self)
13 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | shaiq_flutter
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 | io.flutter.embedded_views_preview
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
--------------------------------------------------------------------------------
/lib/Ui/cart.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/Ui/home.dart';
2 | import 'package:cookies_app/View_Model/cart_view_model.dart';
3 | import 'package:cookies_app/base/base_view.dart';
4 | import 'package:cookies_app/bottom_bar.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:razorpay_flutter/razorpay_flutter.dart';
7 | import 'package:fluttertoast/fluttertoast.dart';
8 |
9 | class Cart extends StatefulWidget {
10 | /*final assetPath, cookieprice, cookiename;*/
11 |
12 | /*Cart({this.assetPath, this.cookieprice, this.cookiename});*/
13 |
14 | @override
15 | _CartState createState() => _CartState();
16 | }
17 |
18 | class _CartState extends State {
19 | Razorpay _razorpay;
20 |
21 | @override
22 | void initState() {
23 | super.initState();
24 | _razorpay = Razorpay();
25 | _razorpay.on(Razorpay.EVENT_PAYMENT_SUCCESS, _handlePaymentSuccess);
26 | _razorpay.on(Razorpay.EVENT_PAYMENT_ERROR, _handlePaymentError);
27 | _razorpay.on(Razorpay.EVENT_EXTERNAL_WALLET, _handleExternalWallet);
28 | }
29 |
30 | @override
31 | void dispose() {
32 | super.dispose();
33 | _razorpay.clear();
34 | }
35 |
36 | void openCheckout() async {
37 | var options = {
38 | 'key': 'rzp_test_NNbwJ9tmM0fbxj',
39 | 'amount': 28200,
40 | 'name': 'Shaiq',
41 | 'description': 'Payment',
42 | 'prefill': {'contact': '8888888888', 'email': 'test@razorpay.com'},
43 | 'external': {
44 | 'wallets': ['paytm']
45 | }
46 | };
47 |
48 | try {
49 | _razorpay.open(options);
50 | } catch (e) {
51 | debugPrint(e);
52 | }
53 | }
54 |
55 | void _handlePaymentSuccess(PaymentSuccessResponse response) {
56 | Fluttertoast.showToast(
57 | msg: "SUCCESS: " + response.paymentId, timeInSecForIos: 4);
58 | }
59 |
60 | void _handlePaymentError(PaymentFailureResponse response) {
61 | Fluttertoast.showToast(
62 | msg: "ERROR: " + response.code.toString() + " - " + response.message,
63 | timeInSecForIos: 4);
64 | }
65 |
66 | void _handleExternalWallet(ExternalWalletResponse response) {
67 | Fluttertoast.showToast(
68 | msg: "EXTERNAL_WALLET: " + response.walletName, timeInSecForIos: 4);
69 | }
70 |
71 | @override
72 | Widget build(BuildContext context) {
73 | return BaseView(
74 | onModelReady: (model) {},
75 | builder: (context, model, build) {
76 | return Scaffold(
77 | appBar: AppBar(
78 | backgroundColor: Colors.white,
79 | elevation: 0.0,
80 | centerTitle: true,
81 | leading: IconButton(
82 | icon: Icon(Icons.arrow_back, color: Color(0xFF545D68)),
83 | onPressed: () {
84 | Navigator.of(context).pop();
85 | },
86 | ),
87 | title: Text('Cart',
88 | style: TextStyle(
89 | fontSize: 20.0,
90 | color: Color(0xFF545D68))),
91 | actions: [
92 | IconButton(
93 | icon: Icon(
94 | Icons.notifications_none, color: Color(0xFFF17532)),
95 | onPressed: () {},
96 | ),
97 | ],
98 | ),
99 |
100 | body: ListView(
101 | children: [
102 | SizedBox(height: 15.0),
103 | Padding(
104 | padding: const EdgeInsets.all(8.0),
105 | child: Card(
106 | child: Row(
107 | children: [
108 | SizedBox(height: 15.0),
109 | Hero(
110 | tag: 'assets/browniecookies.jpg',
111 | child: Image.asset('assets/browniecookies.jpg',
112 | height: 90.0,
113 | width: 90.0,
114 | fit: BoxFit.contain
115 | )
116 | ),
117 | SizedBox(width: 20.0),
118 | Column(
119 | children: [
120 | Text('\$3.99',
121 | style: TextStyle(
122 | fontSize: 22.0,
123 | fontWeight: FontWeight.bold,
124 | color: Color(0xFFF17532))),
125 | SizedBox(height: 10.0),
126 | Text('brownie cookies',
127 | style: TextStyle(
128 | color: Color(0xFF575E67),
129 | fontSize: 24.0)),
130 | ],
131 | ),
132 |
133 | ],
134 | ),
135 | ),
136 | ),
137 |
138 | SizedBox(height: 20.0),
139 | InkWell(
140 | onTap: () {
141 | openCheckout();
142 | },
143 | child: Padding(
144 | padding: const EdgeInsets.only(left:18.0,right: 18),
145 | child: Container(
146 | width: MediaQuery
147 | .of(context)
148 | .size
149 | .width - 50.0,
150 | height: 50.0,
151 | decoration: BoxDecoration(
152 | borderRadius:
153 | BorderRadius.circular(25.0),
154 | color: Color(0xFFF17532)),
155 | child: Center(
156 | child: Text('Checkout',
157 | style: TextStyle(
158 | fontFamily: 'nunito',
159 | fontSize: 14.0,
160 | fontWeight: FontWeight.bold,
161 | color: Colors.white)))),
162 | ))
163 | /* Center(
164 | child: InkWell(
165 | child: Container(
166 | width: MediaQuery
167 | .of(context)
168 | .size
169 | .width - 50.0,
170 | height: 50.0,
171 | decoration: BoxDecoration(
172 | borderRadius: BorderRadius.circular(25.0),
173 | color: Color(0xFFF17532)
174 | ),
175 | child: Center(
176 | child: Text('Checkout',
177 | style: TextStyle(
178 | fontSize: 14.0,
179 | fontWeight: FontWeight.bold,
180 | color: Colors.white
181 | ),
182 | )
183 | )
184 | ),
185 | onTap: () {
186 | openCheckout();
187 | },
188 | )
189 | )*/
190 | ]
191 | ),
192 |
193 |
194 | );
195 | }
196 | );
197 | }
198 | }
199 |
--------------------------------------------------------------------------------
/lib/Ui/cookie_cake.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/View_Model/cookie_cake_view_model.dart';
2 | import 'package:cookies_app/base/base_view.dart';
3 | import 'package:cookies_app/Ui/cookie_detail.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class CookieCake extends StatelessWidget {
7 | @override
8 | Widget build(BuildContext context) {
9 | return BaseView(
10 | onModelReady: (model) {},
11 | builder: (context, model, build) {
12 | return Scaffold(
13 | backgroundColor: Color(0xFFFCFAF8),
14 | body: ListView(
15 | children: [
16 | SizedBox(height: 15.0),
17 | Container(
18 | padding: EdgeInsets.only(right: 15.0,left: 15),
19 | width: MediaQuery
20 | .of(context)
21 | .size
22 | .width - 30.0,
23 | height: MediaQuery
24 | .of(context)
25 | .size
26 | .height - 30.0,
27 | child: GridView.count(
28 | crossAxisCount: 2,
29 | primary: false,
30 | crossAxisSpacing: 10.0,
31 | mainAxisSpacing: 15.0,
32 | childAspectRatio: 0.7,
33 | children: [
34 | _buildCard('choclate cake', '\$3.99',
35 | 'assets/choclatecookiecake.jpeg',
36 | false, false, context),
37 | _buildCard('marshmallow cake', '\$5.99',
38 | 'assets/marshmallowcakecookie.jpeg',
39 | true, false, context),
40 | _buildCard('redvelvet cake', '\$1.99',
41 | 'assets/redvelvetcakecookie.jpeg', false, true,
42 | context),
43 | _buildCard('rainbow cake', '\$2.99',
44 | 'assets/rainbowcakecookie.jpeg',
45 | false, false, context)
46 | ],
47 | )),
48 | SizedBox(height: 15.0)
49 | ],
50 | ),
51 | );
52 | }
53 | );
54 | }
55 |
56 | Widget _buildCard(String name, String price, String imgPath, bool added,
57 | bool isFavorite, context) {
58 | return Padding(
59 | padding: EdgeInsets.only(top: 5.0, bottom: 5.0, left: 5.0, right: 5.0),
60 | child: InkWell(
61 | onTap: () {
62 | Navigator.of(context).push(
63 | MaterialPageRoute(builder: (context) => CookieDetail(
64 | assetPath: imgPath,
65 | cookieprice:price,
66 | cookiename: name
67 | )));
68 | },
69 | child: Container(
70 | decoration: BoxDecoration(
71 | borderRadius: BorderRadius.circular(15.0),
72 | boxShadow: [
73 | BoxShadow(
74 | color: Colors.grey.withOpacity(0.2),
75 | spreadRadius: 3.0,
76 | blurRadius: 5.0)
77 | ],
78 | color: Colors.white),
79 | child: Column(children: [
80 | Padding(
81 | padding: EdgeInsets.all(5.0),
82 | child: Row(
83 | mainAxisAlignment: MainAxisAlignment.end,
84 | children: [
85 | isFavorite
86 | ? Icon(Icons.favorite, color: Color(0xFFEF7532))
87 | : Icon(Icons.favorite_border,
88 | color: Color(0xFFEF7532))
89 | ])),
90 | Hero(
91 | tag: imgPath,
92 | child: Container(
93 | height: 75.0,
94 | width: 75.0,
95 | decoration: BoxDecoration(
96 | image: DecorationImage(
97 | image: AssetImage(imgPath),
98 | fit: BoxFit.contain)))),
99 | SizedBox(height: 7.0),
100 | Text(price,
101 | style: TextStyle(
102 | color: Color(0xFFCC8053),
103 | fontSize: 14.0)),
104 | Text(name,
105 | style: TextStyle(
106 | color: Color(0xFF575E67),
107 | fontSize: 14.0)),
108 | Padding(
109 | padding: EdgeInsets.all(8.0),
110 | child: Container(color: Color(0xFFEBEBEB), height: 1.0)),
111 | Padding(
112 | padding: EdgeInsets.only(left: 5.0, right: 5.0),
113 | child: Row(
114 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
115 | children: [
116 | if (!added)...[
117 | Icon(Icons.shopping_basket,
118 | color: Color(0xFFD17E50), size: 12.0),
119 | Text('Add to cart',
120 | style: TextStyle(
121 | color: Color(0xFFD17E50),
122 | fontSize: 12.0))
123 | ],
124 | if (added) ...[
125 | Icon(Icons.remove_circle_outline,
126 | color: Color(0xFFD17E50), size: 12.0),
127 | Text('3',
128 | style: TextStyle(
129 | color: Color(0xFFD17E50),
130 | fontWeight: FontWeight.bold,
131 | fontSize: 12.0)),
132 | Icon(Icons.add_circle_outline,
133 | color: Color(0xFFD17E50), size: 12.0),
134 | ]
135 | ]))
136 | ]))));
137 | }
138 | }
139 |
--------------------------------------------------------------------------------
/lib/Ui/cookie_detail.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/Ui/home.dart';
2 | import 'package:cookies_app/View_Model/cookie_detail_view_model.dart';
3 | import 'package:cookies_app/base/base_view.dart';
4 | import 'package:cookies_app/bottom_bar.dart';
5 | import 'package:cookies_app/Ui/cart.dart';
6 | import 'package:flutter/material.dart';
7 |
8 | class CookieDetail extends StatelessWidget {
9 | final assetPath, cookieprice, cookiename;
10 |
11 | CookieDetail({this.assetPath, this.cookieprice, this.cookiename});
12 | @override
13 | Widget build(BuildContext context) {
14 | return BaseView(
15 | onModelReady: (model) {},
16 | builder: (context, model, build) {
17 | return Scaffold(
18 | appBar: AppBar(
19 | backgroundColor: Colors.white,
20 | elevation: 0.0,
21 | centerTitle: true,
22 | leading: IconButton(
23 | icon: Icon(Icons.arrow_back, color: Color(0xFF545D68)),
24 | onPressed: () {
25 | Navigator.of(context).pop();
26 | },
27 | ),
28 | title: Text('Pickup',
29 | style: TextStyle(
30 | fontSize: 20.0,
31 | color: Color(0xFF545D68))),
32 | actions: [
33 | IconButton(
34 | icon: Icon(
35 | Icons.notifications_none, color: Color(0xFFF17532)),
36 | onPressed: () {},
37 | ),
38 | ],
39 | ),
40 |
41 | body: ListView(
42 | children: [
43 | SizedBox(height: 15.0),
44 | Padding(
45 | padding: EdgeInsets.only(left: 20.0),
46 | child: Text(
47 | 'Cookie',
48 | style: TextStyle(
49 | fontSize: 42.0,
50 | fontWeight: FontWeight.bold,
51 | color: Color(0xFFF17532))
52 | ),
53 | ),
54 | SizedBox(height: 15.0),
55 | Hero(
56 | tag: assetPath,
57 | child: Image.asset(assetPath,
58 | height: 150.0,
59 | width: 100.0,
60 | fit: BoxFit.contain
61 | )
62 | ),
63 | SizedBox(height: 20.0),
64 | Center(
65 | child: Text(cookieprice,
66 | style: TextStyle(
67 | fontSize: 22.0,
68 | fontWeight: FontWeight.bold,
69 | color: Color(0xFFF17532))),
70 | ),
71 | SizedBox(height: 10.0),
72 | Center(
73 | child: Text(cookiename,
74 | style: TextStyle(
75 | color: Color(0xFF575E67),
76 | fontSize: 24.0)),
77 | ),
78 | SizedBox(height: 20.0),
79 | Center(
80 | child: Container(
81 | width: MediaQuery
82 | .of(context)
83 | .size
84 | .width - 50.0,
85 | child: Text(
86 | 'Cold, creamy ice cream sandwiched between delicious deluxe cookies. Pick your favorite deluxe cookies and ice cream flavor.',
87 | textAlign: TextAlign.center,
88 | style: TextStyle(
89 | fontSize: 16.0,
90 | color: Color(0xFFB4B8B9))
91 | ),
92 | ),
93 | ),
94 | SizedBox(height: 20.0),
95 | Center(
96 | child: GestureDetector(
97 | child: Container(
98 | width: MediaQuery
99 | .of(context)
100 | .size
101 | .width - 50.0,
102 | height: 50.0,
103 | decoration: BoxDecoration(
104 | borderRadius: BorderRadius.circular(25.0),
105 | color: Color(0xFFF17532)
106 | ),
107 | child: Center(
108 | child: Text('Add to cart',
109 | style: TextStyle(
110 | fontSize: 14.0,
111 | fontWeight: FontWeight.bold,
112 | color: Colors.white
113 | ),
114 | )
115 | )
116 | ),
117 | onTap: () {
118 | Navigator.of(context).push(
119 | MaterialPageRoute(builder: (context) =>
120 | Cart(
121 | )));
122 | },
123 | )
124 | )
125 | ]
126 | ),
127 |
128 | );
129 | }
130 | );
131 | }
132 | }
133 |
--------------------------------------------------------------------------------
/lib/Ui/cookie_icecream.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/View_Model/cookie_icecream_view_model.dart';
2 | import 'package:cookies_app/base/base_view.dart';
3 | import 'package:cookies_app/Ui/cookie_detail.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class CookieIceCream extends StatelessWidget {
7 | @override
8 | Widget build(BuildContext context) {
9 | return BaseView(
10 | onModelReady: (model) {},
11 | builder: (context, model, build) {
12 | return Scaffold(
13 | backgroundColor: Color(0xFFFCFAF8),
14 | body: ListView(
15 | children: [
16 | SizedBox(height: 15.0),
17 | Container(
18 | padding: EdgeInsets.only(right: 15.0,left: 15),
19 | width: MediaQuery
20 | .of(context)
21 | .size
22 | .width - 30.0,
23 | height: MediaQuery
24 | .of(context)
25 | .size
26 | .height - 30.0,
27 | child: GridView.count(
28 | crossAxisCount: 2,
29 | primary: false,
30 | crossAxisSpacing: 10.0,
31 | mainAxisSpacing: 15.0,
32 | childAspectRatio: 0.7,
33 | children: [
34 | _buildCard('cookie chocochip', '\$3.99',
35 | 'assets/cookiechocochip.jpeg',
36 | false, false, context),
37 | _buildCard(
38 | 'Cookie cream', '\$5.99', 'assets/cookiecream.jpg',
39 | true, false, context),
40 | _buildCard('cookie mint', '\$1.99',
41 | 'assets/cookiemint.jpg', false, true, context),
42 | _buildCard(
43 | 'cookie van', '\$2.99', 'assets/cookievan.jpg',
44 | false, false, context)
45 | ],
46 | )),
47 | SizedBox(height: 15.0)
48 | ],
49 | ),
50 | );
51 | }
52 | );
53 | }
54 |
55 | Widget _buildCard(String name, String price, String imgPath, bool added,
56 | bool isFavorite, context) {
57 | return Padding(
58 | padding: EdgeInsets.only(top: 5.0, bottom: 5.0, left: 5.0, right: 5.0),
59 | child: InkWell(
60 | onTap: () {
61 | Navigator.of(context).push(
62 | MaterialPageRoute(builder: (context) => CookieDetail(
63 | assetPath: imgPath,
64 | cookieprice:price,
65 | cookiename: name
66 | )));
67 | },
68 | child: Container(
69 | decoration: BoxDecoration(
70 | borderRadius: BorderRadius.circular(15.0),
71 | boxShadow: [
72 | BoxShadow(
73 | color: Colors.grey.withOpacity(0.2),
74 | spreadRadius: 3.0,
75 | blurRadius: 5.0)
76 | ],
77 | color: Colors.white),
78 | child: Column(children: [
79 | Padding(
80 | padding: EdgeInsets.all(5.0),
81 | child: Row(
82 | mainAxisAlignment: MainAxisAlignment.end,
83 | children: [
84 | isFavorite
85 | ? Icon(Icons.favorite, color: Color(0xFFEF7532))
86 | : Icon(Icons.favorite_border,
87 | color: Color(0xFFEF7532))
88 | ])),
89 | Hero(
90 | tag: imgPath,
91 | child: Container(
92 | height: 75.0,
93 | width: 75.0,
94 | decoration: BoxDecoration(
95 | image: DecorationImage(
96 | image: AssetImage(imgPath),
97 | fit: BoxFit.contain)))),
98 | SizedBox(height: 7.0),
99 | Text(price,
100 | style: TextStyle(
101 | color: Color(0xFFCC8053),
102 | fontSize: 14.0)),
103 | Text(name,
104 | style: TextStyle(
105 | color: Color(0xFF575E67),
106 | fontSize: 14.0)),
107 | Padding(
108 | padding: EdgeInsets.all(8.0),
109 | child: Container(color: Color(0xFFEBEBEB), height: 1.0)),
110 | Padding(
111 | padding: EdgeInsets.only(left: 5.0, right: 5.0),
112 | child: Row(
113 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
114 | children: [
115 | if (!added)...[
116 | Icon(Icons.shopping_basket,
117 | color: Color(0xFFD17E50), size: 12.0),
118 | Text('Add to cart',
119 | style: TextStyle(
120 | color: Color(0xFFD17E50),
121 | fontSize: 12.0))
122 | ],
123 | if (added) ...[
124 | Icon(Icons.remove_circle_outline,
125 | color: Color(0xFFD17E50), size: 12.0),
126 | Text('3',
127 | style: TextStyle(
128 | color: Color(0xFFD17E50),
129 | fontWeight: FontWeight.bold,
130 | fontSize: 12.0)),
131 | Icon(Icons.add_circle_outline,
132 | color: Color(0xFFD17E50), size: 12.0),
133 | ]
134 | ]))
135 | ]))));
136 | }
137 | }
138 |
--------------------------------------------------------------------------------
/lib/Ui/cookie_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/View_Model/cookie_page_view_model.dart';
2 | import 'package:cookies_app/base/base_view.dart';
3 | import 'package:cookies_app/Ui/cookie_detail.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class CookiePage extends StatelessWidget {
7 | @override
8 | Widget build(BuildContext context) {
9 | return BaseView(
10 | onModelReady: (model) {},
11 | builder: (context, model, build) {
12 | return Scaffold(
13 | backgroundColor: Color(0xFFFCFAF8),
14 | body: ListView(
15 | children: [
16 | SizedBox(height: 15.0),
17 | Container(
18 | padding: EdgeInsets.only(right: 15.0,left: 15),
19 | width: MediaQuery
20 | .of(context)
21 | .size
22 | .width - 30.0,
23 | height: MediaQuery
24 | .of(context)
25 | .size
26 | .height - 30.0,
27 | child: GridView.count(
28 | crossAxisCount: 2,
29 | primary: false,
30 | crossAxisSpacing: 10.0,
31 | mainAxisSpacing: 15.0,
32 | childAspectRatio: 0.7,
33 | children: [
34 | _buildCard('brownie cookies', '\$3.99',
35 | 'assets/browniecookies.jpg',
36 | false, false, context),
37 | _buildCard(
38 | 'cookie choco', '\$5.99', 'assets/cookiechoco.jpg',
39 | true, false, context),
40 | _buildCard('Cookie classic', '\$1.99',
41 | 'assets/cookieclassic.jpg', false, true, context),
42 | _buildCard('peanut cookie', '\$2.99',
43 | 'assets/peanutbuttercookie.jpeg',
44 | false, false, context)
45 | ],
46 | )),
47 | SizedBox(height: 15.0)
48 | ],
49 | ),
50 | );
51 | }
52 | );
53 | }
54 |
55 | Widget _buildCard(String name, String price, String imgPath, bool added,
56 | bool isFavorite, context) {
57 | return Padding(
58 | padding: EdgeInsets.only(top: 5.0, bottom: 5.0, left: 5.0, right: 5.0),
59 | child: InkWell(
60 | onTap: () {
61 | Navigator.of(context).push(
62 | MaterialPageRoute(builder: (context) => CookieDetail(
63 | assetPath: imgPath,
64 | cookieprice:price,
65 | cookiename: name
66 | )));
67 | },
68 | child: Container(
69 | decoration: BoxDecoration(
70 | borderRadius: BorderRadius.circular(15.0),
71 | boxShadow: [
72 | BoxShadow(
73 | color: Colors.grey.withOpacity(0.2),
74 | spreadRadius: 3.0,
75 | blurRadius: 5.0)
76 | ],
77 | color: Colors.white),
78 | child: Column(children: [
79 | Padding(
80 | padding: EdgeInsets.all(5.0),
81 | child: Row(
82 | mainAxisAlignment: MainAxisAlignment.end,
83 | children: [
84 | isFavorite
85 | ? Icon(Icons.favorite, color: Color(0xFFEF7532))
86 | : Icon(Icons.favorite_border,
87 | color: Color(0xFFEF7532))
88 | ])),
89 | Hero(
90 | tag: imgPath,
91 | child: Container(
92 | height: 75.0,
93 | width: 75.0,
94 | decoration: BoxDecoration(
95 | image: DecorationImage(
96 | image: AssetImage(imgPath),
97 | fit: BoxFit.contain)))),
98 | SizedBox(height: 7.0),
99 | Text(price,
100 | style: TextStyle(
101 | color: Color(0xFFCC8053),
102 | fontSize: 14.0)),
103 | Text(name,
104 | style: TextStyle(
105 | color: Color(0xFF575E67),
106 | fontSize: 14.0)),
107 | Padding(
108 | padding: EdgeInsets.all(8.0),
109 | child: Container(color: Color(0xFFEBEBEB), height: 1.0)),
110 | Padding(
111 | padding: EdgeInsets.only(left: 5.0, right: 5.0),
112 | child: Row(
113 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
114 | children: [
115 | if (!added)...[
116 | Icon(Icons.shopping_basket,
117 | color: Color(0xFFD17E50), size: 12.0),
118 | Text('Add to cart',
119 | style: TextStyle(
120 | color: Color(0xFFD17E50),
121 | fontSize: 12.0))
122 | ],
123 | if (added) ...[
124 | Icon(Icons.remove_circle_outline,
125 | color: Color(0xFFD17E50), size: 12.0),
126 | Text('3',
127 | style: TextStyle(
128 | color: Color(0xFFD17E50),
129 | fontWeight: FontWeight.bold,
130 | fontSize: 12.0)),
131 | Icon(Icons.add_circle_outline,
132 | color: Color(0xFFD17E50), size: 12.0),
133 | ]
134 | ]))
135 | ]))));
136 | }
137 | }
138 |
--------------------------------------------------------------------------------
/lib/Ui/home.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/View_Model/home_view_model.dart';
2 | import 'package:cookies_app/base/base_view.dart';
3 | import 'package:cookies_app/bottom_bar.dart';
4 | import 'package:cookies_app/Ui/cookie_cake.dart';
5 | import 'package:cookies_app/Ui/cookie_icecream.dart';
6 | import 'package:cookies_app/Ui/cookie_page.dart';
7 | import 'package:flutter/material.dart';
8 |
9 |
10 | class Home extends StatefulWidget {
11 | @override
12 | _HomeState createState() => _HomeState();
13 | }
14 |
15 | class _HomeState extends State
16 | with SingleTickerProviderStateMixin {
17 | TabController _tabController;
18 |
19 | @override
20 | void initState() {
21 | super.initState();
22 | _tabController = TabController(length: 3, vsync: this);
23 | }
24 |
25 | @override
26 | Widget build(BuildContext context) {
27 | return BaseView(
28 | onModelReady: (model) {},
29 | builder: (context, model, build) {
30 | return Scaffold(
31 | appBar: AppBar(
32 | backgroundColor: Colors.white,
33 | elevation: 0.0,
34 | centerTitle: true,
35 | leading: IconButton(
36 | icon: Icon(Icons.arrow_back, color: Color(0xFF545D68)),
37 | onPressed: () {
38 | Navigator.of(context).pop();
39 | },
40 | ),
41 | title: Text('Home',
42 | style: TextStyle(
43 | fontSize: 20.0,
44 | color: Color(0xFF545D68))),
45 | actions: [
46 | IconButton(
47 | icon: Icon(
48 | Icons.notifications_none, color: Color(0xFFC88D67)),
49 | onPressed: () {},
50 | ),
51 | ],
52 | ),
53 | body: Stack(
54 | // padding: EdgeInsets.only(left: 20.0),
55 | children: [
56 | Padding(
57 | padding: const EdgeInsets.only(top:80.0),
58 | child: Container(
59 | height: MediaQuery
60 | .of(context)
61 | .size
62 | .height - 50.0,
63 | width: double.infinity,
64 | child: TabBarView(
65 | controller: _tabController,
66 | children: [
67 | CookiePage(),
68 | CookieCake(),
69 | CookieIceCream(),
70 | ]
71 | )
72 | ),
73 | ),
74 | Padding(
75 | padding: const EdgeInsets.only(top:42.0,left: 10),
76 | child: TabBar(
77 | controller: _tabController,
78 | indicatorColor: Colors.transparent,
79 | labelColor: Color(0xFFC88D67),
80 | isScrollable: true,
81 | labelPadding: EdgeInsets.only(right: 45.0),
82 | unselectedLabelColor: Color(0xFFCDCDCD),
83 | tabs: [
84 | Tab(
85 | child: Text('Cookies',
86 | style: TextStyle(
87 | fontSize: 21.0,
88 | )),
89 | ),
90 | Tab(
91 | child: Text('Cookie cake',
92 | style: TextStyle(
93 | fontSize: 21.0,
94 | )),
95 | ),
96 | Tab(
97 | child: Text('Ice cream',
98 | style: TextStyle(
99 | fontSize: 21.0,
100 | )),
101 | )
102 | ]),
103 | ),
104 |
105 | Padding(
106 | padding: const EdgeInsets.only(top:8.0,left:10),
107 | child: Text('Categories',
108 | style: TextStyle(
109 | fontSize: 42.0,
110 | fontWeight: FontWeight.bold)),
111 | ),
112 | SizedBox(height: 15.0),
113 |
114 |
115 | ],
116 | ),
117 |
118 |
119 | );
120 | }
121 | );
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/lib/Ui/home_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/Ui/cart.dart';
2 | import 'package:cookies_app/Ui/home.dart';
3 | import 'package:cookies_app/Ui/profile.dart';
4 | import 'package:cookies_app/Ui/search.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | class Page extends StatefulWidget {
8 | @override
9 | _PageState createState() => _PageState();
10 | }
11 |
12 | class _PageState extends State {
13 | int _currentIndex=0;
14 | final tabs =[
15 | Home(),
16 | Profile(),
17 | Search(),
18 | Cart(),
19 | ];
20 |
21 | @override
22 | Widget build(BuildContext context) {
23 | return Scaffold(
24 | body: tabs [_currentIndex],
25 | bottomNavigationBar: BottomNavigationBar(
26 | currentIndex:_currentIndex,
27 | type:BottomNavigationBarType.fixed,
28 | selectedItemColor: Color(0xFFEF7532),
29 | items: [
30 | BottomNavigationBarItem(
31 | icon: Icon(Icons.home),
32 | title: Text("Home")
33 | ),
34 |
35 | BottomNavigationBarItem(
36 | icon: Icon(Icons.person),
37 | title: Text("Account")
38 |
39 | ),
40 |
41 | BottomNavigationBarItem(
42 | icon: Icon(Icons.search),
43 | title: Text("Search")
44 |
45 | ),
46 |
47 | BottomNavigationBarItem(
48 | icon: Icon(Icons.shopping_basket),
49 | title: Text("Cart")
50 |
51 | ),
52 | ],
53 | onTap: (index){
54 | setState(() {
55 | _currentIndex= index;
56 | });
57 | },
58 | ),
59 | );
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/lib/Ui/login.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/Ui/home.dart';
2 | import 'package:cookies_app/Ui/home_page.dart';
3 | import 'package:cookies_app/Ui/signup.dart';
4 | import 'package:cookies_app/View_Model/profile_view_model.dart';
5 | import 'package:cookies_app/base/base_view.dart';
6 | import 'package:flutter/cupertino.dart';
7 |
8 | import 'package:flutter/material.dart';
9 |
10 |
11 | class Login extends StatefulWidget {
12 | @override
13 | _LoginState createState() => _LoginState();
14 | }
15 |
16 | class _LoginState extends State{
17 |
18 | @override
19 | Widget build(BuildContext context) {
20 | return BaseView(
21 | onModelReady: (model) {},
22 | builder: (context, model, build) {
23 | return SafeArea(
24 | child: Scaffold(
25 | body: Container(
26 | margin: EdgeInsets.only(top: 70),
27 | height: MediaQuery
28 | .of(context)
29 | .size
30 | .height,
31 | child: ListView(
32 | padding: EdgeInsets.only(left: 20.0, right: 20),
33 | children: [
34 | Padding(
35 | padding: const EdgeInsets.only(top:28.0),
36 | child: Text("Log in",style: TextStyle(color: Color(0xFFC88D67),fontSize: 30,fontWeight: FontWeight.bold),),
37 | ),
38 | SizedBox(height: 25.0),
39 | TextFormField(
40 | style: TextStyle(color: Colors.black),
41 | decoration: InputDecoration(
42 | labelText: "Email",
43 | labelStyle:
44 | TextStyle(color: Colors.grey, fontSize: 18),),
45 | cursorColor: Color(0xFFC88D67),
46 | ),
47 | SizedBox(height: 15.0),
48 | TextFormField(
49 | style: TextStyle(color: Colors.black),
50 | keyboardType: TextInputType.number,
51 | obscureText: true,
52 | decoration: InputDecoration(
53 | labelText: "Password",
54 | labelStyle:
55 | TextStyle(color: Colors.grey, fontSize: 18),),
56 | cursorColor: Color(0xFFC88D67),
57 | ),
58 | SizedBox(height: 35.0),
59 |
60 | Center(child: Text("Don't have an account?",style: TextStyle(color: Color(0xFFC88D67)),)),
61 | SizedBox(height: 5.0),
62 | Center(
63 | child: InkWell(
64 | child: Text("create a new account",style: TextStyle(color: Color(0xFFC88D67),fontSize: 20,fontWeight: FontWeight.bold),),
65 | onTap: (){
66 | Navigator.of(context).push(MaterialPageRoute(
67 | builder: (context) => SignUp()
68 | ));
69 | },
70 | ),
71 | ),
72 | SizedBox(height: 55.0),
73 | Center(
74 | child: GestureDetector(
75 | child: Container(
76 | width: MediaQuery
77 | .of(context)
78 | .size
79 | .width - 50.0,
80 | height: 50.0,
81 | margin: EdgeInsets.only(top: 30),
82 | decoration: BoxDecoration(
83 | borderRadius: BorderRadius.circular(25.0),
84 | color: Color(0xFFF17532)
85 | ),
86 | child: Center(
87 | child: Text('Login',
88 | style: TextStyle(
89 | fontSize: 14.0,
90 | fontWeight: FontWeight.bold,
91 | color: Colors.white
92 | ),
93 | )
94 | )
95 | ),
96 | onTap: () {
97 | Navigator.of(context).push(MaterialPageRoute(
98 | builder: (context) => Page()
99 | ));
100 | },
101 | )
102 | ),
103 | SizedBox(height: 35.0),
104 | ],
105 | ),
106 | ),
107 |
108 | ),
109 | );
110 | }
111 | );
112 | }
113 | }
114 |
--------------------------------------------------------------------------------
/lib/Ui/profile.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/Ui/home.dart';
2 | import 'package:cookies_app/Ui/login.dart';
3 | import 'package:cookies_app/View_Model/profile_view_model.dart';
4 | import 'package:cookies_app/base/base_view.dart';
5 | import 'package:cookies_app/bottom_bar.dart';
6 | import 'package:cookies_app/main.dart';
7 | import 'package:flutter/material.dart';
8 |
9 |
10 | class Profile extends StatefulWidget {
11 | @override
12 | _ProfileState createState() => _ProfileState();
13 | }
14 |
15 | class _ProfileState extends State{
16 |
17 | showLogoutDialogBox(BuildContext context, String title, String content,
18 | ) {
19 | // flutter defined function
20 | showDialog(
21 | context: context,
22 | builder: (BuildContext context) {
23 | // return object of type Dialog
24 | return AlertDialog(
25 | title: Text(title),
26 | content: Text(content),
27 | actions: [
28 | FlatButton(
29 | child: Text(
30 | "Cancel",
31 | style: TextStyle(fontSize: 18,color: Color(0xFFC88D67)),
32 | ),
33 | onPressed: () {
34 | Navigator.of(context).pop();
35 | }),
36 | FlatButton(
37 | child: Text(
38 | "Ok",
39 |
40 | style: TextStyle(fontSize: 18,color: Color(0xFFC88D67)),
41 | ),
42 | onPressed: () {
43 | Navigator.of(context).push(
44 | MaterialPageRoute(builder: (context) => Login()));
45 | }),
46 | ],
47 | );
48 | },
49 | );
50 | }
51 |
52 | @override
53 | Widget build(BuildContext context) {
54 | return BaseView(
55 | onModelReady: (model) {},
56 | builder: (context, model, build) {
57 | return Scaffold(
58 | appBar: AppBar(
59 | bottom: PreferredSize(child: Padding(
60 | padding: const EdgeInsets.only(left: 18.0, right: 18),
61 | child: Row(
62 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
63 | children: [
64 | Text("My Profile", style: TextStyle(
65 | fontSize: 25, fontWeight: FontWeight.bold),),
66 | Container(
67 | height: 45.0,
68 | width: 40.0,
69 | decoration: BoxDecoration(
70 | borderRadius: BorderRadius.circular(20.0),
71 | image: DecorationImage(
72 | image: AssetImage('assets/man.jpg'),
73 | fit: BoxFit.cover
74 | )
75 | ),
76 | )
77 | ],
78 | ),
79 | ), preferredSize: Size.fromHeight(30.0)),
80 | backgroundColor: Colors.white,
81 | elevation: 0.0,
82 | centerTitle: true,
83 | leading: IconButton(
84 | icon: Icon(Icons.arrow_back, color: Color(0xFF545D68)),
85 | onPressed: () {
86 | Navigator.of(context).push(MaterialPageRoute(
87 | builder: (context) => MyApp()
88 | ));
89 | },
90 | ),
91 | title:
92 | Text('My account',
93 | style: TextStyle(
94 | fontSize: 20.0,
95 | color: Color(0xFF545D68))),
96 |
97 | actions: [
98 | IconButton(
99 | icon: Icon(
100 | Icons.power_settings_new, color: Color(0xFFC88D67)),
101 | onPressed: () {
102 | showLogoutDialogBox(context,'Logout',
103 | 'Are you sure want to logout?');
104 | },
105 | ),
106 | /*Row(
107 | mainAxisAlignment:MainAxisAlignment.spaceAround,
108 | crossAxisAlignment: CrossAxisAlignment.center,
109 | children: [
110 | Text("My Profile"),
111 | Container(
112 | height: 45.0,
113 | width: 40.0,
114 | decoration: BoxDecoration(
115 | borderRadius: BorderRadius.circular(20.0),
116 | image: DecorationImage(
117 | image: AssetImage('assets/man.jpg'),
118 | fit: BoxFit.cover
119 | )
120 | ),
121 | )
122 | ],
123 | ),*/
124 | ],
125 | ),
126 | body: Container(
127 | color: Color(0xFFFBFAF8),
128 | child: ListView(
129 | padding: EdgeInsets.only(left: 20.0, right: 20),
130 | children: [
131 | SizedBox(height: 15.0),
132 | TextFormField(
133 | style: TextStyle(color: Colors.black),
134 | decoration: InputDecoration(
135 | labelText: "Name",
136 | labelStyle:
137 | TextStyle(color: Colors.grey, fontSize: 18),),
138 | ),
139 | SizedBox(height: 15.0),
140 | TextFormField(
141 | style: TextStyle(color: Colors.black),
142 | decoration: InputDecoration(
143 | labelText: "Email",
144 | labelStyle:
145 | TextStyle(color: Colors.grey, fontSize: 18),),
146 | ),
147 | SizedBox(height: 15.0),
148 | TextFormField(
149 | style: TextStyle(color: Colors.black),
150 | keyboardType: TextInputType.number,
151 | decoration: InputDecoration(
152 | labelText: "Password",
153 | labelStyle:
154 | TextStyle(color: Colors.grey, fontSize: 18),),
155 | ),
156 | SizedBox(height: 15.0),
157 | TextFormField(
158 | style: TextStyle(color: Colors.black),
159 | keyboardType: TextInputType.number,
160 | decoration: InputDecoration(
161 | labelText: "Confirm Password",
162 | labelStyle:
163 | TextStyle(color: Colors.grey, fontSize: 18),),
164 | ),
165 | SizedBox(height: 15.0),
166 | TextFormField(
167 | style: TextStyle(color: Colors.black),
168 | decoration: InputDecoration(
169 | labelText: "Street Address",
170 | labelStyle:
171 | TextStyle(color: Colors.grey, fontSize: 18),),
172 | ),
173 | SizedBox(height: 15.0),
174 | TextFormField(
175 | style: TextStyle(color: Colors.black),
176 | decoration: InputDecoration(
177 | labelText: "City",
178 | labelStyle:
179 | TextStyle(color: Colors.grey, fontSize: 18),),
180 | ),
181 | SizedBox(height: 15.0),
182 | TextFormField(
183 | style: TextStyle(color: Colors.black),
184 | decoration: InputDecoration(
185 | labelText: "State/Province",
186 | labelStyle:
187 | TextStyle(color: Colors.grey, fontSize: 18),),
188 | ),
189 | SizedBox(height: 15.0),
190 | TextFormField(
191 | style: TextStyle(color: Colors.black),
192 | keyboardType: TextInputType.number,
193 | decoration: InputDecoration(
194 | labelText: "Postal Code",
195 | labelStyle:
196 | TextStyle(color: Colors.grey, fontSize: 18),),
197 | ),
198 | SizedBox(height: 15.0),
199 | TextFormField(
200 | style: TextStyle(color: Colors.black),
201 | keyboardType: TextInputType.number,
202 | decoration: InputDecoration(
203 | labelText: "Phone",
204 | labelStyle:
205 | TextStyle(color: Colors.grey, fontSize: 18),
206 | ),
207 | ),
208 | SizedBox(height: 15.0),
209 | Center(
210 | child: GestureDetector(
211 | child: Container(
212 | width: MediaQuery
213 | .of(context)
214 | .size
215 | .width - 50.0,
216 | height: 50.0,
217 | decoration: BoxDecoration(
218 | borderRadius: BorderRadius.circular(25.0),
219 | color: Color(0xFFF17532)
220 | ),
221 | child: Center(
222 | child: Text('Edit Profile',
223 | style: TextStyle(
224 | fontSize: 14.0,
225 | fontWeight: FontWeight.bold,
226 | color: Colors.white
227 | ),
228 | )
229 | )
230 | ),
231 | onTap: () {
232 | Navigator.of(context).push(MaterialPageRoute(
233 | builder: (context) => Home()
234 | ));
235 | },
236 | )
237 | ),
238 | SizedBox(height: 35.0),
239 | ],
240 | ),
241 | ),
242 |
243 | );
244 | }
245 | );
246 | }
247 | }
248 |
--------------------------------------------------------------------------------
/lib/Ui/search.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/Ui/home.dart';
2 | import 'package:cookies_app/View_Model/search_view_model.dart';
3 | import 'package:cookies_app/autoComplete.dart';
4 | import 'package:cookies_app/base/base_view.dart';
5 | import 'package:cookies_app/splash.dart';
6 | import 'package:flutter/cupertino.dart';
7 | import 'package:flutter/material.dart';
8 | import 'package:flutter/services.dart';
9 | import 'package:geolocator/geolocator.dart';
10 | import 'package:google_maps_flutter/google_maps_flutter.dart';
11 |
12 |
13 | class Search extends StatefulWidget {
14 | @override
15 | _SearchState createState() => _SearchState();
16 | }
17 |
18 | class _SearchState extends State{
19 | final Geolocator geolocator = Geolocator()..forceAndroidLocationManager;
20 | static final CameraPosition _myLocation =
21 | CameraPosition(target: LatLng(0.0,0.0));
22 |
23 |
24 | @override
25 | Widget build(BuildContext context) {
26 | return BaseView(
27 | onModelReady: (model) {},
28 | builder: (context, model, build) {
29 | return WillPopScope(
30 | child: SafeArea(
31 | child: Scaffold(
32 | resizeToAvoidBottomPadding: false,
33 | resizeToAvoidBottomInset: true,
34 | appBar: AppBar(
35 | backgroundColor: Colors.white,
36 | elevation: 0.0,
37 | centerTitle: true,
38 | bottom: PreferredSize(child: Padding(
39 | padding: const EdgeInsets.only(left: 28.0),
40 | child: Row(
41 | mainAxisAlignment: MainAxisAlignment.start,
42 | children: [
43 | Text("Find My location", style: TextStyle(
44 | fontSize: 28, fontWeight: FontWeight.bold),),
45 | ],
46 | ),
47 | ), preferredSize: Size.fromHeight(30.0)),
48 | leading: IconButton(
49 | icon: Icon(Icons.arrow_back, color: Color(0xFF545D68)),
50 | onPressed: () {
51 | Navigator.of(context).push(MaterialPageRoute(
52 | builder: (context) => Home()
53 | ));
54 | },
55 | ),
56 | title:
57 | Text('Location',
58 | style: TextStyle(
59 | fontSize: 20.0,
60 | color: Color(0xFF545D68))),
61 |
62 | actions: [
63 | IconButton(
64 | icon: Icon(
65 | Icons.notifications_none, color: Color(0xFFC88D67)),
66 | onPressed: () {},
67 | ),
68 | ],
69 | ),
70 | body: Stack(
71 |
72 | children: [
73 | Container(
74 | child: GoogleMap(
75 | initialCameraPosition: _myLocation,
76 | mapType: MapType.normal,myLocationEnabled: true,
77 | // onMapCreated: (GoogleMapController controller) {
78 | ////// _controller.complete(controller);
79 | ////// },
80 | onMapCreated: model.onMapCreated,
81 | markers: model.markers,
82 | compassEnabled: false,
83 | myLocationButtonEnabled: false,
84 | ),
85 | ),
86 | SizedBox(height: 10,),
87 | Padding(
88 | padding: const EdgeInsets.all(6.0),
89 | child: PredictionListAutoComplete(
90 | data: model.predictionL,
91 | textField: TextField(
92 | // textAlign: TextAlign.center,
93 | cursorColor: Colors.black,
94 | onSubmitted: model.onSubmitForm,
95 | //onChanged: mapModel.onPickupTextFieldChanged, not using it for now
96 | controller: model.formFieldController,
97 | decoration: InputDecoration(
98 | focusedBorder: OutlineInputBorder(
99 | borderSide: BorderSide(
100 | color:Colors.black
101 | ),
102 | borderRadius:
103 | BorderRadius.all(
104 | Radius.circular(12),
105 | ),
106 | ),
107 | hintStyle: TextStyle(color: Colors.grey[500],),
108 | hintText: "Your location", suffixIcon: Icon(Icons.search,color: Colors.grey[500],),
109 | border: new OutlineInputBorder(
110 | borderSide: new BorderSide(color: Colors.black),
111 | borderRadius: BorderRadius
112 | .all(
113 | Radius.circular(12))
114 | ),
115 |
116 | ),
117 | keyboardType: TextInputType.text,
118 | textInputAction: TextInputAction.go
119 | ),
120 | itemTap: model.onPredictionItemClick,
121 | ),
122 | ),
123 |
124 |
125 | ],
126 | )
127 | ),
128 | ),
129 | onWillPop: () async {
130 | print('WILLPOPCSOPE');
131 | model.clearAllModels();
132 | return true;
133 | },
134 | );
135 | }
136 | );
137 | }
138 |
139 | }
140 |
--------------------------------------------------------------------------------
/lib/Ui/signup.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/Ui/home.dart';
2 | import 'package:cookies_app/Ui/login.dart';
3 | import 'package:cookies_app/View_Model/profile_view_model.dart';
4 | import 'package:cookies_app/base/base_view.dart';
5 | import 'package:flutter/cupertino.dart';
6 |
7 | import 'package:flutter/material.dart';
8 |
9 |
10 | class SignUp extends StatefulWidget {
11 | @override
12 | _SignUpState createState() => _SignUpState();
13 | }
14 |
15 | class _SignUpState extends State{
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | return BaseView(
20 | onModelReady: (model) {},
21 | builder: (context, model, build) {
22 | return SafeArea(
23 | child: Scaffold(
24 | body: SingleChildScrollView(
25 | child: Padding(
26 | padding: const EdgeInsets.only(left:20.0,right: 20,top: 20),
27 | child: Column(
28 | children: [
29 | Row(
30 | mainAxisAlignment: MainAxisAlignment.start,
31 | children: [
32 | Container(
33 | decoration: BoxDecoration(
34 | borderRadius:
35 | BorderRadius.circular(30),
36 | color: Color(0xFFF17532),
37 | ),
38 | child: IconButton(
39 | icon: Icon(Icons.arrow_back, color: Colors.white),
40 | onPressed: () {
41 | Navigator.of(context).pop();
42 | },
43 | ),
44 | ),
45 | ],
46 | ),
47 | Padding(
48 | padding: const EdgeInsets.only(top:28.0),
49 | child: Text("Sign up",style: TextStyle(color: Color(0xFFC88D67),fontSize: 30,fontWeight: FontWeight.bold),),
50 | ),
51 | SizedBox(height: 25.0),
52 | TextFormField(
53 | style: TextStyle(color: Colors.black),
54 | decoration: InputDecoration(
55 | labelText: "Name",
56 | labelStyle:
57 | TextStyle(color: Colors.grey, fontSize: 18),),
58 | cursorColor: Color(0xFFC88D67),
59 | ),
60 | SizedBox(height: 15.0),
61 |
62 | TextFormField(
63 | style: TextStyle(color: Colors.black),
64 | decoration: InputDecoration(
65 | labelText: "Email",
66 | labelStyle:
67 | TextStyle(color: Colors.grey, fontSize: 18),),
68 | cursorColor: Color(0xFFC88D67),
69 | ),
70 | SizedBox(height: 15.0),
71 | TextFormField(
72 | style: TextStyle(color: Colors.black),
73 | keyboardType: TextInputType.number,
74 | obscureText: true,
75 | decoration: InputDecoration(
76 | labelText: "Password",
77 | labelStyle:
78 | TextStyle(color: Colors.grey, fontSize: 18),),
79 | cursorColor: Color(0xFFC88D67),
80 | ),
81 | SizedBox(height: 15.0),
82 | TextFormField(
83 | style: TextStyle(color: Colors.black),
84 | keyboardType: TextInputType.number,
85 | obscureText: true,
86 | decoration: InputDecoration(
87 | labelText: "Confirm password",
88 | labelStyle:
89 | TextStyle(color: Colors.grey, fontSize: 18),),
90 | cursorColor: Color(0xFFC88D67),
91 | ),
92 | SizedBox(height: 25.0),
93 |
94 | Center(child: Text("Do you have an account?",style: TextStyle(color: Color(0xFFC88D67)),)),
95 | SizedBox(height: 5.0),
96 | Center(
97 | child: InkWell(
98 | child: Text("login",style: TextStyle(color: Color(0xFFC88D67),fontSize: 20,fontWeight: FontWeight.bold),),
99 | onTap: (){
100 | Navigator.push(
101 | context,
102 | MaterialPageRoute(
103 | builder: (BuildContext
104 | context) =>
105 | Login()));
106 | },
107 | ),
108 | ),
109 | SizedBox(height: 55.0),
110 | Center(
111 | child: GestureDetector(
112 | child: Container(
113 | width: MediaQuery
114 | .of(context)
115 | .size
116 | .width - 50.0,
117 | height: 50.0,
118 | margin: EdgeInsets.only(top: 10),
119 | decoration: BoxDecoration(
120 | borderRadius: BorderRadius.circular(25.0),
121 | color: Color(0xFFF17532)
122 | ),
123 | child: Center(
124 | child: Text('Sign up',
125 | style: TextStyle(
126 | fontSize: 14.0,
127 | fontWeight: FontWeight.bold,
128 | color: Colors.white
129 | ),
130 | )
131 | )
132 | ),
133 | onTap: () {
134 | Navigator.of(context).push(MaterialPageRoute(
135 | builder: (context) => Login()
136 | ));
137 | },
138 | )
139 | ),
140 | ],
141 | ),
142 | ),
143 | ),
144 |
145 | ),
146 | );
147 | }
148 | );
149 | }
150 | }
151 |
--------------------------------------------------------------------------------
/lib/View_Model/cart_view_model.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:cookies_app/base/base_model.dart';
3 | import 'package:flutter/material.dart';
4 |
5 |
6 | class CartViewModel extends BaseModel{
7 |
8 |
9 |
10 | clearAllModels(){
11 |
12 | }
13 | }
--------------------------------------------------------------------------------
/lib/View_Model/cookie_cake_view_model.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:cookies_app/base/base_model.dart';
3 | import 'package:flutter/material.dart';
4 |
5 |
6 | class CookieCakeViewModel extends BaseModel{
7 |
8 |
9 |
10 | clearAllModels(){
11 |
12 | }
13 | }
--------------------------------------------------------------------------------
/lib/View_Model/cookie_detail_view_model.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:cookies_app/base/base_model.dart';
3 | import 'package:flutter/material.dart';
4 |
5 |
6 | class CookieDetailViewModel extends BaseModel{
7 |
8 |
9 |
10 | clearAllModels(){
11 |
12 | }
13 | }
--------------------------------------------------------------------------------
/lib/View_Model/cookie_icecream_view_model.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:cookies_app/base/base_model.dart';
3 | import 'package:flutter/material.dart';
4 |
5 |
6 | class CookieIceCreamViewModel extends BaseModel{
7 |
8 |
9 |
10 | clearAllModels(){
11 |
12 | }
13 | }
--------------------------------------------------------------------------------
/lib/View_Model/cookie_page_view_model.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:cookies_app/base/base_model.dart';
3 | import 'package:flutter/material.dart';
4 |
5 |
6 | class CookiePageViewModel extends BaseModel{
7 |
8 |
9 |
10 | clearAllModels(){
11 |
12 | }
13 | }
--------------------------------------------------------------------------------
/lib/View_Model/home_view_model.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:cookies_app/base/base_model.dart';
3 | import 'package:flutter/material.dart';
4 |
5 |
6 | class HomeViewModel extends BaseModel{
7 |
8 |
9 |
10 |
11 | clearAllModels(){
12 |
13 | }
14 | }
--------------------------------------------------------------------------------
/lib/View_Model/login_view_model.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:cookies_app/base/base_model.dart';
3 | import 'package:flutter/material.dart';
4 |
5 |
6 | class UserLoginViewModel extends BaseModel{
7 |
8 |
9 |
10 | bool _userLoginAutoValidate=false;
11 |
12 | TextEditingController _passwordController=TextEditingController();
13 |
14 | TextEditingController _userIdController =TextEditingController();
15 |
16 | bool _passwordVisible=false;
17 |
18 | bool get passwordVisible => _passwordVisible;
19 |
20 | set passwordVisible(bool value) {
21 | _passwordVisible = value;
22 | notifyListeners();
23 | }
24 |
25 | TextEditingController get userIdController => _userIdController;
26 |
27 | set userIdController(TextEditingController value) {
28 | _userIdController = value;
29 | notifyListeners();
30 | }
31 |
32 | TextEditingController get passwordController => _passwordController;
33 |
34 | set passwordController(TextEditingController value) {
35 | _passwordController = value;
36 | notifyListeners();
37 | }
38 |
39 | bool get userLoginAutoValidate => _userLoginAutoValidate;
40 | set userLoginAutoValidate(bool value) {
41 | _userLoginAutoValidate = value;
42 | notifyListeners();
43 | }
44 |
45 |
46 |
47 | clearAllModels(){
48 | _userLoginAutoValidate=false;
49 | _passwordController=TextEditingController(text: '');
50 | _userIdController=TextEditingController(text: '');
51 | _passwordVisible=false;
52 | }
53 | }
--------------------------------------------------------------------------------
/lib/View_Model/profile_view_model.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:cookies_app/base/base_model.dart';
3 | import 'package:flutter/material.dart';
4 |
5 |
6 | class ProfileViewModel extends BaseModel {
7 | bool _profileAutoValidate=false;
8 |
9 |
10 | TextEditingController _regNameController =TextEditingController();
11 |
12 | TextEditingController _regEmailController =TextEditingController();
13 |
14 | TextEditingController _regLoginIdContoller =TextEditingController();
15 |
16 | TextEditingController _regPasswordController =TextEditingController();
17 |
18 | TextEditingController _regMobileController =TextEditingController();
19 |
20 | TextEditingController _regTitleController= TextEditingController();
21 |
22 | TextEditingController get regTitleController => _regTitleController;
23 |
24 | set regTitleController(TextEditingController value) {
25 | _regTitleController = value;
26 | notifyListeners();
27 | }
28 |
29 | TextEditingController get regMobileController => _regMobileController;
30 |
31 | set regMobileController(TextEditingController value) {
32 | _regMobileController = value;
33 | notifyListeners();
34 | }
35 |
36 | TextEditingController get regPasswordController => _regPasswordController;
37 |
38 | set regPasswordController(TextEditingController value) {
39 | _regPasswordController = value;
40 | notifyListeners();
41 | }
42 |
43 | TextEditingController get regLoginIdContoller => _regLoginIdContoller;
44 |
45 | set regLoginIdContoller(TextEditingController value) {
46 | _regLoginIdContoller = value;
47 | notifyListeners();
48 | }
49 |
50 | TextEditingController get regEmailController => _regEmailController;
51 |
52 | set regEmailController(TextEditingController value) {
53 | _regEmailController = value;
54 | notifyListeners();
55 | }
56 |
57 | TextEditingController get regNameController => _regNameController;
58 |
59 | set regNameController(TextEditingController value) {
60 | _regNameController = value;
61 | notifyListeners();
62 | }
63 |
64 | bool get profileAutoValidate => _profileAutoValidate;
65 | set profileAutoValidate(bool value) {
66 | _profileAutoValidate = value;
67 | notifyListeners();
68 | }
69 |
70 |
71 |
72 | clearAllModels(){
73 | _profileAutoValidate=false;
74 | _regEmailController=TextEditingController();
75 | _regLoginIdContoller=TextEditingController();
76 | _regMobileController=TextEditingController();
77 | _regNameController=TextEditingController();
78 | _regPasswordController=TextEditingController();
79 |
80 | }
81 |
82 | }
--------------------------------------------------------------------------------
/lib/View_Model/search_view_model.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:cookies_app/base/base_model.dart';
3 | import 'package:cookies_app/repository.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:geolocator/geolocator.dart';
6 | import 'package:google_maps_flutter/google_maps_flutter.dart';
7 | import 'package:google_maps_webservice/places.dart';
8 |
9 |
10 | class SearchViewModel extends BaseModel{
11 | Repository _repository =Repository();
12 | GoogleMapController googleMapController;
13 | LatLng currentPosition,selectedPosition;
14 | List predictionL;
15 | Setmarkers =Set();
16 |
17 | TextEditingController _formFieldController= TextEditingController();
18 |
19 |
20 | TextEditingController get formFieldController => _formFieldController;
21 |
22 | set formFieldController(TextEditingController value) {
23 | _formFieldController = value;
24 | notifyListeners();
25 | }
26 |
27 | void onMapCreated(GoogleMapController controller) {
28 | googleMapController = controller;
29 | Geolocator().getCurrentPosition(desiredAccuracy: LocationAccuracy.high).then((position){
30 | currentPosition = LatLng(position.latitude, position.longitude);
31 | selectedPosition = currentPosition;
32 | googleMapController
33 | .animateCamera(CameraUpdate.newLatLngZoom(currentPosition, 19));
34 | // markers.add(Marker(markerId: MarkerId("markerid"),position: selectedPosition));
35 | notifyListeners();
36 | });
37 | }
38 |
39 | void onSubmitForm(String value) async {
40 | if (value.isEmpty) {
41 | selectedPosition = null;
42 | } else {
43 | print('ONSUBMIT CALLED');
44 | await _repository.getAutocompleteResponse(value).then((data) {
45 | print("PREDICTIONS ARE: ${data.predictions.toList().toString()}");
46 | updateDestinationSuggestions(data.predictions);
47 | });
48 | }
49 | notifyListeners();
50 | }
51 |
52 | Future updateDestinationSuggestions(List predictions) async {
53 | predictionL = predictions;
54 | notifyListeners();
55 | }
56 |
57 | void onPredictionItemClick(Prediction prediction) async {
58 | updateDestinationSuggestions(null);
59 | formFieldController.text = prediction.description;
60 | selectedPosition =
61 | await _repository.getLatLngfromAddress(prediction.description);
62 | markers.add(Marker(markerId: MarkerId("markerid"),position: selectedPosition));
63 | onSelectedPostionChanged();
64 | notifyListeners();
65 | }
66 |
67 | void onSelectedPostionChanged() {
68 | if (selectedPosition != null) {
69 | googleMapController
70 | .animateCamera(CameraUpdate.newLatLngZoom(selectedPosition, 20));
71 | notifyListeners();
72 | }
73 | }
74 |
75 | clearAllModels(){
76 | _formFieldController=TextEditingController(text: '');
77 | }
78 | }
--------------------------------------------------------------------------------
/lib/View_Model/signup_view_model.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:cookies_app/base/base_model.dart';
3 | import 'package:flutter/material.dart';
4 |
5 |
6 | class SignUpViewModel extends BaseModel{
7 |
8 |
9 |
10 | bool _userLoginAutoValidate=false;
11 |
12 | TextEditingController _passwordController=TextEditingController();
13 |
14 | TextEditingController _userIdController =TextEditingController();
15 | TextEditingController _nameController =TextEditingController();
16 | TextEditingController _confirmPasswordController =TextEditingController();
17 |
18 | TextEditingController get confirmPasswordController =>
19 | _confirmPasswordController;
20 |
21 | set confirmPasswordController(TextEditingController value) {
22 | _confirmPasswordController = value;
23 | notifyListeners();
24 | }
25 |
26 | TextEditingController get nameController => _nameController;
27 |
28 | set nameController(TextEditingController value) {
29 | _nameController = value;
30 | notifyListeners();
31 | }
32 |
33 | bool _passwordVisible=false;
34 |
35 | bool get passwordVisible => _passwordVisible;
36 |
37 | set passwordVisible(bool value) {
38 | _passwordVisible = value;
39 | notifyListeners();
40 | }
41 |
42 | TextEditingController get userIdController => _userIdController;
43 |
44 | set userIdController(TextEditingController value) {
45 | _userIdController = value;
46 | notifyListeners();
47 | }
48 |
49 | TextEditingController get passwordController => _passwordController;
50 |
51 | set passwordController(TextEditingController value) {
52 | _passwordController = value;
53 | notifyListeners();
54 | }
55 |
56 | bool get userLoginAutoValidate => _userLoginAutoValidate;
57 | set userLoginAutoValidate(bool value) {
58 | _userLoginAutoValidate = value;
59 | notifyListeners();
60 | }
61 |
62 |
63 |
64 | clearAllModels(){
65 | _userLoginAutoValidate=false;
66 | _passwordController=TextEditingController(text: '');
67 | _userIdController=TextEditingController(text: '');
68 | _confirmPasswordController=TextEditingController(text: '');
69 | _nameController=TextEditingController(text: '');
70 | _passwordVisible=false;
71 | }
72 | }
--------------------------------------------------------------------------------
/lib/autoComplete.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:google_maps_webservice/places.dart';
5 |
6 | /// An list picker like Widget with textField to show
7 | /// AutoComplete just like Google Maps,
8 | /// @Required : TextField
9 | /// @Optional Data and onTap Callback
10 | typedef onListItemTap = void Function(Prediction prediction);
11 |
12 | class PredictionListAutoComplete extends StatefulWidget {
13 | final TextField textField;
14 | final List data;
15 | final onListItemTap itemTap;
16 |
17 | PredictionListAutoComplete(
18 | {Key key, @required this.textField, @required this.data, this.itemTap})
19 | : super(key: key);
20 |
21 | @override
22 | _PredictionListAutoCompleteState createState() =>
23 | _PredictionListAutoCompleteState();
24 | }
25 |
26 | class _PredictionListAutoCompleteState
27 | extends State {
28 | @override
29 | Widget build(BuildContext context) {
30 | return Column(
31 | crossAxisAlignment: CrossAxisAlignment.start,
32 | mainAxisAlignment: MainAxisAlignment.spaceAround,
33 | mainAxisSize: MainAxisSize.min,
34 | children: [
35 | widget.textField,
36 | widget.data != null && widget.data.isNotEmpty
37 | ? Column(
38 | children: [
39 | ListView.builder(
40 | shrinkWrap: true,
41 | itemCount: widget.data.length,
42 | itemBuilder: (BuildContext ctxt, int index) {
43 | return InkResponse(
44 | onTap: () => widget.itemTap(widget.data[index]),
45 | child: PredictionItemView(
46 | prediction: widget.data[index]));
47 | }),
48 |
49 | ],
50 | )
51 | : SizedBox(
52 | height: 0,
53 | width: 0,
54 | ),
55 | ],
56 | );
57 | }
58 | }
59 |
60 | class PredictionItemView extends StatelessWidget {
61 | final Prediction prediction;
62 |
63 | const PredictionItemView({Key key, this.prediction}) : super(key: key);
64 |
65 | @override
66 | Widget build(BuildContext context) {
67 | return Container(
68 |
69 | color: Colors.black87,
70 | child: Column(
71 | children: [
72 | ListTile(
73 | title: Text(
74 | prediction.description,
75 | overflow: TextOverflow.ellipsis,
76 | maxLines: 1,style: TextStyle(color: Colors.white),
77 | ),
78 | ),
79 | Divider(height: 1.0,)
80 | ],
81 | ),
82 | );
83 | }
84 | }
--------------------------------------------------------------------------------
/lib/base/base_model.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/view_state.dart';
2 | import 'package:flutter/foundation.dart';
3 |
4 | class BaseModel with ChangeNotifier {
5 | ViewState _state = ViewState.Idle;
6 |
7 | ViewState get state => _state;
8 |
9 | set state(ViewState viewState) {
10 | print('State:$viewState');
11 | _state = viewState;
12 | notifyListeners();
13 | }
14 |
15 | void update() {
16 | notifyListeners();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/lib/base/base_view.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/base/base_model.dart';
2 | import 'package:cookies_app/locator.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:provider/provider.dart';
5 |
6 |
7 | class BaseView extends StatefulWidget {
8 | final Widget Function(BuildContext context, T model, Widget child) builder;
9 | final Function(T) onModelReady;
10 |
11 | BaseView({@required this.builder, this.onModelReady});
12 |
13 | @override
14 | _BaseViewState createState() => _BaseViewState();
15 | }
16 |
17 | class _BaseViewState extends State> {
18 | T model = locator();
19 |
20 | @override
21 | void initState() {
22 | if (widget.onModelReady != null) {
23 | widget.onModelReady(model);
24 | }
25 | // TODO: implement initState
26 | super.initState();
27 | }
28 |
29 | @override
30 | Widget build(BuildContext context) {
31 | /*return ChangeNotifierProvider(
32 | builder: (context) => model,
33 | child: Consumer(builder: widget.builder),
34 |
35 | );*/
36 | return ChangeNotifierProvider.value(
37 | //builder: (context) => model,
38 | child: Consumer(builder: widget.builder), notifier: model,
39 | );
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/lib/bottom_bar.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/Ui/home.dart';
2 | import 'package:cookies_app/Ui/cart.dart';
3 | import 'package:cookies_app/Ui/profile.dart';
4 | import 'package:cookies_app/Ui/search.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | class BottomBar extends StatelessWidget {
8 | @override
9 | Widget build(BuildContext context) {
10 | return BottomAppBar(
11 | shape: CircularNotchedRectangle(),
12 | notchMargin: 6.0,
13 | color: Colors.transparent,
14 | elevation: 9.0,
15 | clipBehavior: Clip.antiAlias,
16 | child: Container(
17 | height: 50.0,
18 | decoration: BoxDecoration(
19 | borderRadius: BorderRadius.only(
20 | topLeft: Radius.circular(25.0),
21 | topRight: Radius.circular(25.0)
22 | ),
23 | color: Colors.white
24 | ),
25 | child: Row(
26 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
27 | children: [
28 | Container(
29 | height: 50.0,
30 | width: MediaQuery
31 | .of(context)
32 | .size
33 | .width / 2 - 40.0,
34 | child: Row(
35 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
36 | children: [
37 | IconButton(icon: Icon(Icons.home),
38 | color: Color(0xFFEF7532),
39 | onPressed: () {
40 | Navigator.of(context).push(
41 | MaterialPageRoute(
42 | builder: (context) => Home()
43 | ));
44 | }),
45 | IconButton(icon: Icon(Icons.person),
46 | color: Color(0xFFEF7532),
47 | onPressed: () {
48 | Navigator.of(context).push(
49 | MaterialPageRoute(
50 | builder: (context) => Profile()
51 | ));
52 | })
53 | ],
54 | )
55 | ),
56 | Container(
57 | height: 50.0,
58 | width: MediaQuery
59 | .of(context)
60 | .size
61 | .width / 2 - 40.0,
62 | child: Row(
63 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
64 | children: [
65 | IconButton(icon: Icon(Icons.search),
66 | color: Color(0xFFEF7532),
67 | onPressed: () {
68 | Navigator.of(context).push(
69 | MaterialPageRoute(
70 | builder: (context) => Search()
71 | ));
72 | }),
73 | IconButton(icon: Icon(Icons.shopping_basket),
74 | color: Color(0xFFEF7532),
75 | onPressed: () {
76 | Navigator.of(context).push(
77 | MaterialPageRoute(
78 | builder: (context) => Cart()
79 | ));
80 | }),
81 | ],
82 | )
83 | ),
84 | ]
85 | )
86 | )
87 | );
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/lib/deviceSize.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class DeviceSize {
4 | final Size size;
5 | final double width;
6 | final double height;
7 | final double aspectRatio;
8 |
9 | DeviceSize({this.size, this.width, this.height, this.aspectRatio});
10 | }
--------------------------------------------------------------------------------
/lib/locator.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/View_Model/cart_view_model.dart';
2 | import 'package:cookies_app/View_Model/cookie_cake_view_model.dart';
3 | import 'package:cookies_app/View_Model/cookie_detail_view_model.dart';
4 | import 'package:cookies_app/View_Model/cookie_icecream_view_model.dart';
5 | import 'package:cookies_app/View_Model/cookie_page_view_model.dart';
6 | import 'package:cookies_app/View_Model/home_view_model.dart';
7 | import 'package:cookies_app/View_Model/login_view_model.dart';
8 | import 'package:cookies_app/View_Model/profile_view_model.dart';
9 | import 'package:cookies_app/View_Model/search_view_model.dart';
10 | import 'package:cookies_app/View_Model/signup_view_model.dart';
11 | import 'package:get_it/get_it.dart';
12 |
13 | GetIt locator = GetIt.instance;
14 |
15 | void setLocator(){
16 |
17 | /*
18 | locator.registerLazySingleton(() => UserRegistrationViewModel());
19 | */
20 | locator.registerLazySingleton(() => UserLoginViewModel());
21 | locator.registerLazySingleton(() => HomeViewModel());
22 | locator.registerLazySingleton(() => ProfileViewModel());
23 | locator.registerLazySingleton(() => CookieCakeViewModel());
24 | locator.registerLazySingleton(() => CookieDetailViewModel());
25 | locator.registerLazySingleton(() => CookieIceCreamViewModel());
26 | locator.registerLazySingleton(() => CookiePageViewModel());
27 | locator.registerLazySingleton(() => SearchViewModel());
28 | locator.registerLazySingleton(() => CartViewModel());
29 | locator.registerLazySingleton(() => SignUpViewModel());
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | }
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:cookies_app/View_Model/home_view_model.dart';
3 | import 'package:cookies_app/View_Model/login_view_model.dart';
4 | import 'package:cookies_app/View_Model/profile_view_model.dart';
5 | import 'package:cookies_app/locator.dart';
6 | import 'package:cookies_app/prefer.dart';
7 | import 'package:cookies_app/routes.dart';
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter/services.dart';
10 | import 'package:provider/provider.dart';
11 |
12 |
13 | void main() {
14 | Prefs.init();
15 | setLocator();
16 | runApp(MultiProvider(child: MyApp(), providers: [
17 | ChangeNotifierProvider(
18 | builder: (_) => HomeViewModel(),
19 | ),
20 | ],));}
21 |
22 | class MyApp extends StatefulWidget{
23 | @override
24 | _MyAppState createState() => _MyAppState();
25 | }
26 |
27 | class _MyAppState extends State {
28 | Locale locale;
29 | bool localeLoaded = false;
30 |
31 | @override
32 | void initState() {
33 | super.initState();
34 | print('initState()');
35 |
36 | //MyApp.setLocale(context, locale);
37 | }
38 |
39 | @override
40 | Widget build(BuildContext context) {
41 | SystemChrome.setPreferredOrientations([
42 | DeviceOrientation.portraitUp,
43 | DeviceOrientation.portraitDown,
44 | ]);
45 | SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
46 | systemNavigationBarColor: Colors.grey[400],
47 | // statusBarColor: Styles.blueColor,
48 | statusBarIconBrightness:
49 | Brightness.light //or set color with: Color(0xFF0000FF)
50 | ));
51 | return ChangeNotifierProvider(
52 | builder: (_) => UserLoginViewModel(),
53 | child: Center(
54 | child: MaterialApp(
55 | initialRoute: '/',
56 | debugShowCheckedModeBanner: false,
57 | onGenerateRoute: Routes.onGenerateRoute,
58 |
59 | theme: ThemeData(
60 | primaryColor: Color(0xFFC88D67),
61 |
62 | fontFamily: 'FA',
63 |
64 | ),
65 | ),
66 | ),
67 | );
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/lib/prefer.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:shared_preferences/shared_preferences.dart';
5 |
6 | class Prefs {
7 | static Future _prefs = SharedPreferences.getInstance();
8 | static SharedPreferences _prefsInstance;
9 |
10 | static const String KEY_LANGUAGE_CODE = 'LANGUAGE_CODE';
11 | static const String KEY_COUNTRY_CODE = 'COUNTRY_CODE';
12 | static const String KEY_IS_LOGGED_IN = 'IS_LOGGED_IN';
13 | static const String KEY_TOKEN = 'TOKEN';
14 | static const String KEY_USER_INFO = 'USER_INFO';
15 | static const String USER_ID = 'USER_ID';
16 | static const String REGION = 'REGION';
17 | static const String REGION_ID = 'REGION_ID';
18 | static const String CITY_ID = 'CITY_ID';
19 | static const String CITY = 'CITY';
20 |
21 | static bool _initCalled = false;
22 |
23 | static Future init() async {
24 | _initCalled = true;
25 | _prefsInstance = await _prefs;
26 | print("init called");
27 | }
28 |
29 | static void dispose() {
30 | _prefs = null;
31 | _prefsInstance = null;
32 | print("Dispose called");
33 | }
34 |
35 | static Set getKeys() {
36 | assert(_initCalled,
37 | "Prefs.init() must be called first in an initState() preferably!");
38 | assert(_prefsInstance != null,
39 | "Maybe call Prefs.getKeysF() instead. SharedPreferneces not ready yet!");
40 | return _prefsInstance.getKeys();
41 | }
42 |
43 | static Future> getKeysF() async {
44 | Set value;
45 | if (_prefsInstance == null) {
46 | var instance = await _prefs;
47 | value = instance?.getKeys() ?? Set();
48 | } else {
49 | value = getKeys();
50 | }
51 | return value;
52 | }
53 |
54 | static dynamic get(String key) {
55 | assert(_initCalled,
56 | "Prefs.init() must be called first in an initState() preferably!");
57 | assert(_prefsInstance != null,
58 | "Maybe call Prefs.getKeysF() instead. SharedPreferneces not ready yet!");
59 | return _prefsInstance.get(key);
60 | }
61 |
62 | // Returns a Future
63 | static Future getF(String key) async {
64 | dynamic value;
65 | if (_prefsInstance == null) {
66 | var instance = await _prefs;
67 | value = instance?.get(key);
68 | } else {
69 | value = get(key);
70 | }
71 | return value;
72 | }
73 |
74 | static bool getBool(String key, [bool defValue]) {
75 | assert(_initCalled,
76 | "Prefs.init() must be called first in an initState() preferably!");
77 | assert(_prefsInstance != null,
78 | "Maybe call Prefs.getKeysF() instead. SharedPreferneces not ready yet!");
79 |
80 | return _prefsInstance.getBool(key) ?? defValue ?? false;
81 | }
82 |
83 | // Returns a Future
84 | static Future getBoolF(String key, [bool defValue]) async {
85 | bool value;
86 | if (_prefsInstance == null) {
87 | var instance = await _prefs;
88 | value = instance?.getBool(key) ?? defValue ?? false;
89 | } else {
90 | value = getBool(key);
91 | }
92 | return value;
93 | }
94 |
95 | static int getInt(String key, [int defValue]) {
96 | assert(_initCalled,
97 | "Prefs.init() must be called first in an initState() preferably!");
98 | assert(_prefsInstance != null,
99 | "Maybe call Prefs.getKeysF() instead. SharedPreferneces not ready yet!");
100 |
101 | return _prefsInstance.getInt(key) ?? defValue ?? 0;
102 | }
103 |
104 | // Returns a Future
105 | static Future getIntF(String key, [int defValue]) async {
106 | int value;
107 | if (_prefsInstance == null) {
108 | var instance = await _prefs;
109 | value = instance?.getInt(key) ?? defValue ?? 0;
110 | } else {
111 | value = getInt(key);
112 | }
113 | return value;
114 | }
115 |
116 | static double getDouble(String key, [double defValue]) {
117 | assert(_initCalled,
118 | "Prefs.init() must be called first in an initState() preferably!");
119 | assert(_prefsInstance != null,
120 | "Maybe call Prefs.getKeysF() instead. SharedPreferneces not ready yet!");
121 |
122 | return _prefsInstance.getDouble(key) ?? defValue ?? 0.0;
123 | }
124 |
125 | // Returns a Future
126 | static Future getDoubleF(String key, [double defValue]) async {
127 | double value;
128 | if (_prefsInstance == null) {
129 | var instance = await _prefs;
130 | value = instance?.getDouble(key) ?? defValue ?? 0.0;
131 | } else {
132 | value = getDouble(key);
133 | }
134 | return value;
135 | }
136 |
137 | static String getString(String key, [String defValue]) {
138 | assert(_initCalled,
139 | "Prefs.init() must be called first in an initState() preferably!");
140 | assert(_prefsInstance != null,
141 | "Maybe call Prefs.getKeysF() instead. SharedPreferneces not ready yet!");
142 |
143 | return _prefsInstance.getString(key) ?? defValue ?? "";
144 | }
145 |
146 | // Returns a Future
147 | static Future getStringF(String key, [String defValue]) async {
148 | String value;
149 | if (_prefsInstance == null) {
150 | var instance = await _prefs;
151 | value = instance?.getString(key) ?? defValue ?? "";
152 | } else {
153 | value = getString(key);
154 | }
155 | return value;
156 | }
157 |
158 | static List getStringList(String key, [List defValue]) {
159 | assert(_initCalled,
160 | "Prefs.init() must be called first in an initState() preferably!");
161 | assert(_prefsInstance != null,
162 | "Maybe call Prefs.getKeysF() instead. SharedPreferneces not ready yet!");
163 |
164 | return _prefsInstance.getStringList(key) ?? defValue ?? [""];
165 | }
166 |
167 | // Returns a Future>
168 | static Future> getStringListF(String key,
169 | [List defValue]) async {
170 | List value;
171 | if (_prefsInstance == null) {
172 | var instance = await _prefs;
173 | value = instance?.getStringList(key) ?? defValue ?? [""];
174 | } else {
175 | value = getStringList(key);
176 | }
177 | return value;
178 | }
179 |
180 | // Save Boolean value to persistent storage
181 | static Future setBool(String key, bool value) async {
182 | var instance = await _prefs;
183 | return instance?.setBool(key, value) ?? Future.value(false);
184 | }
185 |
186 | // Save Integer value to persistent storage
187 | static Future setInt(String key, int value) async {
188 | var instance = await _prefs;
189 | return instance?.setInt(key, value) ?? Future.value(false);
190 | }
191 |
192 | // Save Double value to persistent storage
193 | static Future setDouble(String key, double value) async {
194 | var instance = await _prefs;
195 | return instance?.setDouble(key, value) ?? Future.value(false);
196 | }
197 |
198 | // Save String value to persistent storage
199 | static Future setString(String key, String value) async {
200 | var instance = await _prefs;
201 | return instance?.setString(key, value) ?? Future.value(false);
202 | }
203 |
204 | // Save StringList value to persistent storage
205 | static Future setStringList(String key, List value) async {
206 | var instance = await _prefs;
207 | return instance?.setStringList(key, value) ?? Future.value(false);
208 | }
209 |
210 | // Removes an entry from persistent storage
211 | static Future remove(String key) async {
212 | var instance = await _prefs;
213 | return instance?.remove(key) ?? Future.value(false);
214 | }
215 |
216 | // Returns true once persistent storage has been cleared
217 | static Future clear() async {
218 | var instance = await _prefs;
219 | print('PREFS CLEARED');
220 | return instance?.clear() ?? Future.value(false);
221 | }
222 |
223 | // Save Language Code value to persistent storage
224 | static Future setLanguageCode(String value) async {
225 | var instance = await _prefs;
226 | return instance?.setString(KEY_LANGUAGE_CODE, value) ?? Future.value(false);
227 | }
228 |
229 | static String getLanguageCode([String defValue]) {
230 | assert(_initCalled,
231 | "Prefs.init() must be called first in an initState() preferably!");
232 | assert(_prefsInstance != null,
233 | "Maybe call Prefs.getKeysF() instead. SharedPreferneces not ready yet!");
234 |
235 | return _prefsInstance.getString(KEY_LANGUAGE_CODE) ?? defValue ?? "";
236 | }
237 |
238 | // Save Country Code value to persistent storage
239 | static Future setCountryCode(String value) async {
240 | var instance = await _prefs;
241 | return instance?.setString(KEY_COUNTRY_CODE, value) ?? Future.value(false);
242 | }
243 |
244 | static String getCountryCode([String defValue]) {
245 | assert(_initCalled,
246 | "Prefs.init() must be called first in an initState() preferably!");
247 | assert(_prefsInstance != null,
248 | "Maybe call Prefs.getKeysF() instead. SharedPreferneces not ready yet!");
249 |
250 | return _prefsInstance.getString(KEY_COUNTRY_CODE) ?? defValue ?? "";
251 | }
252 |
253 |
254 |
255 | static Future setLoggedIn(bool value) async {
256 | print('LOGGED_IN_STATUS: ${value}');
257 | var instance = await _prefs;
258 | return instance?.setBool(KEY_IS_LOGGED_IN, value) ?? Future.value(false);
259 | }
260 |
261 | static bool isLoggedIn() {
262 | return _prefsInstance.getBool(KEY_IS_LOGGED_IN) ?? false ?? false;
263 | }
264 |
265 | /*static Future setUserDetails(UserData user) async {
266 | var instance = await _prefs;
267 | // setUserID(user?.data?.userId);
268 | // setToken(user?.data?.token);
269 | // instance?.setString(Constant.PROFILE_IMG_URL, user?.data?.profileUrl);
270 | return instance?.setString(KEY_USER_INFO, jsonEncode(user)) ??
271 | Future.value(null);
272 | }
273 |
274 | static UserData getUser() {
275 | return _prefsInstance.getString(KEY_USER_INFO) != null
276 | ? UserData.fromJson(
277 | json.decode(_prefsInstance.getString(KEY_USER_INFO)) ??
278 | null ??
279 | null)
280 | : null;
281 | }*/
282 |
283 | /*static Future setOfficerDetails(OfficerData officer) async {
284 | var instance = await _prefs;
285 | // setUserID(user?.data?.userId);
286 | // setToken(user?.data?.token);
287 | // instance?.setString(Constant.PROFILE_IMG_URL, user?.data?.profileUrl);
288 | return instance?.setString(KEY_USER_INFO, jsonEncode(officer)) ??
289 | Future.value(null);
290 | }
291 |
292 | static OfficerData getOfficer() {
293 | return _prefsInstance.getString(KEY_USER_INFO) != null
294 | ? OfficerData.fromJson(
295 | json.decode(_prefsInstance.getString(KEY_USER_INFO)) ??
296 | null ??
297 | null)
298 | : null;
299 | }*/
300 |
301 | static String getToken() {
302 | return _prefsInstance.getString(KEY_TOKEN) ?? '' ?? '';
303 | }
304 |
305 | static Future setToken(String token) async {
306 | var instance = await _prefs;
307 | return instance?.setString(KEY_TOKEN, token) ?? '';
308 | }
309 |
310 | static String getUserID() {
311 | return _prefsInstance.getString(USER_ID) ?? '' ?? '';
312 | }
313 |
314 | static Future setUserID(String userID) async {
315 | var instance = await _prefs;
316 | return instance?.setString(USER_ID, userID) ?? '';
317 | }
318 |
319 | }
320 |
321 |
--------------------------------------------------------------------------------
/lib/repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:geolocator/geolocator.dart';
3 | import 'package:google_maps_flutter/google_maps_flutter.dart';
4 | import 'package:google_maps_webservice/places.dart';
5 |
6 | class Repository {
7 |
8 | void getlocationDetails(String code, String apiType) {}
9 |
10 |
11 | final GoogleMapsPlaces places = GoogleMapsPlaces(apiKey: "AIzaSyADx7e9LEaggUjkWhEhHyxJDeMR1ElR1wk");
12 | Future getAutocompleteResponse(String search) async{
13 | return await places.autocomplete(search,sessionToken: "6173762");
14 | }
15 |
16 | Future getLatLngfromAddress(String description) async{
17 | List list = await Geolocator().placemarkFromAddress(description);
18 | return LatLng(list[0].position.latitude, list[0].position.longitude);
19 | }
20 |
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/lib/routes.dart:
--------------------------------------------------------------------------------
1 | import 'package:cookies_app/Ui/home.dart';
2 | import 'package:cookies_app/Ui/login.dart';
3 | import 'package:cookies_app/splash.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class Routes {
7 | static Route onGenerateRoute(RouteSettings settings) {
8 | switch (settings.name) {
9 | case '/':
10 | return MaterialPageRoute(builder: (context) => Splash());
11 |
12 | default:
13 | return MaterialPageRoute(
14 | builder: (context) => Scaffold(
15 | backgroundColor: Colors.white,
16 | body: Center(
17 | child: Column(
18 | mainAxisAlignment: MainAxisAlignment.center,
19 | children: [
20 | // Image.asset('assets/images/error.jpg'),
21 | Text(
22 | "${settings.name} does not exists!",
23 | style: TextStyle(fontSize: 24.0),
24 | )
25 | ],
26 | ),
27 | ),
28 | ),
29 | );
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/lib/splash.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:cookies_app/Ui/login.dart';
3 | import 'package:cookies_app/View_Model/login_view_model.dart';
4 | import 'package:cookies_app/deviceSize.dart';
5 | import 'package:flutter/cupertino.dart';
6 | import 'package:flutter/material.dart';
7 | import 'package:provider/provider.dart';
8 |
9 | class Splash extends StatefulWidget {
10 | @override
11 | VideoState createState() => VideoState();
12 | }
13 |
14 | DeviceSize deviceSize;
15 |
16 | class VideoState extends State with SingleTickerProviderStateMixin{
17 |
18 | var _visible = true;
19 |
20 | AnimationController animationController;
21 | Animation animation;
22 |
23 | startTime() async {
24 | var _duration = new Duration(seconds: 3);
25 | return new Timer(_duration, navigationPage);
26 | }
27 |
28 | void navigationPage() {
29 | Navigator.of(context).push(
30 | MaterialPageRoute(builder: (context) => Login(
31 | )));
32 | }
33 |
34 | @override
35 | void initState() {
36 | super.initState();
37 | animationController = new AnimationController(
38 | vsync: this, duration: new Duration(seconds: 2));
39 | animation =
40 | new CurvedAnimation(parent: animationController, curve: Curves.easeOut);
41 |
42 | animation.addListener(() => this.setState(() {}));
43 | animationController.forward();
44 |
45 | setState(() {
46 | _visible = !_visible;
47 | });
48 | startTime();
49 | }
50 |
51 | @override
52 | Widget build(BuildContext context) {
53 | deviceSize = DeviceSize(
54 | size: MediaQuery.of(context).size,
55 | width: MediaQuery.of(context).size.width,
56 | height: MediaQuery.of(context).size.height,
57 | aspectRatio: MediaQuery.of(context).size.aspectRatio);
58 | return ChangeNotifierProvider(
59 | builder: (_) => UserLoginViewModel(),
60 | child: Scaffold(
61 | backgroundColor: Colors.white,
62 | body: Stack(
63 | fit: StackFit.expand,
64 | children: [
65 | new Column(
66 | mainAxisAlignment: MainAxisAlignment.end,
67 | mainAxisSize: MainAxisSize.min,
68 | children: [
69 |
70 | Padding(padding: EdgeInsets.only(bottom: 30.0),child:new Image.asset('assets/powered_by.png',height: 25.0,fit: BoxFit.scaleDown,))
71 |
72 | ],),
73 | new Column(
74 | mainAxisAlignment: MainAxisAlignment.center,
75 | children: [
76 | new Image.asset(
77 | 'assets/logo.png',
78 | width: animation.value * 250,
79 | height: animation.value * 250,
80 | ),
81 | ],
82 | ),
83 | ],
84 | ),
85 | )
86 | );
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/lib/validation.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class Validator{
4 | // BuildContext context;
5 | String validateName(String value, BuildContext context) {
6 | String pattern = r'(^[a-zA-Z ]*$)';
7 | RegExp regExp = new RegExp(pattern);
8 |
9 | if (value.length == 0) {
10 | return "Name Required";
11 | } else if (!regExp.hasMatch(value)) {
12 | return "Must have characters only";
13 | }
14 | return null;
15 | }
16 | String validateDesignation(String value, BuildContext context) {
17 | String pattern = r'(^[a-zA-Z ]*$)';
18 | RegExp regExp = new RegExp(pattern);
19 | if (value.length == 0) {
20 | return "Designation Required";
21 | } else if (!regExp.hasMatch(value)) {
22 | return "Must have characters only";
23 | }
24 | return null;
25 | }
26 | String validateIdentityCardAndNumber(String value, BuildContext context) {
27 | String pattern = r'(^[a-zA-Z ]*$)';
28 | RegExp regExp = new RegExp(pattern);
29 | if (value.length == 0) {
30 | return "Identity Card And Number Required";
31 | } else if (!regExp.hasMatch(value)) {
32 | return "Must have characters only";
33 | }
34 | return null;
35 | }
36 |
37 | String validateMobile(String value, BuildContext context) {
38 | String pattern = r'(^[0-9]*$)';
39 | RegExp regExp = new RegExp(pattern);
40 | if (value.length == 0) {
41 | return "Mobile number is Required";
42 | } else if (value.length != 10) {
43 | return "Mobile number must 10 digits";
44 | } else if (!regExp.hasMatch(value)) {
45 | return "Mobile number must be digits";
46 | }
47 | return null;
48 | }
49 | String validateTelephone(String value, BuildContext context) {
50 | String pattern = r'(^[0-9]*$)';
51 | RegExp regExp = new RegExp(pattern);
52 | if (value.length == 0) {
53 | return "Telephone number is Required";
54 | } else if (value.length != 10) {
55 | return "Telephone number must 10 digits";
56 | } else if (!regExp.hasMatch(value)) {
57 | return "Telephone number must be digits";
58 | }
59 | return null;
60 | }
61 |
62 | String validateMobileNo(String value, BuildContext context) {
63 | String pattern = r'(^[0-9]*$)';
64 | RegExp regExp = new RegExp(pattern);
65 | if (value.trim().length >= 2) {
66 | if (value.substring(0, 2) != '05') {
67 | //return "Mobile number must be start with 05";
68 | return "Please enter a local no: 05XXXXXXXXX";
69 | }
70 | if (value.trim().length != 11) {
71 | //return "Mobile number must be 11 digits";
72 | return "Mobile number must be 11 digits";
73 | }
74 | if (!regExp.hasMatch(value)) {
75 | return "Enter valid number";
76 | }
77 | } else if (!regExp.hasMatch(value)) {
78 | return "Enter valid number";
79 | } else if (value.length == 0) {
80 | return "Mobile phone should be required";
81 | }
82 |
83 | return null;
84 | }
85 |
86 |
87 | String validateEmail(String value, BuildContext context) {
88 | String pattern =
89 | r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$';
90 | RegExp regExp = new RegExp(pattern);
91 | if (value.length == 0) {
92 | return "Email is Required";
93 | } else if (!regExp.hasMatch(value)) {
94 | return "Invalid Email";
95 | } else {
96 | return null;
97 | }
98 | }
99 |
100 | String validatePassword(String value, BuildContext context) {
101 | if (value.length < 8) {
102 | return "Password must contain atleast 8 letters";
103 | } else {
104 | return null;
105 | }
106 | }
107 |
108 | String validateComment(String value, BuildContext context){
109 | if (value.length<5 && value.length>=1 ){
110 | return "Comment must have atleast 5 letters";
111 | }
112 | else if(value.length==0){
113 | return "Comment cannot be empty";
114 | } else {
115 | return null;
116 | }
117 | }
118 |
119 | String validateAddress(String value, BuildContext context) {
120 | if (value.length == 0) {
121 | return "Address Can't Be Empty!";
122 | } else {
123 | return null;
124 | }
125 | }
126 |
127 | String validatePinCode(String value, BuildContext context) {
128 | if (value.length < 6) {
129 | return "Enter Valid Pin Code!";
130 | } else {
131 | return null;
132 | }
133 | }
134 | String validateOTP(String value, BuildContext context) {
135 | if (value.length < 4) {
136 | return "Enter Valid OTP!";
137 | } else {
138 | return null;
139 | }
140 | }
141 |
142 | String validateNonEmptyField(String value, BuildContext context){
143 | if (value.length ==0) {
144 | return "Field Can't Be Empty!";
145 | } else {
146 | return null;
147 | }
148 | }
149 |
150 | String validateDate(String value, BuildContext context) {
151 | if(value==null){
152 | return "Field Can't Be Empty!";
153 | } else {
154 | return null;
155 | }
156 | }
157 |
158 |
159 | String validateLogNumber(String value, BuildContext context) {
160 | if (value.length == 0) {
161 | return "Log Number Can't Be Empty!";
162 | } else {
163 | return null;
164 | }
165 | }
166 |
167 | String validateGirth(String value, BuildContext context) {
168 | if (value.length == 0) {
169 | return "Girth Can't Be Empty!";
170 | } else {
171 | return null;
172 | }
173 | }
174 |
175 | String validateLength(String value, BuildContext context) {
176 | if (value.length == 0) {
177 | return "Length Can't Be Empty!";
178 | } else {
179 | return null;
180 | }
181 | }
182 |
183 | String validateVolume(String value, BuildContext context) {
184 | if (value.length == 0) {
185 | return "Volume Can't Be Empty!";
186 | } else {
187 | return null;
188 | }
189 | }
190 | }
191 |
--------------------------------------------------------------------------------
/lib/view_state.dart:
--------------------------------------------------------------------------------
1 | enum ViewState { Idle, Busy }
2 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | archive:
5 | dependency: transitive
6 | description:
7 | name: archive
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.0.11"
11 | args:
12 | dependency: transitive
13 | description:
14 | name: args
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.5.2"
18 | async:
19 | dependency: transitive
20 | description:
21 | name: async
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.4.0"
25 | autocomplete_textfield:
26 | dependency: "direct main"
27 | description:
28 | name: autocomplete_textfield
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.7.3"
32 | boolean_selector:
33 | dependency: transitive
34 | description:
35 | name: boolean_selector
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.0.5"
39 | charcode:
40 | dependency: transitive
41 | description:
42 | name: charcode
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.1.2"
46 | collection:
47 | dependency: transitive
48 | description:
49 | name: collection
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.14.11"
53 | convert:
54 | dependency: transitive
55 | description:
56 | name: convert
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "2.1.1"
60 | crypto:
61 | dependency: transitive
62 | description:
63 | name: crypto
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "2.1.3"
67 | cupertino_icons:
68 | dependency: "direct main"
69 | description:
70 | name: cupertino_icons
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "0.1.3"
74 | eventify:
75 | dependency: transitive
76 | description:
77 | name: eventify
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "0.1.4"
81 | flutter:
82 | dependency: "direct main"
83 | description: flutter
84 | source: sdk
85 | version: "0.0.0"
86 | flutter_test:
87 | dependency: "direct dev"
88 | description: flutter
89 | source: sdk
90 | version: "0.0.0"
91 | fluttertoast:
92 | dependency: "direct main"
93 | description:
94 | name: fluttertoast
95 | url: "https://pub.dartlang.org"
96 | source: hosted
97 | version: "3.1.3"
98 | geolocator:
99 | dependency: "direct main"
100 | description:
101 | name: geolocator
102 | url: "https://pub.dartlang.org"
103 | source: hosted
104 | version: "5.2.0"
105 | get_it:
106 | dependency: "direct main"
107 | description:
108 | name: get_it
109 | url: "https://pub.dartlang.org"
110 | source: hosted
111 | version: "3.1.0"
112 | google_api_availability:
113 | dependency: transitive
114 | description:
115 | name: google_api_availability
116 | url: "https://pub.dartlang.org"
117 | source: hosted
118 | version: "2.0.2"
119 | google_maps_flutter:
120 | dependency: "direct main"
121 | description:
122 | name: google_maps_flutter
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "0.5.21+14"
126 | google_maps_webservice:
127 | dependency: "direct main"
128 | description:
129 | name: google_maps_webservice
130 | url: "https://pub.dartlang.org"
131 | source: hosted
132 | version: "0.0.16"
133 | http:
134 | dependency: "direct main"
135 | description:
136 | name: http
137 | url: "https://pub.dartlang.org"
138 | source: hosted
139 | version: "0.12.0+4"
140 | http_parser:
141 | dependency: transitive
142 | description:
143 | name: http_parser
144 | url: "https://pub.dartlang.org"
145 | source: hosted
146 | version: "3.1.3"
147 | image:
148 | dependency: transitive
149 | description:
150 | name: image
151 | url: "https://pub.dartlang.org"
152 | source: hosted
153 | version: "2.1.4"
154 | location_permissions:
155 | dependency: transitive
156 | description:
157 | name: location_permissions
158 | url: "https://pub.dartlang.org"
159 | source: hosted
160 | version: "2.0.4+1"
161 | matcher:
162 | dependency: transitive
163 | description:
164 | name: matcher
165 | url: "https://pub.dartlang.org"
166 | source: hosted
167 | version: "0.12.6"
168 | meta:
169 | dependency: transitive
170 | description:
171 | name: meta
172 | url: "https://pub.dartlang.org"
173 | source: hosted
174 | version: "1.1.8"
175 | path:
176 | dependency: transitive
177 | description:
178 | name: path
179 | url: "https://pub.dartlang.org"
180 | source: hosted
181 | version: "1.6.4"
182 | path_provider:
183 | dependency: "direct main"
184 | description:
185 | name: path_provider
186 | url: "https://pub.dartlang.org"
187 | source: hosted
188 | version: "1.4.4"
189 | pedantic:
190 | dependency: transitive
191 | description:
192 | name: pedantic
193 | url: "https://pub.dartlang.org"
194 | source: hosted
195 | version: "1.8.0+1"
196 | petitparser:
197 | dependency: transitive
198 | description:
199 | name: petitparser
200 | url: "https://pub.dartlang.org"
201 | source: hosted
202 | version: "2.4.0"
203 | platform:
204 | dependency: transitive
205 | description:
206 | name: platform
207 | url: "https://pub.dartlang.org"
208 | source: hosted
209 | version: "2.2.1"
210 | provider:
211 | dependency: "direct main"
212 | description:
213 | name: provider
214 | url: "https://pub.dartlang.org"
215 | source: hosted
216 | version: "2.0.1+1"
217 | quiver:
218 | dependency: transitive
219 | description:
220 | name: quiver
221 | url: "https://pub.dartlang.org"
222 | source: hosted
223 | version: "2.0.5"
224 | razorpay_flutter:
225 | dependency: "direct main"
226 | description:
227 | name: razorpay_flutter
228 | url: "https://pub.dartlang.org"
229 | source: hosted
230 | version: "1.1.2"
231 | shared_preferences:
232 | dependency: "direct main"
233 | description:
234 | name: shared_preferences
235 | url: "https://pub.dartlang.org"
236 | source: hosted
237 | version: "0.5.4+8"
238 | shared_preferences_platform_interface:
239 | dependency: transitive
240 | description:
241 | name: shared_preferences_platform_interface
242 | url: "https://pub.dartlang.org"
243 | source: hosted
244 | version: "1.0.1"
245 | sky_engine:
246 | dependency: transitive
247 | description: flutter
248 | source: sdk
249 | version: "0.0.99"
250 | source_span:
251 | dependency: transitive
252 | description:
253 | name: source_span
254 | url: "https://pub.dartlang.org"
255 | source: hosted
256 | version: "1.5.5"
257 | stack_trace:
258 | dependency: transitive
259 | description:
260 | name: stack_trace
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "1.9.3"
264 | stream_channel:
265 | dependency: transitive
266 | description:
267 | name: stream_channel
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "2.0.0"
271 | string_scanner:
272 | dependency: transitive
273 | description:
274 | name: string_scanner
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "1.0.5"
278 | term_glyph:
279 | dependency: transitive
280 | description:
281 | name: term_glyph
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "1.1.0"
285 | test_api:
286 | dependency: transitive
287 | description:
288 | name: test_api
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "0.2.11"
292 | typed_data:
293 | dependency: transitive
294 | description:
295 | name: typed_data
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "1.1.6"
299 | vector_math:
300 | dependency: transitive
301 | description:
302 | name: vector_math
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "2.0.8"
306 | xml:
307 | dependency: transitive
308 | description:
309 | name: xml
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "3.5.0"
313 | sdks:
314 | dart: ">=2.4.0 <3.0.0"
315 | flutter: ">=1.6.7 <2.0.0"
316 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: cookies_app
2 | description: A new Flutter application.
3 |
4 | # The following defines the version and build number for your application.
5 | # A version number is three numbers separated by dots, like 1.2.43
6 | # followed by an optional build number separated by a +.
7 | # Both the version and the builder number may be overridden in flutter
8 | # build by specifying --build-name and --build-number, respectively.
9 | # In Android, build-name is used as versionName while build-number used as versionCode.
10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12 | # Read more about iOS versioning at
13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14 | version: 1.0.0+1
15 |
16 | environment:
17 | sdk: ">=2.1.0 <3.0.0"
18 |
19 | dependencies:
20 | flutter:
21 | sdk: flutter
22 | geolocator: ^5.1.5
23 | http: ^0.12.0+2
24 | path_provider: ^1.2.0
25 | shared_preferences: ^0.5.3+4
26 | provider: ^2.0.1+1
27 | get_it:
28 | razorpay_flutter: ^1.1.1
29 | fluttertoast: ^3.1.0
30 | google_maps_flutter: ^0.5.21+8
31 | google_maps_webservice: ^0.0.14
32 | autocomplete_textfield: ^1.7.3
33 |
34 | # The following adds the Cupertino Icons font to your application.
35 | # Use with the CupertinoIcons class for iOS style icons.
36 | cupertino_icons: ^0.1.2
37 |
38 | dev_dependencies:
39 | flutter_test:
40 | sdk: flutter
41 |
42 |
43 | # For information on the generic Dart part of this file, see the
44 | # following page: https://dart.dev/tools/pub/pubspec
45 |
46 | # The following section is specific to Flutter.
47 | flutter:
48 |
49 | # The following line ensures that the Material Icons font is
50 | # included with your application, so that you can use the icons in
51 | # the material Icons class.
52 | uses-material-design: true
53 | assets:
54 | - assets/
55 |
56 | # To add assets to your application, add an assets section, like this:
57 | # assets:
58 | # - images/a_dot_burr.jpeg
59 | # - images/a_dot_ham.jpeg
60 |
61 | # An image asset can refer to one or more resolution-specific "variants", see
62 | # https://flutter.dev/assets-and-images/#resolution-aware.
63 |
64 | # For details regarding adding assets from package dependencies, see
65 | # https://flutter.dev/assets-and-images/#from-packages
66 |
67 | # To add custom fonts to your application, add a fonts section here,
68 | # in this "flutter" section. Each entry in this list should have a
69 | # "family" key with the font family name, and a "fonts" key with a
70 | # list giving the asset and other descriptors for the font. For
71 | # example:
72 | # fonts:
73 | # - family: Schyler
74 | # fonts:
75 | # - asset: fonts/Schyler-Regular.ttf
76 | # - asset: fonts/Schyler-Italic.ttf
77 | # style: italic
78 | # - family: Trajan Pro
79 | # fonts:
80 | # - asset: fonts/TrajanPro.ttf
81 | # - asset: fonts/TrajanPro_Bold.ttf
82 | # weight: 700
83 | #
84 | # For details regarding fonts from package dependencies,
85 | # see https://flutter.dev/custom-fonts/#from-packages
86 |
--------------------------------------------------------------------------------
/screens/android1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/android1.png
--------------------------------------------------------------------------------
/screens/android2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/android2.png
--------------------------------------------------------------------------------
/screens/android3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/android3.png
--------------------------------------------------------------------------------
/screens/android4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/android4.png
--------------------------------------------------------------------------------
/screens/android5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/android5.png
--------------------------------------------------------------------------------
/screens/android6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/android6.png
--------------------------------------------------------------------------------
/screens/android7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/android7.png
--------------------------------------------------------------------------------
/screens/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/demo.gif
--------------------------------------------------------------------------------
/screens/iphone1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/iphone1.png
--------------------------------------------------------------------------------
/screens/iphone2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/iphone2.png
--------------------------------------------------------------------------------
/screens/iphone3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/iphone3.png
--------------------------------------------------------------------------------
/screens/iphone4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/iphone4.png
--------------------------------------------------------------------------------
/screens/iphone5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/iphone5.png
--------------------------------------------------------------------------------
/screens/iphone6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/iphone6.png
--------------------------------------------------------------------------------
/screens/iphone7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flutter-devs/Flutter_Bakery_App_Demo/f6cc73330c5f50f5183d68f6656f9bee78c26b01/screens/iphone7.png
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:cookies_app/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------