├── res └── values │ └── strings_en.arb ├── ios ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── 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-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── .gitignore ├── Podfile └── Podfile.lock ├── font ├── Raleway-Black.ttf ├── Raleway-Light.ttf └── Raleway-Medium.ttf ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── hupptest │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── pictures ├── images │ └── foody.jpg ├── Screenshot 2018-12-29 at 3.43.49 PM.png ├── Screenshot 2018-12-29 at 3.43.59 PM.png ├── Screenshot 2018-12-29 at 3.44.14 PM.png ├── Screenshot 2019-08-16 at 5.45.45 PM.png ├── Screenshot 2019-08-20 at 5.32.14 PM.png └── Screenshot 2019-08-20 at 5.32.46 PM.png ├── lib ├── Modal │ ├── User.dart │ ├── Validation.dart │ └── Authentication.dart ├── View │ ├── Resturant │ │ ├── ResturantListMapView.dart │ │ ├── PlaceDetailsView.dart │ │ ├── ResturantListView.dart │ │ ├── MenuView.dart │ │ ├── PlaceReviewView.dart │ │ ├── ResturantDetail.dart │ │ └── ResturantList.dart │ ├── Root.dart │ ├── Home │ │ └── Home.dart │ ├── Welcome │ │ └── Welcome.dart │ ├── Signup │ │ └── Signup.dart │ └── Login │ │ └── Login.dart ├── Theme │ ├── Color.dart │ └── CustomTextStyle.dart ├── Widgets │ ├── CustomRatingBar.dart │ ├── Loader.dart │ ├── CustomDivider.dart │ ├── PageHeader.dart │ ├── CustomOutlineButton.dart │ ├── CustomButton.dart │ └── FormInputDecoration.dart └── main.dart ├── .metadata ├── .gitignore ├── README.md ├── test └── widget_test.dart ├── pubspec.yaml └── pubspec.lock /res/values/strings_en.arb: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /font/Raleway-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/font/Raleway-Black.ttf -------------------------------------------------------------------------------- /font/Raleway-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/font/Raleway-Light.ttf -------------------------------------------------------------------------------- /font/Raleway-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/font/Raleway-Medium.ttf -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /pictures/images/foody.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/pictures/images/foody.jpg -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/Modal/User.dart: -------------------------------------------------------------------------------- 1 | class UserModel { 2 | String email; 3 | String password; 4 | 5 | UserModel({required this.email, required this.password}); 6 | } 7 | -------------------------------------------------------------------------------- /pictures/Screenshot 2018-12-29 at 3.43.49 PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/pictures/Screenshot 2018-12-29 at 3.43.49 PM.png -------------------------------------------------------------------------------- /pictures/Screenshot 2018-12-29 at 3.43.59 PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/pictures/Screenshot 2018-12-29 at 3.43.59 PM.png -------------------------------------------------------------------------------- /pictures/Screenshot 2018-12-29 at 3.44.14 PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/pictures/Screenshot 2018-12-29 at 3.44.14 PM.png -------------------------------------------------------------------------------- /pictures/Screenshot 2019-08-16 at 5.45.45 PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/pictures/Screenshot 2019-08-16 at 5.45.45 PM.png -------------------------------------------------------------------------------- /pictures/Screenshot 2019-08-20 at 5.32.14 PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/pictures/Screenshot 2019-08-20 at 5.32.14 PM.png -------------------------------------------------------------------------------- /pictures/Screenshot 2019-08-20 at 5.32.46 PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/pictures/Screenshot 2019-08-20 at 5.32.46 PM.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/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/hupptechnologies/flutter-food-app/HEAD/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/hupptechnologies/flutter-food-app/HEAD/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/hupptechnologies/flutter-food-app/HEAD/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/hupptechnologies/flutter-food-app/HEAD/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/hupptechnologies/flutter-food-app/HEAD/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/hupptechnologies/flutter-food-app/HEAD/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/hupptechnologies/flutter-food-app/HEAD/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/hupptechnologies/flutter-food-app/HEAD/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/hupptechnologies/flutter-food-app/HEAD/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/hupptechnologies/flutter-food-app/HEAD/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/hupptechnologies/flutter-food-app/HEAD/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/hupptechnologies/flutter-food-app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/hupptest/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.hupptest 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hupptechnologies/flutter-food-app/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/View/Resturant/ResturantListMapView.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class RestaurantMapView extends StatelessWidget{ 4 | @override 5 | Widget build(BuildContext context) { 6 | return Center( 7 | child: Text("Map View"), 8 | ); 9 | } 10 | } -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/View/Resturant/PlaceDetailsView.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class PlaceDetailView extends StatelessWidget{ 4 | @override 5 | Widget build(BuildContext context) { 6 | // TODO: implement build 7 | return Center( 8 | child: Text("Place Detail View"), 9 | ); 10 | } 11 | } -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/Theme/Color.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | const Color primaryColor = Color(0xff3DB963); 4 | const Color secondryColor = Color(0xff333333); 5 | const Color greyColor = Color(0xff90929e); 6 | 7 | const double normalText = 16.0; 8 | const double titleText = 20.0; 9 | const double subTitleText = normalText; 10 | 11 | -------------------------------------------------------------------------------- /.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: f4abaa0735eba4dfd8f33f73363911d63931fe03 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/Widgets/CustomRatingBar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | // import 'package:rating_bar/rating_bar.dart'; 3 | 4 | class CustomRatingBar extends StatelessWidget{ 5 | 6 | final double? size; 7 | CustomRatingBar({this.size}); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | // TODO: implement build 12 | return Container(); 13 | } 14 | } -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /lib/Widgets/Loader.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class LoaderWidget extends StatelessWidget { 4 | @override 5 | Widget build(BuildContext context) { 6 | return Container( 7 | child: Center( 8 | child: CircularProgressIndicator( 9 | valueColor: AlwaysStoppedAnimation(Colors.green), 10 | strokeWidth: 3.0)), 11 | color: Colors.white54, 12 | ); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/Widgets/CustomDivider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | 4 | /// @param [height] divider height 5 | /// @param [color] divider color 6 | class CustomDivider extends StatelessWidget { 7 | final double? height; 8 | final Color color; 9 | 10 | CustomDivider({this.height = 1.0, this.color = Colors.grey}); 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return Container( 15 | height: height, 16 | decoration: BoxDecoration( 17 | border: Border( 18 | bottom: BorderSide( 19 | color: color, 20 | ), 21 | ), 22 | ), 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /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/ephemeral/ 22 | Flutter/app.flx 23 | Flutter/app.zip 24 | Flutter/flutter_assets/ 25 | Flutter/flutter_export_environment.sh 26 | ServiceDefinitions.json 27 | Runner/GeneratedPluginRegistrant.* 28 | 29 | # Exceptions to above rules. 30 | !default.mode1v3 31 | !default.mode2v3 32 | !default.pbxuser 33 | !default.perspectivev3 34 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | classpath 'com.google.gms:google-services:4.3.10' 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | google() 18 | jcenter() 19 | } 20 | } 21 | 22 | rootProject.buildDir = '../build' 23 | subprojects { 24 | project.buildDir = "${rootProject.buildDir}/${project.name}" 25 | project.evaluationDependsOn(':app') 26 | } 27 | 28 | task clean(type: Delete) { 29 | delete rootProject.buildDir 30 | } 31 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 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 | -------------------------------------------------------------------------------- /lib/Theme/CustomTextStyle.dart: -------------------------------------------------------------------------------- 1 | 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | import 'Color.dart'; 6 | 7 | String toUpper(String txt) => txt.toUpperCase(); 8 | 9 | TextStyle resturantListSwitchText(bool active){ 10 | return TextStyle( 11 | color: active ? primaryColor : greyColor, 12 | fontSize: normalText-2 13 | ); 14 | } 15 | 16 | 17 | TextStyle resturantListButton(){ 18 | return TextStyle( 19 | color: primaryColor, 20 | fontSize: normalText-2 21 | ); 22 | } 23 | 24 | TextStyle resturantListTitleText(){ 25 | return TextStyle( 26 | color: Colors.black, 27 | fontSize: normalText-2, 28 | fontWeight: FontWeight.bold 29 | ); 30 | } 31 | 32 | 33 | TextStyle resturantListSubTitleText(){ 34 | return TextStyle( 35 | color: greyColor, 36 | fontSize: normalText-4 37 | ); 38 | } 39 | 40 | 41 | TextStyle detailsTabTitle(){ 42 | return TextStyle( 43 | fontSize: normalText-4, 44 | fontWeight: FontWeight.w500 45 | ); 46 | } 47 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | 48 | 49 | *GoogleService-Info.plist* 50 | *google-services.json* -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter - Food-app 2 | ###### Design courtesy : https://in.pinterest.com/pin/515873332301283576/ 3 | 4 | 5 | ### Features 6 | - Signup with firebase 7 | - Login with firebase 8 | - Resturant List view 9 | - Resturant Detail view 10 | 11 | 12 | ### Before Run project 13 | - [Android] Create firebase project & add `google-services.json` file in `android/app` folder. 14 | - [iOS] Open project in Xcode. In Root folder add file `GoogleService-Info.plist`. `GoogleService-Info.plist` you can download from firebase project. 15 | 16 | ## Preview 17 | 18 | 19 | 20 | ### created by 21 | hello@hupp.in 22 | -------------------------------------------------------------------------------- /lib/Widgets/PageHeader.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class PageHeader extends StatelessWidget { 4 | final String title; 5 | 6 | PageHeader({ 7 | required this.title 8 | }); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return Padding( 13 | padding: EdgeInsets.only(top: 0.0), 14 | child: Row( 15 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 16 | children: [ 17 | InkResponse( 18 | onTap: () { 19 | FocusScope.of(context).requestFocus(new FocusNode()); 20 | Future.delayed( 21 | Duration(milliseconds: 100), () => Navigator.pop(context), 22 | ); 23 | }, 24 | child: Icon( 25 | Icons.keyboard_backspace, 26 | size: 20.0, 27 | ), 28 | ), 29 | Text( 30 | (title).toUpperCase(), 31 | style: TextStyle(fontSize: 16.0, fontWeight: FontWeight.w500), 32 | ), 33 | Container( 34 | width: 20.0, 35 | ) 36 | ], 37 | ), 38 | ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_core/firebase_core.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | import 'Theme/Color.dart'; 5 | import 'View/Root.dart'; 6 | 7 | 8 | void main() async{ 9 | WidgetsFlutterBinding.ensureInitialized(); 10 | await Firebase.initializeApp(); 11 | runApp(MainPage()); 12 | } 13 | 14 | class MainPage extends StatelessWidget { 15 | @override 16 | Widget build(BuildContext context) { 17 | return MaterialApp( 18 | theme: ThemeData( 19 | fontFamily: "RalewatMedium", 20 | primaryColor: primaryColor, 21 | primaryIconTheme: IconThemeData( 22 | color: Colors.white 23 | ), 24 | primarySwatch: Colors.green, 25 | primaryTextTheme: TextTheme( 26 | headline6: TextStyle( 27 | color: Colors.white 28 | ), 29 | 30 | ), 31 | floatingActionButtonTheme: FloatingActionButtonThemeData( 32 | backgroundColor: primaryColor 33 | ) 34 | ), 35 | title: "Foody", 36 | home: Root(), 37 | debugShowCheckedModeBanner: false, 38 | routes: { 39 | '/root': (context) => Root(), 40 | }, 41 | ); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /lib/View/Root.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:firebase_auth/firebase_auth.dart'; 3 | import '../Widgets/Loader.dart'; 4 | import 'Home/Home.dart'; 5 | import 'Welcome/Welcome.dart'; 6 | 7 | class Root extends StatefulWidget { 8 | @override 9 | State createState() { 10 | // TODO: implement createState 11 | return RootState(); 12 | } 13 | } 14 | 15 | class RootState extends State { 16 | Widget launchWidget = LoaderWidget(); 17 | 18 | @override 19 | void initState() { 20 | super.initState(); 21 | checkUser(); 22 | } 23 | 24 | checkUser() async { 25 | try { 26 | User? user = FirebaseAuth.instance.currentUser; 27 | print(user); 28 | if (user != null) { 29 | setState(() { 30 | launchWidget = Welcome( 31 | user: user, 32 | ); 33 | }); 34 | } else { 35 | setState(() { 36 | launchWidget = Home(); 37 | }); 38 | } 39 | } catch (e) { 40 | print("ERROR IN LAUNCH $e"); 41 | } 42 | } 43 | 44 | @override 45 | Widget build(BuildContext context) { 46 | // TODO: implement build 47 | return Scaffold(body: launchWidget); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /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:hupptest/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 | -------------------------------------------------------------------------------- /lib/Widgets/CustomOutlineButton.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | /// @param [onPressed] button press event 4 | /// @param [text] button name 5 | /// @param [borderColor] button border color 6 | /// @param [textStyle] button text style 7 | /// @param [padding] custom padding inside button 8 | class CustomOutlineButton extends StatelessWidget { 9 | final GestureTapCallback? onPressed; 10 | final String text; 11 | final Color? highlightColor; 12 | final Color borderColor; 13 | final TextStyle? textStyle; 14 | final EdgeInsets? padding; 15 | 16 | CustomOutlineButton({ 17 | this.onPressed, 18 | required this.text, 19 | this.highlightColor, 20 | required this.borderColor, 21 | this.textStyle, 22 | this.padding, 23 | }); 24 | 25 | @override 26 | Widget build(BuildContext context) { 27 | // TODO: implement build 28 | return OutlinedButton( 29 | onPressed: onPressed, 30 | style: OutlinedButton.styleFrom( 31 | padding: padding, 32 | shape: 33 | RoundedRectangleBorder(borderRadius: BorderRadius.circular(5.0)), 34 | side: BorderSide(color: borderColor)), 35 | child: Text( 36 | text, 37 | style: textStyle, 38 | ), 39 | ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /lib/Widgets/CustomButton.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | /// @param [text] button text name 4 | /// @param [color] button name 5 | /// @param [width] button width.(Default full width) 6 | class CustomButton extends StatelessWidget { 7 | final String text; 8 | final Color color; 9 | final GestureTapCallback onPressed; 10 | final double? width; 11 | 12 | CustomButton( 13 | {required this.text, 14 | required this.color, 15 | this.width, 16 | required this.onPressed}); 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return ElevatedButton( 21 | style: ElevatedButton.styleFrom( 22 | onPrimary: color, 23 | padding: EdgeInsets.all(0.0), 24 | shape: RoundedRectangleBorder( 25 | borderRadius: BorderRadius.circular(22.0), 26 | )), 27 | onPressed: onPressed, 28 | child: Container( 29 | width: (width != null ? width : double.infinity), 30 | height: 45.0, 31 | alignment: Alignment.center, 32 | decoration: BoxDecoration( 33 | color: color, 34 | borderRadius: BorderRadius.circular(22.0), 35 | ), 36 | child: Text( 37 | (text).toUpperCase(), 38 | style: TextStyle( 39 | fontSize: 15.0, color: Colors.white, letterSpacing: 0.0), 40 | ), 41 | ), 42 | ); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /lib/Widgets/FormInputDecoration.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class FormInputDecoration extends InputDecoration { 4 | 5 | /// @param [name] input hint text value. 6 | /// @param [errorText] input error text value. 7 | static formInputDesign({String? name, String? errorText}) { 8 | return InputDecoration( 9 | contentPadding: 10 | EdgeInsets.only(top: 12, bottom: 12, left: 10, right: 10), 11 | filled: true, 12 | enabledBorder: new OutlineInputBorder( 13 | borderSide: new BorderSide(color: Colors.transparent)), 14 | disabledBorder: OutlineInputBorder( 15 | borderSide: new BorderSide(color: Colors.transparent)), 16 | border: OutlineInputBorder( 17 | borderSide: new BorderSide(color: Colors.transparent)), 18 | focusedBorder: OutlineInputBorder( 19 | borderSide: new BorderSide(color: Colors.transparent)), 20 | fillColor: Colors.grey[100], 21 | hintStyle: TextStyle(letterSpacing: 1.2, color: Colors.grey[500]), 22 | errorMaxLines: 3, 23 | hintText: (name!).toUpperCase(), 24 | errorStyle: TextStyle( 25 | letterSpacing: 1.2, decorationStyle: TextDecorationStyle.dashed)); 26 | } 27 | 28 | static TextStyle customTextStyle() { 29 | return TextStyle( 30 | color: Colors.black, 31 | fontSize: 15.0, 32 | letterSpacing: 1.2, 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '10.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /ios/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 | hupptest 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 | 45 | 46 | -------------------------------------------------------------------------------- /lib/Modal/Validation.dart: -------------------------------------------------------------------------------- 1 | enum VALIDATION_TYPE { EMAIL, TEXT, PASSWORD, CONFIRM_PASSWORD } 2 | 3 | RegExp EMAIL_REGEX = new RegExp( 4 | 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,}))$'); 5 | 6 | String? isRequired(String? val, String? fieldName) { 7 | if (val == null || val == '') { 8 | return "$fieldName is required"; 9 | } 10 | return null; 11 | } 12 | 13 | String? CheckPasswordLength(String? val) { 14 | if (val != null && val.length < 6) { 15 | return 'Password must be 6 digit'; 16 | } 17 | return null; 18 | } 19 | 20 | String? CheckFieldValidation( 21 | {String? val, 22 | String? fieldName, 23 | VALIDATION_TYPE? fieldType, 24 | String? password}) { 25 | String? errorMsg; 26 | 27 | if (fieldType == VALIDATION_TYPE.TEXT) { 28 | errorMsg = isRequired(val, fieldName); 29 | } 30 | if (fieldType == VALIDATION_TYPE.EMAIL) { 31 | if (isRequired(val, fieldName) != null) { 32 | errorMsg = isRequired(val, fieldName); 33 | } else if (!EMAIL_REGEX.hasMatch(val!)) { 34 | errorMsg = "Please enter valid email"; 35 | } 36 | } 37 | if (fieldType == VALIDATION_TYPE.PASSWORD) { 38 | if (isRequired(val, fieldName) != null) { 39 | errorMsg = isRequired(val, fieldName); 40 | } else if (CheckPasswordLength(val ?? null) != null) { 41 | errorMsg = CheckPasswordLength(val); 42 | } 43 | } 44 | if (fieldType == VALIDATION_TYPE.CONFIRM_PASSWORD) { 45 | if (isRequired(val, fieldName) != null) { 46 | errorMsg = isRequired(val, fieldName); 47 | } else if (CheckPasswordLength(val) != null) { 48 | errorMsg = CheckPasswordLength(val); 49 | } else if (password != val) { 50 | errorMsg = "Confirm password must be same as password"; 51 | } 52 | } 53 | 54 | return errorMsg ?? null; 55 | } 56 | -------------------------------------------------------------------------------- /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 plugin: 'com.google.gms.google-services' 27 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 28 | 29 | android { 30 | compileSdkVersion 30 31 | 32 | sourceSets { 33 | main.java.srcDirs += 'src/main/kotlin' 34 | } 35 | 36 | defaultConfig { 37 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 38 | applicationId "com.example.hupptest" 39 | minSdkVersion 16 40 | targetSdkVersion 30 41 | versionCode flutterVersionCode.toInteger() 42 | versionName flutterVersionName 43 | } 44 | 45 | buildTypes { 46 | release { 47 | // TODO: Add your own signing config for the release build. 48 | // Signing with the debug keys for now, so `flutter run --release` works. 49 | signingConfig signingConfigs.debug 50 | } 51 | } 52 | } 53 | 54 | flutter { 55 | source '../..' 56 | } 57 | 58 | dependencies { 59 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 60 | implementation platform('com.google.firebase:firebase-bom:28.4.0') 61 | } 62 | -------------------------------------------------------------------------------- /lib/View/Home/Home.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../../Widgets/CustomButton.dart'; 3 | import '../Login/Login.dart'; 4 | import '../Signup/Signup.dart'; 5 | 6 | class Home extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | // TODO: implement build 10 | return Scaffold( 11 | body: Column( 12 | children: [ 13 | Expanded( 14 | child: Image.asset( 15 | "pictures/images/foody.jpg", 16 | fit: BoxFit.cover, 17 | ), 18 | ), 19 | SizedBox( 20 | height: 20.0, 21 | ), 22 | Container( 23 | width: MediaQuery.of(context).size.width, 24 | child: Column( 25 | crossAxisAlignment: CrossAxisAlignment.center, 26 | children: [ 27 | Text( 28 | ("Foodsy").toUpperCase(), 29 | style: TextStyle(fontSize: 30.0), 30 | ), 31 | SizedBox( 32 | height: 15.0, 33 | ), 34 | CustomButton( 35 | onPressed: () { 36 | Navigator.push(context, 37 | MaterialPageRoute(builder: (context) => Signup())); 38 | }, 39 | text: "Sign Up", 40 | color: Colors.green, 41 | width: 250.0, 42 | ), 43 | SizedBox( 44 | height: 5.0, 45 | ), 46 | CustomButton( 47 | onPressed: () { 48 | Navigator.push(context, 49 | MaterialPageRoute(builder: (context) => Login())); 50 | }, 51 | text: "Log In", 52 | color: Colors.black, 53 | width: 250.0, 54 | ), 55 | SizedBox( 56 | height: 50.0, 57 | ), 58 | ], 59 | ), 60 | ) 61 | ], 62 | ), 63 | ); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 13 | 17 | 21 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /lib/Modal/Authentication.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_auth/firebase_auth.dart'; 2 | import 'User.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'dart:io'; 5 | 6 | class Authentication { 7 | Future SingupUser(UserModel user) async { 8 | 9 | return await FirebaseAuth.instance.createUserWithEmailAndPassword(email: user.email, password: user.password); 10 | } 11 | 12 | Future LoginUser(UserModel user) async { 13 | return await FirebaseAuth.instance 14 | .signInWithEmailAndPassword(email: user.email, password: user.password); 15 | } 16 | 17 | Future LogoutUser() async { 18 | return await FirebaseAuth.instance.signOut(); 19 | } 20 | 21 | ShowToast(BuildContext context, String message) { 22 | ScaffoldMessenger.of(context).showSnackBar(new SnackBar(content: Text(message))); 23 | } 24 | 25 | HandleError(e) { 26 | String? errorType; 27 | 28 | if (Platform.isAndroid) { 29 | switch (e.message) { 30 | case 'There is no user record corresponding to this identifier. The user may have been deleted.': 31 | errorType = "User not found"; 32 | break; 33 | case 'The password is invalid or the user does not have a password.': 34 | errorType = "Invalid username passowrd"; 35 | break; 36 | case 'The email address is already in use by another account.': 37 | errorType = "User already register"; 38 | break; 39 | case 'A network error (such as timeout, interrupted connection or unreachable host) has occurred.': 40 | errorType = "Time our"; 41 | break; 42 | // ... 43 | default: 44 | errorType = e.message; 45 | } 46 | } else if (Platform.isIOS) { 47 | switch (e.code) { 48 | case 'Error 17011': 49 | errorType = "User not found"; 50 | break; 51 | case 'Error 17009': 52 | errorType = "Invalid username password"; 53 | break; 54 | case 'Error 17020': 55 | errorType = "Network error"; 56 | break; 57 | // ... 58 | default: 59 | errorType = e.message; 60 | print('Case ${e.message} is not jet implemented'); 61 | } 62 | } 63 | print("$errorType"); 64 | return errorType; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: hupptest 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.12.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | 27 | 28 | # The following adds the Cupertino Icons font to your application. 29 | # Use with the CupertinoIcons class for iOS style icons. 30 | firebase_core: ^1.6.0 31 | firebase_auth: ^3.1.0 32 | # rating_bar: ^0.2.0 33 | 34 | dev_dependencies: 35 | flutter_test: 36 | sdk: flutter 37 | 38 | # For information on the generic Dart part of this file, see the 39 | # following page: https://dart.dev/tools/pub/pubspec 40 | 41 | # The following section is specific to Flutter. 42 | flutter: 43 | 44 | # The following line ensures that the Material Icons font is 45 | # included with your application, so that you can use the icons in 46 | # the material Icons class. 47 | uses-material-design: true 48 | 49 | # To add assets to your application, add an assets section, like this: 50 | assets: 51 | - pictures/images/ 52 | 53 | # An image asset can refer to one or more resolution-specific "variants", see 54 | # https://flutter.dev/assets-and-images/#resolution-aware. 55 | 56 | # For details regarding adding assets from package dependencies, see 57 | # https://flutter.dev/assets-and-images/#from-packages 58 | 59 | # To add custom fonts to your application, add a fonts section here, 60 | # in this "flutter" section. Each entry in this list should have a 61 | # "family" key with the font family name, and a "fonts" key with a 62 | # list giving the asset and other descriptors for the font. For 63 | # example: 64 | # fonts: 65 | # - family: Schyler 66 | # fonts: 67 | # - asset: fonts/Schyler-Regular.ttf 68 | # - asset: fonts/Schyler-Italic.ttf 69 | # style: italic 70 | # - family: Trajan Pro 71 | # fonts: 72 | # - asset: fonts/TrajanPro.ttf 73 | # - asset: fonts/TrajanPro_Bold.ttf 74 | # weight: 700 75 | # 76 | # For details regarding fonts from package dependencies, 77 | # see https://flutter.dev/custom-fonts/#from-packages 78 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/View/Resturant/ResturantListView.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:hupptest/Theme/Color.dart'; 3 | import 'package:hupptest/Theme/CustomTextStyle.dart'; 4 | import 'package:hupptest/Widgets/CustomOutlineButton.dart'; 5 | 6 | import 'ResturantDetail.dart'; 7 | 8 | 9 | String image = 'https://images.pexels.com/photos/461198/pexels-photo-461198.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500'; 10 | 11 | class RestaurantListView extends StatelessWidget{ 12 | @override 13 | Widget build(BuildContext context) { 14 | return LayoutBuilder( 15 | builder: (context,constraint){ 16 | 17 | double height = constraint.biggest.height; 18 | double width = constraint.biggest.width; 19 | return ListView.separated( 20 | key: PageStorageKey("list_data"), 21 | itemBuilder: (context,index){ 22 | return GestureDetector( 23 | onTap: (){ 24 | Navigator.push( 25 | context, 26 | MaterialPageRoute(builder: (context) => RestaurantDetail(index: index,image: image,title: "Burger",), 27 | ), 28 | ); 29 | }, 30 | child: ResturantListItem(width: width,height: height,index: index,), 31 | ); 32 | }, 33 | separatorBuilder: (context,index){ 34 | return Container(); 35 | }, 36 | itemCount: 10, 37 | ); 38 | }, 39 | ); 40 | } 41 | } 42 | 43 | class TextSection extends StatelessWidget{ 44 | @override 45 | Widget build(BuildContext context) { 46 | // TODO: implement build 47 | return Row( 48 | children: [ 49 | Expanded( 50 | child: Container( 51 | child: Column( 52 | crossAxisAlignment: CrossAxisAlignment.start, 53 | children: [ 54 | Text("Burger cafe",style: resturantListTitleText(),), 55 | Text("Hamburger",style: resturantListSubTitleText()) 56 | ], 57 | ), 58 | ), 59 | ), 60 | Container( 61 | child: CustomOutlineButton( 62 | onPressed: (){ 63 | 64 | }, 65 | textStyle: resturantListButton(), 66 | highlightColor: primaryColor, 67 | borderColor: primaryColor, 68 | text: "Ready in 20Min", 69 | ), 70 | ), 71 | ], 72 | ); 73 | } 74 | } 75 | 76 | class ResturantListItem extends StatelessWidget{ 77 | 78 | final double height; 79 | final double width; 80 | final int index; 81 | ResturantListItem({required this.width,required this.height,required this.index}); 82 | 83 | @override 84 | Widget build(BuildContext context) { 85 | // TODO: implement build 86 | return Container( 87 | padding: EdgeInsets.symmetric(horizontal: 10.0), 88 | height: height/3, 89 | child: Column( 90 | children: [ 91 | Expanded( 92 | child: Hero( 93 | tag: index, 94 | child: Container( 95 | width: width-20, 96 | child: Image.network(image,fit: BoxFit.fitWidth,), 97 | ), 98 | ) 99 | ), 100 | TextSection() 101 | ], 102 | ), 103 | ); 104 | } 105 | } -------------------------------------------------------------------------------- /lib/View/Resturant/MenuView.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:hupptest/Theme/Color.dart'; 3 | 4 | class MenuView extends StatelessWidget { 5 | @override 6 | Widget build(BuildContext context) { 7 | return ListView.separated( 8 | key: new PageStorageKey('resturantMenuItem'), 9 | itemBuilder: (context, index) { 10 | return Container( 11 | color: Colors.white, 12 | child: Column( 13 | mainAxisSize: MainAxisSize.max, 14 | crossAxisAlignment: CrossAxisAlignment.center, 15 | children: [ 16 | Row( 17 | crossAxisAlignment: CrossAxisAlignment.center, 18 | mainAxisAlignment: MainAxisAlignment.center, 19 | children: [ 20 | Container( 21 | height: 70.0, 22 | width: 80.0, 23 | padding: EdgeInsets.only(left: 10.0), 24 | child: Image.network("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRvxAJcSQRs2u2vkyS5GoKLm66Op0CqWt0rjg&usqp=CAU",fit: BoxFit.fitHeight,), 25 | ), 26 | Expanded( 27 | child: Container( 28 | padding: EdgeInsets.symmetric(vertical: 15.0,horizontal: 10.0), 29 | height: 90.0, 30 | child: Column( 31 | mainAxisSize: MainAxisSize.max, 32 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 33 | children: [ 34 | Row( 35 | children: [ 36 | Expanded( 37 | child: Text( 38 | "Wayback Burger", 39 | style: TextStyle( 40 | fontSize: 16.0, fontWeight: FontWeight.w500), 41 | ), 42 | ), 43 | Text( 44 | "\$12", 45 | style: TextStyle( 46 | fontSize: 20.0, 47 | color: primaryColor, 48 | fontWeight: FontWeight.w700), 49 | ) 50 | ], 51 | ), 52 | Text( 53 | "Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs", 54 | maxLines: 2, 55 | style: TextStyle(fontSize: 13), 56 | ) 57 | ], 58 | ), 59 | ) 60 | ) 61 | ], 62 | ), 63 | ], 64 | ), 65 | ); 66 | }, 67 | separatorBuilder: (context, index) { 68 | return SizedBox( 69 | height: 5.0, 70 | ); 71 | }, 72 | itemCount: 10); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Firebase/Auth (8.6.0): 3 | - Firebase/CoreOnly 4 | - FirebaseAuth (~> 8.6.0) 5 | - Firebase/CoreOnly (8.6.0): 6 | - FirebaseCore (= 8.6.0) 7 | - firebase_auth (3.1.0): 8 | - Firebase/Auth (= 8.6.0) 9 | - firebase_core 10 | - Flutter 11 | - firebase_core (1.6.0): 12 | - Firebase/CoreOnly (= 8.6.0) 13 | - Flutter 14 | - FirebaseAuth (8.6.0): 15 | - FirebaseCore (~> 8.0) 16 | - GoogleUtilities/AppDelegateSwizzler (~> 7.4) 17 | - GoogleUtilities/Environment (~> 7.4) 18 | - GTMSessionFetcher/Core (~> 1.5) 19 | - FirebaseCore (8.6.0): 20 | - FirebaseCoreDiagnostics (~> 8.0) 21 | - GoogleUtilities/Environment (~> 7.4) 22 | - GoogleUtilities/Logger (~> 7.4) 23 | - FirebaseCoreDiagnostics (8.6.0): 24 | - GoogleDataTransport (~> 9.0) 25 | - GoogleUtilities/Environment (~> 7.4) 26 | - GoogleUtilities/Logger (~> 7.4) 27 | - nanopb (~> 2.30908.0) 28 | - Flutter (1.0.0) 29 | - GoogleDataTransport (9.1.0): 30 | - GoogleUtilities/Environment (~> 7.2) 31 | - nanopb (~> 2.30908.0) 32 | - PromisesObjC (< 3.0, >= 1.2) 33 | - GoogleUtilities/AppDelegateSwizzler (7.5.1): 34 | - GoogleUtilities/Environment 35 | - GoogleUtilities/Logger 36 | - GoogleUtilities/Network 37 | - GoogleUtilities/Environment (7.5.1): 38 | - PromisesObjC (< 3.0, >= 1.2) 39 | - GoogleUtilities/Logger (7.5.1): 40 | - GoogleUtilities/Environment 41 | - GoogleUtilities/Network (7.5.1): 42 | - GoogleUtilities/Logger 43 | - "GoogleUtilities/NSData+zlib" 44 | - GoogleUtilities/Reachability 45 | - "GoogleUtilities/NSData+zlib (7.5.1)" 46 | - GoogleUtilities/Reachability (7.5.1): 47 | - GoogleUtilities/Logger 48 | - GTMSessionFetcher/Core (1.6.1) 49 | - nanopb (2.30908.0): 50 | - nanopb/decode (= 2.30908.0) 51 | - nanopb/encode (= 2.30908.0) 52 | - nanopb/decode (2.30908.0) 53 | - nanopb/encode (2.30908.0) 54 | - PromisesObjC (2.0.0) 55 | 56 | DEPENDENCIES: 57 | - firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) 58 | - firebase_core (from `.symlinks/plugins/firebase_core/ios`) 59 | - Flutter (from `Flutter`) 60 | 61 | SPEC REPOS: 62 | trunk: 63 | - Firebase 64 | - FirebaseAuth 65 | - FirebaseCore 66 | - FirebaseCoreDiagnostics 67 | - GoogleDataTransport 68 | - GoogleUtilities 69 | - GTMSessionFetcher 70 | - nanopb 71 | - PromisesObjC 72 | 73 | EXTERNAL SOURCES: 74 | firebase_auth: 75 | :path: ".symlinks/plugins/firebase_auth/ios" 76 | firebase_core: 77 | :path: ".symlinks/plugins/firebase_core/ios" 78 | Flutter: 79 | :path: Flutter 80 | 81 | SPEC CHECKSUMS: 82 | Firebase: 21ac9f28b09a8bdfc005f34c984fca84e7e8786d 83 | firebase_auth: 2dfa8e886191c24ddcf4da34463d47b72e6d19dc 84 | firebase_core: c21ac09a8d23afd3594b56ed786bad12e5266bba 85 | FirebaseAuth: 223adeeb2262b417532e89bf06a960e3a0a1e9e4 86 | FirebaseCore: 620b677f70f5470a8e59cb77f3ddc666f6f09785 87 | FirebaseCoreDiagnostics: 3721920bde3a9a6d5aa093c1d25e9d3e47f694af 88 | Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c 89 | GoogleDataTransport: 85fd18ff3019bb85d3f2c551d04c481dedf71fc9 90 | GoogleUtilities: 3df19e3c24f7bbc291d8b5809aa6b0d41e642437 91 | GTMSessionFetcher: 36689134877faeb055b27dfa4ccc9ceaa42e029e 92 | nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96 93 | PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58 94 | 95 | PODFILE CHECKSUM: af6b891fb448119e2e3d0a226fcad7567aa13204 96 | 97 | COCOAPODS: 1.10.0 98 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/View/Resturant/PlaceReviewView.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:hupptest/Widgets/CustomDivider.dart'; 3 | import 'package:hupptest/Widgets/CustomRatingBar.dart'; 4 | 5 | class PlaceReviewView extends StatelessWidget{ 6 | @override 7 | Widget build(BuildContext context) { 8 | // TODO: implement build 9 | return Container( 10 | child: Column( 11 | children: [ 12 | CustomDivider( 13 | color: Colors.grey.withOpacity(0.5) 14 | ), 15 | Container( 16 | color: Colors.white, 17 | child: Padding( 18 | padding: EdgeInsets.symmetric(horizontal: 25.0,vertical: 10.0), 19 | child: Row( 20 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 21 | children: [ 22 | Text("25 reviews",style: TextStyle(fontSize: 18.0,fontWeight: FontWeight.bold),), 23 | CustomRatingBar(size: 2.0,) 24 | ], 25 | ), 26 | ), 27 | ), 28 | CustomDivider( 29 | color: Colors.grey.withOpacity(0.5) 30 | ), 31 | Expanded( 32 | child: Container( 33 | child: PlaceReivewList(), 34 | ), 35 | ) 36 | ], 37 | ), 38 | ); 39 | } 40 | } 41 | 42 | class PlaceReivewList extends StatelessWidget{ 43 | @override 44 | Widget build(BuildContext context) { 45 | // TODO: implement build 46 | return ListView.separated( 47 | itemBuilder: (context,index){ 48 | return PlaceReviewListItem(); 49 | }, 50 | separatorBuilder: (context,index){ 51 | return SizedBox(height: 20.0,); 52 | }, 53 | itemCount: 10 54 | ); 55 | } 56 | } 57 | 58 | class PlaceReviewListItem extends StatelessWidget{ 59 | @override 60 | Widget build(BuildContext context) { 61 | // TODO: implement build 62 | return Container( 63 | color: Colors.white, 64 | padding: EdgeInsets.symmetric(horizontal: 15), 65 | child: Column( 66 | children: [ 67 | Row( 68 | crossAxisAlignment: CrossAxisAlignment.center, 69 | children: [ 70 | Container( 71 | 72 | child: ClipRRect( 73 | borderRadius: BorderRadius.circular(25.0), 74 | child: Image.network("https://www.w3schools.com/howto/img_avatar.png"), 75 | ), 76 | margin: EdgeInsets.symmetric(vertical: 10.0), 77 | height: 40.0, 78 | width: 40.0, 79 | ), 80 | SizedBox(width: 5.0,), 81 | Expanded( 82 | child: Align( 83 | alignment: Alignment.centerLeft, 84 | child: Column( 85 | crossAxisAlignment: CrossAxisAlignment.start, 86 | children: [ 87 | Text("User name",style: TextStyle(fontWeight: FontWeight.bold,fontSize: 16.0),), 88 | Text("July 20th,2019",style: TextStyle(fontSize: 13.0),) 89 | ], 90 | ), 91 | ) 92 | ), 93 | CustomRatingBar(size: 3,) 94 | ], 95 | ), 96 | Text("Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a type specimen book.", 97 | style: TextStyle(fontSize: 13), 98 | maxLines: 3, 99 | ), 100 | SizedBox(height: 10.0,), 101 | ], 102 | ), 103 | ); 104 | } 105 | } -------------------------------------------------------------------------------- /lib/View/Welcome/Welcome.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:firebase_auth/firebase_auth.dart'; 3 | import 'package:hupptest/Theme/Color.dart'; 4 | import 'package:hupptest/View/Home/Home.dart'; 5 | import 'package:hupptest/View/Resturant/ResturantList.dart'; 6 | 7 | class Welcome extends StatelessWidget { 8 | final User? user; 9 | final scaffoldKey = GlobalKey(); 10 | 11 | Welcome({this.user}); 12 | 13 | logout(BuildContext? context) async { 14 | try { 15 | await FirebaseAuth.instance.signOut(); 16 | if(context != null) { 17 | Navigator.pushReplacement( 18 | context, MaterialPageRoute(builder: (context) => Home())); 19 | } 20 | } catch (e) {} 21 | } 22 | 23 | @override 24 | Widget build(BuildContext context) { 25 | // TODO: implement build 26 | return Scaffold( 27 | key: scaffoldKey, 28 | appBar: AppBar( 29 | elevation: 0.0, 30 | title: Text("Restaurant Nearby"), 31 | backgroundColor: primaryColor, 32 | actions: [ 33 | InkResponse( 34 | onTap: (){ 35 | 36 | }, 37 | child: Padding( 38 | padding: EdgeInsets.only(right: 10.0), 39 | child: Icon(Icons.shopping_cart), 40 | ), 41 | ) 42 | ], 43 | ), 44 | drawer: drawer(), 45 | body: RestaurantList(), 46 | ); 47 | } 48 | 49 | Drawer drawer(){ 50 | return Drawer( 51 | child: SafeArea( 52 | child: Column( 53 | crossAxisAlignment: CrossAxisAlignment.start, 54 | mainAxisAlignment: MainAxisAlignment.spaceAround, 55 | children: [ 56 | Padding( 57 | padding: EdgeInsets.symmetric(horizontal: 25.0), 58 | child:Text("Foodsy",style: TextStyle(color: primaryColor,fontSize: 30.0),), 59 | ), 60 | drawerMenu(), 61 | Padding( 62 | padding: EdgeInsets.symmetric(horizontal: 25.0), 63 | child: Column( 64 | crossAxisAlignment: CrossAxisAlignment.start, 65 | children: [ 66 | Text("Barcelona, Spain",style: TextStyle(fontSize: titleText,color: secondryColor),), 67 | SizedBox(height: 5.0,), 68 | Text("Change",style: TextStyle(color: primaryColor,fontSize: normalText),), 69 | ], 70 | ) 71 | ), 72 | ], 73 | ), 74 | ) 75 | ); 76 | } 77 | 78 | Widget drawerMenu(){ 79 | return Column( 80 | children: [ 81 | drawerList(active: true,icon: Icons.home,name:"Home",id: "HOME"), 82 | drawerList(active: false,icon: Icons.bookmark_border,name:"My Orders",id: "MY_ORDER"), 83 | drawerList(active: false,icon: Icons.notifications_none,name:"Notifications",id: "NOTIFICATION"), 84 | drawerList(active: false,icon: Icons.settings,name:"Settings",id: "SETTING"), 85 | drawerList(active: false,icon: Icons.power_settings_new,name:"Log Out",id: "LOGOUT"), 86 | ], 87 | ); 88 | } 89 | 90 | Widget drawerList({required String name,required IconData icon,required bool active,required String id}){ 91 | return InkWell( 92 | onTap: (){ 93 | if(id == "LOGOUT"){ 94 | logout(scaffoldKey.currentContext); 95 | } 96 | }, 97 | child: Padding( 98 | padding: EdgeInsets.symmetric(horizontal: 25.0,vertical: 10.0), 99 | child: Row( 100 | children: [ 101 | Icon(icon,color: active ? primaryColor : secondryColor,size: titleText,), 102 | SizedBox(width: 10.0,), 103 | Text(name,style: TextStyle(color: active ? primaryColor : secondryColor,fontSize: titleText),) 104 | ], 105 | ), 106 | ), 107 | ); 108 | } 109 | 110 | } 111 | -------------------------------------------------------------------------------- /lib/View/Resturant/ResturantDetail.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:hupptest/Theme/Color.dart'; 3 | import 'package:hupptest/Theme/CustomTextStyle.dart'; 4 | import 'package:hupptest/Widgets/CustomOutlineButton.dart'; 5 | 6 | import 'MenuView.dart'; 7 | import 'PlaceDetailsView.dart'; 8 | import 'PlaceReviewView.dart'; 9 | 10 | class RestaurantDetail extends StatefulWidget{ 11 | final int index; 12 | final String image; 13 | final String title; 14 | 15 | RestaurantDetail({required this.index,required this.image,required this.title}); 16 | 17 | @override 18 | State createState() { 19 | return RestaurantDetailState(); 20 | } 21 | } 22 | 23 | class RestaurantDetailState extends State with SingleTickerProviderStateMixin{ 24 | 25 | late TabController tabController; 26 | 27 | @override 28 | void initState() { 29 | // TODO: implement initState 30 | super.initState(); 31 | tabController = TabController(length: 3,vsync: this,initialIndex: 0); 32 | } 33 | 34 | @override 35 | Widget build(BuildContext context) { 36 | // TODO: implement build 37 | return Scaffold( 38 | appBar: AppBar( 39 | title: Text(widget.title), 40 | actions: [ 41 | InkResponse( 42 | onTap: (){}, 43 | child: Padding( 44 | padding: EdgeInsets.only(right: 10.0), 45 | child: Icon(Icons.shopping_cart), 46 | ), 47 | ) 48 | ], 49 | ), 50 | body: Column( 51 | children: [ 52 | Container( 53 | height: MediaQuery.of(context).size.height/3.5, 54 | padding: EdgeInsets.symmetric(vertical: 5.0,horizontal: 10.0), 55 | child: Hero( 56 | tag: widget.index, 57 | child: Image.network(widget.image), 58 | ) 59 | ), 60 | CustomOutlineButton( 61 | onPressed: (){ 62 | 63 | }, 64 | padding: EdgeInsets.symmetric(horizontal: 15.0,vertical: 5.0), 65 | textStyle: resturantListButton().copyWith(fontSize: 16.0), 66 | highlightColor: primaryColor, 67 | borderColor: primaryColor, 68 | text: "Ready in 20Min", 69 | ), 70 | Expanded( 71 | child: DetailTabView(tabController: tabController,), 72 | ) 73 | ], 74 | ) 75 | ); 76 | } 77 | } 78 | 79 | class DetailTabView extends StatelessWidget{ 80 | final TabController tabController; 81 | 82 | DetailTabView({required this.tabController}); 83 | 84 | @override 85 | Widget build(BuildContext context) { 86 | // TODO: implement build 87 | return Column( 88 | children: [ 89 | Container( 90 | child: TabBar( 91 | indicator: UnderlineTabIndicator( 92 | borderSide: BorderSide.none 93 | ), 94 | labelStyle: TextStyle(color: primaryColor), 95 | unselectedLabelColor: greyColor, 96 | labelColor: primaryColor, 97 | controller: tabController, 98 | tabs: [ 99 | Tab( 100 | child: Text(toUpper("Food menu"),style: detailsTabTitle(),), 101 | ), 102 | Tab( 103 | child: Text(toUpper("Place detail"),style: detailsTabTitle(),), 104 | ), 105 | Tab( 106 | child: Text(toUpper("Place review"),style: detailsTabTitle(),), 107 | ) 108 | ], 109 | ), 110 | color: Colors.white, 111 | ), 112 | Expanded( 113 | child: TabBarView( 114 | controller: tabController, 115 | children: [ 116 | MenuView(), 117 | PlaceDetailView(), 118 | PlaceReviewView() 119 | ], 120 | ), 121 | ) 122 | ], 123 | ); 124 | } 125 | } -------------------------------------------------------------------------------- /lib/View/Resturant/ResturantList.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:hupptest/Theme/Color.dart'; 3 | import 'dart:ui' as ui; 4 | import 'ResturantListMapView.dart'; 5 | import 'ResturantListView.dart'; 6 | 7 | 8 | class RestaurantList extends StatefulWidget{ 9 | @override 10 | State createState() { 11 | return RestaurantListState(); 12 | } 13 | } 14 | 15 | class RestaurantListState extends State with TickerProviderStateMixin{ 16 | 17 | int activeView = 0; 18 | EdgeInsets padding = EdgeInsets.symmetric(horizontal:10.0,vertical: 15.0); 19 | double fromBottom = 0; 20 | late Animation animation; 21 | late AnimationController animationController; 22 | late Animation offset; 23 | late TabController tabController; 24 | 25 | 26 | @override 27 | void initState() { 28 | // TODO: implement initState 29 | super.initState(); 30 | tabController = TabController(vsync: this,length: 2,initialIndex: 0); 31 | animationController = AnimationController(vsync: this,duration: Duration(milliseconds: 200)); 32 | animation = Tween(begin: 0.0,end: 250.0) 33 | .animate(CurvedAnimation(parent: animationController,curve: Curves.ease)); 34 | 35 | 36 | 37 | offset = Tween(begin: Offset(0.0,1.0), end: Offset(0.0, 0.0)) 38 | .animate(animationController); 39 | 40 | animation.addListener((){ 41 | setState(() { 42 | }); 43 | }); 44 | offset.addListener((){ 45 | }); 46 | } 47 | 48 | 49 | @override 50 | Widget build(BuildContext context) { 51 | // TODO: implement build 52 | return Scaffold( 53 | body: Stack( 54 | children: [ 55 | Column( 56 | children: [ 57 | TabBar( 58 | controller: tabController, 59 | indicatorColor: Colors.transparent, 60 | isScrollable: false, 61 | unselectedLabelColor: greyColor, 62 | labelColor: primaryColor, 63 | tabs: [ 64 | Tab( 65 | child: Text("Resturant List"), 66 | ), 67 | Tab( 68 | child: Text("Resturant Map"), 69 | ) 70 | ], 71 | ), 72 | Expanded( 73 | child: TabBarView( 74 | controller: tabController, 75 | children: [ 76 | RestaurantListView(), 77 | RestaurantMapView() 78 | ], 79 | ), 80 | ) 81 | 82 | ], 83 | ), 84 | getBlurWidget(), 85 | Positioned( 86 | bottom: animation.value, 87 | child: Align( 88 | alignment: Alignment.center, 89 | child: SafeArea( 90 | bottom: (animation.value == 0) ? true : false, 91 | minimum: EdgeInsets.only(bottom: 10.0), 92 | child: Container( 93 | width: MediaQuery.of(context).size.width, 94 | height: 50.0, 95 | child: FittedBox( 96 | child: FloatingActionButton( 97 | onPressed: (){ 98 | if(fromBottom == 100){ 99 | animationController.reverse(); 100 | setState(() { 101 | fromBottom = 0; 102 | }); 103 | }else{ 104 | setState(() { 105 | fromBottom = 100; 106 | }); 107 | animationController.forward(); 108 | } 109 | }, 110 | child: Icon(Icons.filter_list), 111 | ), 112 | ) 113 | ), 114 | ), 115 | ) 116 | ), 117 | Align( 118 | alignment: Alignment.bottomCenter, 119 | child: SlideTransition( 120 | position: offset, 121 | child: Container( 122 | height: 250.0, 123 | color: Colors.white, 124 | width: double.infinity, 125 | child: Column( 126 | children: [ 127 | Padding( 128 | padding: EdgeInsets.symmetric(vertical: 10.0), 129 | child: Text("Filters",style: TextStyle(fontSize: 20.0,fontWeight: FontWeight.w600),), 130 | ), 131 | Container( 132 | decoration: BoxDecoration( 133 | border: Border(bottom: BorderSide(color: Colors.grey.withOpacity(0.5)))), 134 | ), 135 | Expanded( 136 | child: Container( 137 | child: Wrap( 138 | children: [ 139 | getFilterWidgetIcon(Icons.local_pizza), 140 | getFilterWidgetIcon(Icons.local_pizza), 141 | getFilterWidgetIcon(Icons.local_pizza), 142 | getFilterWidgetIcon(Icons.local_pizza), 143 | getFilterWidgetIcon(Icons.local_pizza), 144 | getFilterWidgetIcon(Icons.local_pizza) 145 | ], 146 | ), 147 | ), 148 | ) 149 | ], 150 | ), 151 | ) 152 | ), 153 | ) 154 | ], 155 | ) 156 | ); 157 | } 158 | /// 159 | /// Return Filter section icon UI 160 | /// 161 | getFilterWidgetIcon(IconData icon){ 162 | return Padding( 163 | padding: EdgeInsets.symmetric(vertical: 10.0,horizontal: 30.0), 164 | child: Icon(icon,size: 60.0,), 165 | ); 166 | } 167 | /// 168 | /// Blur widget while open filter 169 | /// 170 | getBlurWidget(){ 171 | return (animation.value > 0) ? GestureDetector( 172 | onTap: (){ 173 | print("TAP OUT SIDE"); 174 | animationController.reverse(); 175 | setState(() { 176 | fromBottom = 0; 177 | }); 178 | }, 179 | child: BackdropFilter( 180 | filter: ui.ImageFilter.blur( 181 | sigmaX: 5.0, 182 | sigmaY: 5.0, 183 | ), 184 | child: Container( 185 | color: Colors.transparent, 186 | ), 187 | ), 188 | ) : Container(); 189 | } 190 | } -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "2.10.0" 12 | boolean_selector: 13 | dependency: transitive 14 | description: 15 | name: boolean_selector 16 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "2.1.1" 20 | characters: 21 | dependency: transitive 22 | description: 23 | name: characters 24 | sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "1.2.1" 28 | charcode: 29 | dependency: transitive 30 | description: 31 | name: charcode 32 | sha256: "8e36feea6de5ea69f2199f29cf42a450a855738c498b57c0b980e2d3cca9c362" 33 | url: "https://pub.dev" 34 | source: hosted 35 | version: "1.2.0" 36 | clock: 37 | dependency: transitive 38 | description: 39 | name: clock 40 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "1.1.1" 44 | collection: 45 | dependency: transitive 46 | description: 47 | name: collection 48 | sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 49 | url: "https://pub.dev" 50 | source: hosted 51 | version: "1.17.0" 52 | fake_async: 53 | dependency: transitive 54 | description: 55 | name: fake_async 56 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "1.3.1" 60 | firebase_auth: 61 | dependency: "direct main" 62 | description: 63 | name: firebase_auth 64 | sha256: bfdcdd6a2997d0afa6f4893e776f1eb2cf3acaa45229fbf5e66ac6963ddc9330 65 | url: "https://pub.dev" 66 | source: hosted 67 | version: "3.1.0" 68 | firebase_auth_platform_interface: 69 | dependency: transitive 70 | description: 71 | name: firebase_auth_platform_interface 72 | sha256: "18a4672bf202fbb3e1ce8a924c14d3fb0091b5c4b14574e663370425bfa82908" 73 | url: "https://pub.dev" 74 | source: hosted 75 | version: "6.1.0" 76 | firebase_auth_web: 77 | dependency: transitive 78 | description: 79 | name: firebase_auth_web 80 | sha256: "4bcbb90a7901a1940df20541c0f788c03e8922a09bba789eb27ce770de8e8683" 81 | url: "https://pub.dev" 82 | source: hosted 83 | version: "3.1.0" 84 | firebase_core: 85 | dependency: "direct main" 86 | description: 87 | name: firebase_core 88 | sha256: "64c02546d9a6ad1b5e9c4bac597b21ffd60fb78abb57534e83cfa885ee09469e" 89 | url: "https://pub.dev" 90 | source: hosted 91 | version: "1.6.0" 92 | firebase_core_platform_interface: 93 | dependency: transitive 94 | description: 95 | name: firebase_core_platform_interface 96 | sha256: "262627ffd9284ad81c9bda53de1adeeb5293da27b2da6c9bb2842126b97cae1c" 97 | url: "https://pub.dev" 98 | source: hosted 99 | version: "4.0.1" 100 | firebase_core_web: 101 | dependency: transitive 102 | description: 103 | name: firebase_core_web 104 | sha256: "580b099423759ea29563ba85bfeddb189eebde75275c7b556d3fef94bc4d0ae9" 105 | url: "https://pub.dev" 106 | source: hosted 107 | version: "1.1.0" 108 | flutter: 109 | dependency: "direct main" 110 | description: flutter 111 | source: sdk 112 | version: "0.0.0" 113 | flutter_test: 114 | dependency: "direct dev" 115 | description: flutter 116 | source: sdk 117 | version: "0.0.0" 118 | flutter_web_plugins: 119 | dependency: transitive 120 | description: flutter 121 | source: sdk 122 | version: "0.0.0" 123 | http_parser: 124 | dependency: transitive 125 | description: 126 | name: http_parser 127 | sha256: e362d639ba3bc07d5a71faebb98cde68c05bfbcfbbb444b60b6f60bb67719185 128 | url: "https://pub.dev" 129 | source: hosted 130 | version: "4.0.0" 131 | intl: 132 | dependency: transitive 133 | description: 134 | name: intl 135 | sha256: "910f85bce16fb5c6f614e117efa303e85a1731bb0081edf3604a2ae6e9a3cc91" 136 | url: "https://pub.dev" 137 | source: hosted 138 | version: "0.17.0" 139 | js: 140 | dependency: transitive 141 | description: 142 | name: js 143 | sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7" 144 | url: "https://pub.dev" 145 | source: hosted 146 | version: "0.6.5" 147 | matcher: 148 | dependency: transitive 149 | description: 150 | name: matcher 151 | sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" 152 | url: "https://pub.dev" 153 | source: hosted 154 | version: "0.12.13" 155 | material_color_utilities: 156 | dependency: transitive 157 | description: 158 | name: material_color_utilities 159 | sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 160 | url: "https://pub.dev" 161 | source: hosted 162 | version: "0.2.0" 163 | meta: 164 | dependency: transitive 165 | description: 166 | name: meta 167 | sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" 168 | url: "https://pub.dev" 169 | source: hosted 170 | version: "1.8.0" 171 | path: 172 | dependency: transitive 173 | description: 174 | name: path 175 | sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b 176 | url: "https://pub.dev" 177 | source: hosted 178 | version: "1.8.2" 179 | plugin_platform_interface: 180 | dependency: transitive 181 | description: 182 | name: plugin_platform_interface 183 | sha256: "5aadc2af7cd403ad0b95ef654c3e628517f4cae9682b4229a66caf9df71844d2" 184 | url: "https://pub.dev" 185 | source: hosted 186 | version: "2.0.1" 187 | sky_engine: 188 | dependency: transitive 189 | description: flutter 190 | source: sdk 191 | version: "0.0.99" 192 | source_span: 193 | dependency: transitive 194 | description: 195 | name: source_span 196 | sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 197 | url: "https://pub.dev" 198 | source: hosted 199 | version: "1.9.1" 200 | stack_trace: 201 | dependency: transitive 202 | description: 203 | name: stack_trace 204 | sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 205 | url: "https://pub.dev" 206 | source: hosted 207 | version: "1.11.0" 208 | stream_channel: 209 | dependency: transitive 210 | description: 211 | name: stream_channel 212 | sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" 213 | url: "https://pub.dev" 214 | source: hosted 215 | version: "2.1.1" 216 | string_scanner: 217 | dependency: transitive 218 | description: 219 | name: string_scanner 220 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 221 | url: "https://pub.dev" 222 | source: hosted 223 | version: "1.2.0" 224 | term_glyph: 225 | dependency: transitive 226 | description: 227 | name: term_glyph 228 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 229 | url: "https://pub.dev" 230 | source: hosted 231 | version: "1.2.1" 232 | test_api: 233 | dependency: transitive 234 | description: 235 | name: test_api 236 | sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 237 | url: "https://pub.dev" 238 | source: hosted 239 | version: "0.4.16" 240 | typed_data: 241 | dependency: transitive 242 | description: 243 | name: typed_data 244 | sha256: "53bdf7e979cfbf3e28987552fd72f637e63f3c8724c9e56d9246942dc2fa36ee" 245 | url: "https://pub.dev" 246 | source: hosted 247 | version: "1.3.0" 248 | vector_math: 249 | dependency: transitive 250 | description: 251 | name: vector_math 252 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 253 | url: "https://pub.dev" 254 | source: hosted 255 | version: "2.1.4" 256 | sdks: 257 | dart: ">=2.18.0 <3.0.0" 258 | flutter: ">=1.12.13+hotfix.5" 259 | -------------------------------------------------------------------------------- /lib/View/Signup/Signup.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../../Widgets/PageHeader.dart'; 3 | import '../../Widgets/CustomButton.dart'; 4 | import '../../Widgets/FormInputDecoration.dart'; 5 | import '../../Modal/Validation.dart'; 6 | import '../../Widgets/Loader.dart'; 7 | import 'package:firebase_auth/firebase_auth.dart'; 8 | import '../../Modal/User.dart'; 9 | import 'package:flutter/services.dart'; 10 | import '../Welcome/Welcome.dart'; 11 | import '../../Modal/Authentication.dart'; 12 | 13 | class Signup extends StatefulWidget { 14 | createState() => SignupState(); 15 | } 16 | 17 | class SignupState extends State { 18 | Authentication _authentication = Authentication(); 19 | FocusNode? username; 20 | FocusNode? email; 21 | FocusNode? password; 22 | FocusNode? confirmPassword; 23 | 24 | TextEditingController? emailCtrl, passwordCtrl, usernameCtrl, cpasswordCtrl; 25 | 26 | final _formKey = GlobalKey(); 27 | bool _autoValid = false; 28 | bool loader = false; 29 | 30 | @override 31 | void initState() { 32 | super.initState(); 33 | 34 | _authentication = Authentication(); 35 | 36 | _autoValid = false; 37 | loader = false; 38 | 39 | emailCtrl = TextEditingController(); 40 | passwordCtrl = TextEditingController(); 41 | usernameCtrl = TextEditingController(); 42 | cpasswordCtrl = TextEditingController(); 43 | 44 | username = FocusNode(); 45 | email = FocusNode(); 46 | password = FocusNode(); 47 | confirmPassword = FocusNode(); 48 | } 49 | 50 | @override 51 | void dispose() { 52 | super.dispose(); 53 | 54 | username?.unfocus(); 55 | email?.unfocus(); 56 | password?.unfocus(); 57 | confirmPassword?.unfocus(); 58 | emailCtrl?.dispose(); 59 | passwordCtrl?.dispose(); 60 | usernameCtrl?.dispose(); 61 | cpasswordCtrl?.dispose(); 62 | } 63 | 64 | signup(BuildContext context) async { 65 | email?.unfocus(); 66 | password?.unfocus(); 67 | username?.unfocus(); 68 | confirmPassword?.unfocus(); 69 | 70 | setState(() => _autoValid = true); 71 | if (_formKey.currentState!.validate()) { 72 | try { 73 | setState(() { 74 | loader = true; 75 | }); 76 | print("SUCCESS"); 77 | UserModel u = UserModel( 78 | email: emailCtrl!.value.text, password: passwordCtrl!.value.text); 79 | UserCredential _user = await _authentication.SingupUser(u); 80 | Navigator.pushAndRemoveUntil( 81 | context, 82 | MaterialPageRoute( 83 | builder: (BuildContext context) => Welcome( 84 | user: _user.user, 85 | ), 86 | ), 87 | ModalRoute.withName('/root')); 88 | 89 | setState(() { 90 | loader = false; 91 | }); 92 | } on PlatformException catch (e) { 93 | _authentication.ShowToast(context, _authentication.HandleError(e)); 94 | setState(() { 95 | loader = false; 96 | }); 97 | } 98 | } 99 | } 100 | 101 | @override 102 | Widget build(BuildContext context) { 103 | return Scaffold( 104 | backgroundColor: Colors.white, 105 | body: SafeArea(child: Builder(builder: (context) { 106 | return Stack( 107 | children: [ 108 | SignupForm(context), 109 | loader ? LoaderWidget() : Container() 110 | ], 111 | ); 112 | }))); 113 | } 114 | 115 | Widget SignupForm(BuildContext context) { 116 | return SingleChildScrollView( 117 | child: Form( 118 | key: _formKey, 119 | autovalidateMode: 120 | _autoValid ? AutovalidateMode.always : AutovalidateMode.disabled, 121 | child: Padding( 122 | padding: EdgeInsets.symmetric(horizontal: 30.0), 123 | child: Column( 124 | children: [ 125 | SizedBox( 126 | height: 20.0, 127 | ), 128 | PageHeader(title: "Register Now"), 129 | SizedBox( 130 | height: 30.0, 131 | ), 132 | TextFormField( 133 | controller: usernameCtrl, 134 | textInputAction: TextInputAction.next, 135 | focusNode: username, 136 | style: FormInputDecoration.customTextStyle(), 137 | textAlign: TextAlign.center, 138 | textCapitalization: TextCapitalization.none, 139 | decoration: FormInputDecoration.formInputDesign(name: "Username"), 140 | onFieldSubmitted: (node) { 141 | username!.unfocus(); 142 | FocusScope.of(context).requestFocus(email); 143 | }, 144 | validator: (value) => CheckFieldValidation( 145 | val: value, 146 | password: null, 147 | fieldName: "Username", 148 | fieldType: VALIDATION_TYPE.TEXT), 149 | ), 150 | SizedBox( 151 | height: 20.0, 152 | ), 153 | TextFormField( 154 | controller: emailCtrl, 155 | keyboardType: TextInputType.emailAddress, 156 | focusNode: email, 157 | textInputAction: TextInputAction.next, 158 | style: FormInputDecoration.customTextStyle(), 159 | textAlign: TextAlign.center, 160 | textCapitalization: TextCapitalization.none, 161 | decoration: 162 | FormInputDecoration.formInputDesign(name: "Email Address"), 163 | onFieldSubmitted: (node) { 164 | email!.unfocus(); 165 | FocusScope.of(context).requestFocus(password); 166 | }, 167 | validator: (value) => CheckFieldValidation( 168 | val: value, 169 | password: null, 170 | fieldName: "Email", 171 | fieldType: VALIDATION_TYPE.EMAIL), 172 | ), 173 | SizedBox( 174 | height: 20.0, 175 | ), 176 | TextFormField( 177 | controller: passwordCtrl, 178 | textInputAction: TextInputAction.next, 179 | focusNode: password, 180 | obscureText: true, 181 | style: FormInputDecoration.customTextStyle(), 182 | textAlign: TextAlign.center, 183 | textCapitalization: TextCapitalization.none, 184 | decoration: FormInputDecoration.formInputDesign(name: "Password"), 185 | onFieldSubmitted: (node) { 186 | password!.unfocus(); 187 | FocusScope.of(context).requestFocus(confirmPassword); 188 | }, 189 | validator: (value) => CheckFieldValidation( 190 | val: value, 191 | password: null, 192 | fieldName: "Password", 193 | fieldType: VALIDATION_TYPE.PASSWORD), 194 | ), 195 | SizedBox( 196 | height: 20.0, 197 | ), 198 | TextFormField( 199 | controller: cpasswordCtrl, 200 | textInputAction: TextInputAction.done, 201 | focusNode: confirmPassword, 202 | obscureText: true, 203 | style: FormInputDecoration.customTextStyle(), 204 | textAlign: TextAlign.center, 205 | textCapitalization: TextCapitalization.none, 206 | decoration: 207 | FormInputDecoration.formInputDesign(name: "Confirm password"), 208 | onFieldSubmitted: (node) { 209 | confirmPassword!.unfocus(); 210 | signup(context); 211 | }, 212 | validator: (value) => CheckFieldValidation( 213 | val: value, 214 | password: passwordCtrl!.value.text, 215 | fieldName: "Confirm password", 216 | fieldType: VALIDATION_TYPE.CONFIRM_PASSWORD), 217 | ), 218 | SizedBox( 219 | height: 20.0, 220 | ), 221 | CustomButton( 222 | text: "Sign up", 223 | color: Colors.green, 224 | onPressed: () => signup(context), 225 | ), 226 | Container( 227 | height: 50.0, 228 | width: double.infinity, 229 | alignment: Alignment.center, 230 | child: Text( 231 | "OR", 232 | style: TextStyle(fontSize: 15.0, fontWeight: FontWeight.w600), 233 | ), 234 | ), 235 | CustomButton( 236 | text: "Connect with facebook", 237 | color: Colors.indigo, 238 | onPressed: () {}, 239 | ), 240 | SizedBox( 241 | height: 5.0, 242 | ), 243 | CustomButton( 244 | text: "Connect with twitter", 245 | color: Colors.blue, 246 | onPressed: () {}, 247 | ), 248 | ], 249 | ), 250 | ), 251 | )); 252 | } 253 | } 254 | -------------------------------------------------------------------------------- /lib/View/Login/Login.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:hupptest/Modal/User.dart'; 3 | import '../../Widgets/PageHeader.dart'; 4 | import '../../Widgets/CustomButton.dart'; 5 | import '../../Widgets/FormInputDecoration.dart'; 6 | import 'package:firebase_auth/firebase_auth.dart'; 7 | import 'package:flutter/services.dart'; 8 | import '../../Widgets/Loader.dart'; 9 | import '../../Modal/Validation.dart'; 10 | import '../Welcome/Welcome.dart'; 11 | import '../../Modal/Authentication.dart'; 12 | 13 | class Login extends StatefulWidget { 14 | createState() => LoginState(); 15 | } 16 | 17 | class LoginState extends State { 18 | Authentication _authentication = Authentication(); 19 | FocusNode? email; 20 | FocusNode? password; 21 | TextEditingController? emailCtrl, passwordCtrl; 22 | bool _autoValid = false; 23 | bool loader = false; 24 | final _loginForm = GlobalKey(); 25 | 26 | @override 27 | void initState() { 28 | loader = false; 29 | _authentication = Authentication(); 30 | super.initState(); 31 | emailCtrl = TextEditingController(); 32 | passwordCtrl = TextEditingController(); 33 | email = FocusNode(); 34 | password = FocusNode(); 35 | } 36 | 37 | login(BuildContext context) async { 38 | password?.unfocus(); 39 | email?.unfocus(); 40 | setState(() { 41 | _autoValid = true; 42 | }); 43 | if (_loginForm.currentState!.validate()) { 44 | setState(() { 45 | loader = true; 46 | }); 47 | UserModel u = UserModel( 48 | email: emailCtrl!.value.text, 49 | password: passwordCtrl!.value.text, 50 | ); 51 | try { 52 | UserCredential? _user = await _authentication.LoginUser(u); 53 | print("HERE"); 54 | setState(() { 55 | loader = false; 56 | }); 57 | Navigator.pushAndRemoveUntil( 58 | context, 59 | MaterialPageRoute( 60 | builder: (BuildContext context) => Welcome( 61 | user: _user.user, 62 | )), 63 | ModalRoute.withName('/root')); 64 | } on FirebaseAuthException catch (e) { 65 | print(e); 66 | setState(() { 67 | loader = false; 68 | }); 69 | _authentication.ShowToast(context, _authentication.HandleError(e)); 70 | } catch (e) { 71 | print("ERROR #"); 72 | print(e); 73 | } 74 | } 75 | } 76 | 77 | ShowDialogBox(context) { 78 | showDialog( 79 | context: context, 80 | builder: (context) { 81 | return SimpleDialog( 82 | titlePadding: EdgeInsets.all(10.5), 83 | contentPadding: EdgeInsets.all(20.0), 84 | title: Row( 85 | children: [ 86 | Expanded( 87 | child: Text("Reset password"), 88 | ), 89 | Padding( 90 | padding: EdgeInsets.all(5.0), 91 | child: InkResponse( 92 | onTap: () { 93 | Navigator.of(context).pop(); 94 | }, 95 | child: Icon(Icons.close), 96 | ), 97 | ) 98 | ], 99 | ), 100 | children: [ 101 | Container( 102 | padding: EdgeInsets.all(10.0), 103 | child: Column( 104 | children: [ 105 | TextFormField( 106 | obscureText: true, 107 | textInputAction: TextInputAction.done, 108 | style: FormInputDecoration.customTextStyle(), 109 | textAlign: TextAlign.center, 110 | textCapitalization: TextCapitalization.none, 111 | decoration: 112 | FormInputDecoration.formInputDesign(name: "Password"), 113 | ) 114 | ], 115 | ), 116 | ) 117 | ], 118 | ); 119 | }, 120 | barrierDismissible: false); 121 | } 122 | 123 | @override 124 | Widget build(BuildContext context) { 125 | return Scaffold( 126 | body: SafeArea(child: Builder( 127 | builder: (context) { 128 | return Stack( 129 | children: [ 130 | LoginForm(context), 131 | loader ? LoaderWidget() : Container() 132 | ], 133 | ); 134 | }, 135 | )), 136 | ); 137 | } 138 | 139 | Widget LoginForm(BuildContext context) { 140 | return SingleChildScrollView( 141 | child: Form( 142 | key: _loginForm, 143 | autovalidateMode: 144 | _autoValid ? AutovalidateMode.always : AutovalidateMode.disabled, 145 | child: Padding( 146 | padding: EdgeInsets.symmetric(horizontal: 30.0), 147 | child: Column( 148 | children: [ 149 | SizedBox( 150 | height: 20.0, 151 | ), 152 | PageHeader(title: "Sing In"), 153 | SizedBox( 154 | height: 30.0, 155 | ), 156 | TextFormField( 157 | focusNode: email, 158 | controller: emailCtrl, 159 | keyboardType: TextInputType.emailAddress, 160 | textInputAction: TextInputAction.next, 161 | style: FormInputDecoration.customTextStyle(), 162 | textAlign: TextAlign.center, 163 | textCapitalization: TextCapitalization.none, 164 | decoration: FormInputDecoration.formInputDesign(name: "Email"), 165 | onFieldSubmitted: (node) { 166 | email?.unfocus(); 167 | FocusScope.of(context).requestFocus(password); 168 | }, 169 | validator: (value) => CheckFieldValidation( 170 | val: value, 171 | password: '', 172 | fieldName: "Email", 173 | fieldType: VALIDATION_TYPE.EMAIL), 174 | ), 175 | SizedBox( 176 | height: 20.0, 177 | ), 178 | TextFormField( 179 | controller: passwordCtrl, 180 | focusNode: password, 181 | obscureText: true, 182 | textInputAction: TextInputAction.done, 183 | style: FormInputDecoration.customTextStyle(), 184 | textAlign: TextAlign.center, 185 | textCapitalization: TextCapitalization.none, 186 | decoration: FormInputDecoration.formInputDesign(name: "Password"), 187 | onFieldSubmitted: (node) { 188 | password?.unfocus(); 189 | login(context); 190 | }, 191 | validator: (value) => CheckFieldValidation( 192 | val: value, 193 | password: '', 194 | fieldName: "Password", 195 | fieldType: VALIDATION_TYPE.TEXT), 196 | ), 197 | SizedBox( 198 | height: 20.0, 199 | ), 200 | CustomButton( 201 | text: "Login", 202 | color: Colors.green, 203 | onPressed: () => login(context), 204 | ), 205 | SizedBox( 206 | height: 20.0, 207 | ), 208 | Container( 209 | alignment: Alignment.center, 210 | child: Row( 211 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 212 | children: [ 213 | Text( 214 | "Forgot Password ?", 215 | style: TextStyle(fontWeight: FontWeight.w500), 216 | ), 217 | GestureDetector( 218 | onTap: () => ShowDialogBox(context), 219 | child: Text( 220 | "Click here", 221 | style: TextStyle( 222 | fontWeight: FontWeight.w500, color: Colors.teal), 223 | ), 224 | ) 225 | ], 226 | ), 227 | ), 228 | SizedBox( 229 | height: 20.0, 230 | ), 231 | Container( 232 | alignment: Alignment.center, 233 | child: Text("OR", style: TextStyle(fontWeight: FontWeight.w500)), 234 | ), 235 | SizedBox( 236 | height: 20.0, 237 | ), 238 | CustomButton( 239 | text: "Connect with facebook", 240 | onPressed: () {}, 241 | color: Colors.indigo, 242 | ), 243 | SizedBox( 244 | height: 5.0, 245 | ), 246 | CustomButton( 247 | text: "Connect with twitter", 248 | color: Colors.blue, 249 | onPressed: () {}, 250 | ) 251 | ], 252 | ), 253 | ), 254 | )); 255 | } 256 | 257 | @override 258 | void dispose() { 259 | // TODO: implement dispose 260 | super.dispose(); 261 | email?.dispose(); 262 | emailCtrl?.dispose(); 263 | password?.dispose(); 264 | passwordCtrl?.dispose(); 265 | } 266 | } 267 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 51; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 7F7248604EE075B1A9DDFCD6 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F1589681E2F872182CD710A4 /* Pods_Runner.framework */; }; 14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 17 | B3C47E5026EA0D87002A4B04 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = B3C47E4F26EA0D87002A4B04 /* GoogleService-Info.plist */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXCopyFilesBuildPhase section */ 21 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 22 | isa = PBXCopyFilesBuildPhase; 23 | buildActionMask = 2147483647; 24 | dstPath = ""; 25 | dstSubfolderSpec = 10; 26 | files = ( 27 | ); 28 | name = "Embed Frameworks"; 29 | runOnlyForDeploymentPostprocessing = 0; 30 | }; 31 | /* End PBXCopyFilesBuildPhase section */ 32 | 33 | /* Begin PBXFileReference section */ 34 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 35 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 36 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 37 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 38 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 39 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 40 | 8FED2D9997E9EBF1D478E704 /* 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 = ""; }; 41 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 42 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 43 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | AC5D6035F3618298C173D3F7 /* 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 = ""; }; 49 | B3C47E4F26EA0D87002A4B04 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; 50 | E9BD3E996B8032F439D55ECB /* 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 = ""; }; 51 | F1589681E2F872182CD710A4 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | /* End PBXFileReference section */ 53 | 54 | /* Begin PBXFrameworksBuildPhase section */ 55 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 56 | isa = PBXFrameworksBuildPhase; 57 | buildActionMask = 2147483647; 58 | files = ( 59 | 7F7248604EE075B1A9DDFCD6 /* Pods_Runner.framework in Frameworks */, 60 | ); 61 | runOnlyForDeploymentPostprocessing = 0; 62 | }; 63 | /* End PBXFrameworksBuildPhase section */ 64 | 65 | /* Begin PBXGroup section */ 66 | 4174E5871F3DC1AF1D50900F /* Frameworks */ = { 67 | isa = PBXGroup; 68 | children = ( 69 | F1589681E2F872182CD710A4 /* Pods_Runner.framework */, 70 | ); 71 | name = Frameworks; 72 | sourceTree = ""; 73 | }; 74 | 9740EEB11CF90186004384FC /* Flutter */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 78 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 79 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 80 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 81 | ); 82 | name = Flutter; 83 | sourceTree = ""; 84 | }; 85 | 97C146E51CF9000F007C117D = { 86 | isa = PBXGroup; 87 | children = ( 88 | B3C47E4F26EA0D87002A4B04 /* GoogleService-Info.plist */, 89 | 9740EEB11CF90186004384FC /* Flutter */, 90 | 97C146F01CF9000F007C117D /* Runner */, 91 | 97C146EF1CF9000F007C117D /* Products */, 92 | B9F924F8588A7BD2F41279E9 /* Pods */, 93 | 4174E5871F3DC1AF1D50900F /* Frameworks */, 94 | ); 95 | sourceTree = ""; 96 | }; 97 | 97C146EF1CF9000F007C117D /* Products */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 97C146EE1CF9000F007C117D /* Runner.app */, 101 | ); 102 | name = Products; 103 | sourceTree = ""; 104 | }; 105 | 97C146F01CF9000F007C117D /* Runner */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 109 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 110 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 111 | 97C147021CF9000F007C117D /* Info.plist */, 112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 114 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 115 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 116 | ); 117 | path = Runner; 118 | sourceTree = ""; 119 | }; 120 | B9F924F8588A7BD2F41279E9 /* Pods */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 8FED2D9997E9EBF1D478E704 /* Pods-Runner.debug.xcconfig */, 124 | E9BD3E996B8032F439D55ECB /* Pods-Runner.release.xcconfig */, 125 | AC5D6035F3618298C173D3F7 /* Pods-Runner.profile.xcconfig */, 126 | ); 127 | path = Pods; 128 | sourceTree = ""; 129 | }; 130 | /* End PBXGroup section */ 131 | 132 | /* Begin PBXNativeTarget section */ 133 | 97C146ED1CF9000F007C117D /* Runner */ = { 134 | isa = PBXNativeTarget; 135 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 136 | buildPhases = ( 137 | FE33F25EDFAE2CF312E5A125 /* [CP] Check Pods Manifest.lock */, 138 | 9740EEB61CF901F6004384FC /* Run Script */, 139 | 97C146EA1CF9000F007C117D /* Sources */, 140 | 97C146EB1CF9000F007C117D /* Frameworks */, 141 | 97C146EC1CF9000F007C117D /* Resources */, 142 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 143 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 144 | 9EA6F81BB9F169DF7251F894 /* [CP] Embed Pods Frameworks */, 145 | ); 146 | buildRules = ( 147 | ); 148 | dependencies = ( 149 | ); 150 | name = Runner; 151 | productName = Runner; 152 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 153 | productType = "com.apple.product-type.application"; 154 | }; 155 | /* End PBXNativeTarget section */ 156 | 157 | /* Begin PBXProject section */ 158 | 97C146E61CF9000F007C117D /* Project object */ = { 159 | isa = PBXProject; 160 | attributes = { 161 | LastUpgradeCheck = 1020; 162 | ORGANIZATIONNAME = ""; 163 | TargetAttributes = { 164 | 97C146ED1CF9000F007C117D = { 165 | CreatedOnToolsVersion = 7.3.1; 166 | LastSwiftMigration = 1100; 167 | }; 168 | }; 169 | }; 170 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 171 | compatibilityVersion = "Xcode 9.3"; 172 | developmentRegion = en; 173 | hasScannedForEncodings = 0; 174 | knownRegions = ( 175 | en, 176 | Base, 177 | ); 178 | mainGroup = 97C146E51CF9000F007C117D; 179 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 180 | projectDirPath = ""; 181 | projectRoot = ""; 182 | targets = ( 183 | 97C146ED1CF9000F007C117D /* Runner */, 184 | ); 185 | }; 186 | /* End PBXProject section */ 187 | 188 | /* Begin PBXResourcesBuildPhase section */ 189 | 97C146EC1CF9000F007C117D /* Resources */ = { 190 | isa = PBXResourcesBuildPhase; 191 | buildActionMask = 2147483647; 192 | files = ( 193 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 194 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 195 | B3C47E5026EA0D87002A4B04 /* GoogleService-Info.plist in Resources */, 196 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 197 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 198 | ); 199 | runOnlyForDeploymentPostprocessing = 0; 200 | }; 201 | /* End PBXResourcesBuildPhase section */ 202 | 203 | /* Begin PBXShellScriptBuildPhase section */ 204 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 205 | isa = PBXShellScriptBuildPhase; 206 | buildActionMask = 2147483647; 207 | files = ( 208 | ); 209 | inputPaths = ( 210 | ); 211 | name = "Thin Binary"; 212 | outputPaths = ( 213 | ); 214 | runOnlyForDeploymentPostprocessing = 0; 215 | shellPath = /bin/sh; 216 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 217 | }; 218 | 9740EEB61CF901F6004384FC /* Run Script */ = { 219 | isa = PBXShellScriptBuildPhase; 220 | buildActionMask = 2147483647; 221 | files = ( 222 | ); 223 | inputPaths = ( 224 | ); 225 | name = "Run Script"; 226 | outputPaths = ( 227 | ); 228 | runOnlyForDeploymentPostprocessing = 0; 229 | shellPath = /bin/sh; 230 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 231 | }; 232 | 9EA6F81BB9F169DF7251F894 /* [CP] Embed Pods Frameworks */ = { 233 | isa = PBXShellScriptBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | ); 237 | inputFileListPaths = ( 238 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 239 | ); 240 | name = "[CP] Embed Pods Frameworks"; 241 | outputFileListPaths = ( 242 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 243 | ); 244 | runOnlyForDeploymentPostprocessing = 0; 245 | shellPath = /bin/sh; 246 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 247 | showEnvVarsInLog = 0; 248 | }; 249 | FE33F25EDFAE2CF312E5A125 /* [CP] Check Pods Manifest.lock */ = { 250 | isa = PBXShellScriptBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | ); 254 | inputFileListPaths = ( 255 | ); 256 | inputPaths = ( 257 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 258 | "${PODS_ROOT}/Manifest.lock", 259 | ); 260 | name = "[CP] Check Pods Manifest.lock"; 261 | outputFileListPaths = ( 262 | ); 263 | outputPaths = ( 264 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | shellPath = /bin/sh; 268 | 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"; 269 | showEnvVarsInLog = 0; 270 | }; 271 | /* End PBXShellScriptBuildPhase section */ 272 | 273 | /* Begin PBXSourcesBuildPhase section */ 274 | 97C146EA1CF9000F007C117D /* Sources */ = { 275 | isa = PBXSourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 279 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | }; 283 | /* End PBXSourcesBuildPhase section */ 284 | 285 | /* Begin PBXVariantGroup section */ 286 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 287 | isa = PBXVariantGroup; 288 | children = ( 289 | 97C146FB1CF9000F007C117D /* Base */, 290 | ); 291 | name = Main.storyboard; 292 | sourceTree = ""; 293 | }; 294 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 295 | isa = PBXVariantGroup; 296 | children = ( 297 | 97C147001CF9000F007C117D /* Base */, 298 | ); 299 | name = LaunchScreen.storyboard; 300 | sourceTree = ""; 301 | }; 302 | /* End PBXVariantGroup section */ 303 | 304 | /* Begin XCBuildConfiguration section */ 305 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 306 | isa = XCBuildConfiguration; 307 | buildSettings = { 308 | ALWAYS_SEARCH_USER_PATHS = NO; 309 | CLANG_ANALYZER_NONNULL = YES; 310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 311 | CLANG_CXX_LIBRARY = "libc++"; 312 | CLANG_ENABLE_MODULES = YES; 313 | CLANG_ENABLE_OBJC_ARC = YES; 314 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 315 | CLANG_WARN_BOOL_CONVERSION = YES; 316 | CLANG_WARN_COMMA = YES; 317 | CLANG_WARN_CONSTANT_CONVERSION = YES; 318 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 320 | CLANG_WARN_EMPTY_BODY = YES; 321 | CLANG_WARN_ENUM_CONVERSION = YES; 322 | CLANG_WARN_INFINITE_RECURSION = YES; 323 | CLANG_WARN_INT_CONVERSION = YES; 324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 325 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 329 | CLANG_WARN_STRICT_PROTOTYPES = YES; 330 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 331 | CLANG_WARN_UNREACHABLE_CODE = YES; 332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 334 | COPY_PHASE_STRIP = NO; 335 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 336 | ENABLE_NS_ASSERTIONS = NO; 337 | ENABLE_STRICT_OBJC_MSGSEND = YES; 338 | GCC_C_LANGUAGE_STANDARD = gnu99; 339 | GCC_NO_COMMON_BLOCKS = YES; 340 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 341 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 342 | GCC_WARN_UNDECLARED_SELECTOR = YES; 343 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 344 | GCC_WARN_UNUSED_FUNCTION = YES; 345 | GCC_WARN_UNUSED_VARIABLE = YES; 346 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 347 | MTL_ENABLE_DEBUG_INFO = NO; 348 | SDKROOT = iphoneos; 349 | SUPPORTED_PLATFORMS = iphoneos; 350 | TARGETED_DEVICE_FAMILY = "1,2"; 351 | VALIDATE_PRODUCT = YES; 352 | }; 353 | name = Profile; 354 | }; 355 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 356 | isa = XCBuildConfiguration; 357 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 358 | buildSettings = { 359 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 360 | CLANG_ENABLE_MODULES = YES; 361 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 362 | ENABLE_BITCODE = NO; 363 | INFOPLIST_FILE = Runner/Info.plist; 364 | LD_RUNPATH_SEARCH_PATHS = ( 365 | "$(inherited)", 366 | "@executable_path/Frameworks", 367 | ); 368 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hupptest; 369 | PRODUCT_NAME = "$(TARGET_NAME)"; 370 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 371 | SWIFT_VERSION = 5.0; 372 | VERSIONING_SYSTEM = "apple-generic"; 373 | }; 374 | name = Profile; 375 | }; 376 | 97C147031CF9000F007C117D /* Debug */ = { 377 | isa = XCBuildConfiguration; 378 | buildSettings = { 379 | ALWAYS_SEARCH_USER_PATHS = NO; 380 | CLANG_ANALYZER_NONNULL = YES; 381 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 382 | CLANG_CXX_LIBRARY = "libc++"; 383 | CLANG_ENABLE_MODULES = YES; 384 | CLANG_ENABLE_OBJC_ARC = YES; 385 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 386 | CLANG_WARN_BOOL_CONVERSION = YES; 387 | CLANG_WARN_COMMA = YES; 388 | CLANG_WARN_CONSTANT_CONVERSION = YES; 389 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 390 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 391 | CLANG_WARN_EMPTY_BODY = YES; 392 | CLANG_WARN_ENUM_CONVERSION = YES; 393 | CLANG_WARN_INFINITE_RECURSION = YES; 394 | CLANG_WARN_INT_CONVERSION = YES; 395 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 396 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 397 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 398 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 399 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 400 | CLANG_WARN_STRICT_PROTOTYPES = YES; 401 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 402 | CLANG_WARN_UNREACHABLE_CODE = YES; 403 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 404 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 405 | COPY_PHASE_STRIP = NO; 406 | DEBUG_INFORMATION_FORMAT = dwarf; 407 | ENABLE_STRICT_OBJC_MSGSEND = YES; 408 | ENABLE_TESTABILITY = YES; 409 | GCC_C_LANGUAGE_STANDARD = gnu99; 410 | GCC_DYNAMIC_NO_PIC = NO; 411 | GCC_NO_COMMON_BLOCKS = YES; 412 | GCC_OPTIMIZATION_LEVEL = 0; 413 | GCC_PREPROCESSOR_DEFINITIONS = ( 414 | "DEBUG=1", 415 | "$(inherited)", 416 | ); 417 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 418 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 419 | GCC_WARN_UNDECLARED_SELECTOR = YES; 420 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 421 | GCC_WARN_UNUSED_FUNCTION = YES; 422 | GCC_WARN_UNUSED_VARIABLE = YES; 423 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 424 | MTL_ENABLE_DEBUG_INFO = YES; 425 | ONLY_ACTIVE_ARCH = YES; 426 | SDKROOT = iphoneos; 427 | TARGETED_DEVICE_FAMILY = "1,2"; 428 | }; 429 | name = Debug; 430 | }; 431 | 97C147041CF9000F007C117D /* Release */ = { 432 | isa = XCBuildConfiguration; 433 | buildSettings = { 434 | ALWAYS_SEARCH_USER_PATHS = NO; 435 | CLANG_ANALYZER_NONNULL = YES; 436 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 437 | CLANG_CXX_LIBRARY = "libc++"; 438 | CLANG_ENABLE_MODULES = YES; 439 | CLANG_ENABLE_OBJC_ARC = YES; 440 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 441 | CLANG_WARN_BOOL_CONVERSION = YES; 442 | CLANG_WARN_COMMA = YES; 443 | CLANG_WARN_CONSTANT_CONVERSION = YES; 444 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 445 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 446 | CLANG_WARN_EMPTY_BODY = YES; 447 | CLANG_WARN_ENUM_CONVERSION = YES; 448 | CLANG_WARN_INFINITE_RECURSION = YES; 449 | CLANG_WARN_INT_CONVERSION = YES; 450 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 451 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 452 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 453 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 454 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 455 | CLANG_WARN_STRICT_PROTOTYPES = YES; 456 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 457 | CLANG_WARN_UNREACHABLE_CODE = YES; 458 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 459 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 460 | COPY_PHASE_STRIP = NO; 461 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 462 | ENABLE_NS_ASSERTIONS = NO; 463 | ENABLE_STRICT_OBJC_MSGSEND = YES; 464 | GCC_C_LANGUAGE_STANDARD = gnu99; 465 | GCC_NO_COMMON_BLOCKS = YES; 466 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 467 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 468 | GCC_WARN_UNDECLARED_SELECTOR = YES; 469 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 470 | GCC_WARN_UNUSED_FUNCTION = YES; 471 | GCC_WARN_UNUSED_VARIABLE = YES; 472 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 473 | MTL_ENABLE_DEBUG_INFO = NO; 474 | SDKROOT = iphoneos; 475 | SUPPORTED_PLATFORMS = iphoneos; 476 | SWIFT_COMPILATION_MODE = wholemodule; 477 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 478 | TARGETED_DEVICE_FAMILY = "1,2"; 479 | VALIDATE_PRODUCT = YES; 480 | }; 481 | name = Release; 482 | }; 483 | 97C147061CF9000F007C117D /* Debug */ = { 484 | isa = XCBuildConfiguration; 485 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 486 | buildSettings = { 487 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 488 | CLANG_ENABLE_MODULES = YES; 489 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 490 | ENABLE_BITCODE = NO; 491 | INFOPLIST_FILE = Runner/Info.plist; 492 | LD_RUNPATH_SEARCH_PATHS = ( 493 | "$(inherited)", 494 | "@executable_path/Frameworks", 495 | ); 496 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hupptest; 497 | PRODUCT_NAME = "$(TARGET_NAME)"; 498 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 499 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 500 | SWIFT_VERSION = 5.0; 501 | VERSIONING_SYSTEM = "apple-generic"; 502 | }; 503 | name = Debug; 504 | }; 505 | 97C147071CF9000F007C117D /* Release */ = { 506 | isa = XCBuildConfiguration; 507 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 508 | buildSettings = { 509 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 510 | CLANG_ENABLE_MODULES = YES; 511 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 512 | ENABLE_BITCODE = NO; 513 | INFOPLIST_FILE = Runner/Info.plist; 514 | LD_RUNPATH_SEARCH_PATHS = ( 515 | "$(inherited)", 516 | "@executable_path/Frameworks", 517 | ); 518 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hupptest; 519 | PRODUCT_NAME = "$(TARGET_NAME)"; 520 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 521 | SWIFT_VERSION = 5.0; 522 | VERSIONING_SYSTEM = "apple-generic"; 523 | }; 524 | name = Release; 525 | }; 526 | /* End XCBuildConfiguration section */ 527 | 528 | /* Begin XCConfigurationList section */ 529 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 530 | isa = XCConfigurationList; 531 | buildConfigurations = ( 532 | 97C147031CF9000F007C117D /* Debug */, 533 | 97C147041CF9000F007C117D /* Release */, 534 | 249021D3217E4FDB00AE95B9 /* Profile */, 535 | ); 536 | defaultConfigurationIsVisible = 0; 537 | defaultConfigurationName = Release; 538 | }; 539 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 540 | isa = XCConfigurationList; 541 | buildConfigurations = ( 542 | 97C147061CF9000F007C117D /* Debug */, 543 | 97C147071CF9000F007C117D /* Release */, 544 | 249021D4217E4FDB00AE95B9 /* Profile */, 545 | ); 546 | defaultConfigurationIsVisible = 0; 547 | defaultConfigurationName = Release; 548 | }; 549 | /* End XCConfigurationList section */ 550 | }; 551 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 552 | } 553 | --------------------------------------------------------------------------------