├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── AppDelegate.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 │ ├── main.m │ ├── AppDelegate.m │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcworkspace │ └── contents.xcworkspacedata ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj └── .gitignore ├── img ├── bell1.png ├── chat1.png ├── cookie.png ├── food1.png ├── breakfast.png ├── hamburger.png └── icecream.png ├── font ├── Poppins-Medium.ttf └── Poppins-Regular.ttf ├── android ├── gradle.properties ├── .gitignore ├── 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 │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── drawable │ │ │ │ │ └── launch_background.xml │ │ │ ├── java │ │ │ │ └── xd │ │ │ │ │ └── com │ │ │ │ │ └── daily_food │ │ │ │ │ └── MainActivity.java │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── lib ├── utils │ ├── helper.dart │ └── config.dart ├── main.dart ├── transition │ └── scale.dart ├── widgets │ ├── menu.dart │ ├── filter.dart │ ├── d_service.dart │ ├── do_not_disturb.dart │ ├── head_waiter.dart │ └── more.dart └── screens │ ├── home.dart │ └── screen1.dart ├── .metadata ├── .gitignore ├── test └── widget_test.dart ├── README.md ├── pubspec.yaml └── pubspec.lock /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /img/bell1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/HEAD/img/bell1.png -------------------------------------------------------------------------------- /img/chat1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/HEAD/img/chat1.png -------------------------------------------------------------------------------- /img/cookie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/HEAD/img/cookie.png -------------------------------------------------------------------------------- /img/food1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/HEAD/img/food1.png -------------------------------------------------------------------------------- /img/breakfast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/HEAD/img/breakfast.png -------------------------------------------------------------------------------- /img/hamburger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/HEAD/img/hamburger.png -------------------------------------------------------------------------------- /img/icecream.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/HEAD/img/icecream.png -------------------------------------------------------------------------------- /font/Poppins-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/HEAD/font/Poppins-Medium.ttf -------------------------------------------------------------------------------- /font/Poppins-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/HEAD/font/Poppins-Regular.ttf -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/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/kushankurxd/daily_food/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kushankurxd/daily_food/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/kushankurxd/daily_food/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /lib/utils/helper.dart: -------------------------------------------------------------------------------- 1 | 2 | class FoodItem{ 3 | String name,time,type,price,image; 4 | FoodItem(this.name,this.time,this.type,this.price,this.image); 5 | } 6 | 7 | class CartItem{ 8 | String name,count,price,image; 9 | CartItem(this.name,this.count,this.price,this.image); 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-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /.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: 9f5ff2306bb3e30b2b98eee79cd231b1336f41f4 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 | -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | #import "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:daily_food/screens/home.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | void main() => runApp(MyApp()); 5 | 6 | class MyApp extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return MaterialApp( 10 | debugShowCheckedModeBanner: false, 11 | title: 'Flutter Demo', 12 | theme: ThemeData( 13 | primarySwatch: Colors.blue, 14 | ), 15 | home: HomeXD(), 16 | ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/java/xd/com/daily_food/MainActivity.java: -------------------------------------------------------------------------------- 1 | package xd.com.daily_food; 2 | 3 | import androidx.annotation.NonNull; 4 | import io.flutter.embedding.android.FlutterActivity; 5 | import io.flutter.embedding.engine.FlutterEngine; 6 | import io.flutter.plugins.GeneratedPluginRegistrant; 7 | 8 | public class MainActivity extends FlutterActivity { 9 | @Override 10 | public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { 11 | GeneratedPluginRegistrant.registerWith(flutterEngine); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.5.0' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .flutter-plugins-dependencies 28 | .packages 29 | .pub-cache/ 30 | .pub/ 31 | /build/ 32 | 33 | # Web related 34 | lib/generated_plugin_registrant.dart 35 | 36 | # Exceptions to above rules. 37 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 38 | -------------------------------------------------------------------------------- /lib/transition/scale.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ScaleRoute extends PageRouteBuilder { 4 | final Widget page; 5 | ScaleRoute({this.page}) 6 | : super( 7 | pageBuilder: ( 8 | BuildContext context, 9 | Animation animation, 10 | Animation secondaryAnimation, 11 | ) => 12 | page, 13 | transitionsBuilder: ( 14 | BuildContext context, 15 | Animation animation, 16 | Animation secondaryAnimation, 17 | Widget child, 18 | ) => 19 | ScaleTransition( 20 | scale: Tween( 21 | begin: 0.0, 22 | end: 1.0, 23 | ).animate( 24 | CurvedAnimation( 25 | parent: animation, 26 | curve: Curves.fastOutSlowIn, 27 | ), 28 | ), 29 | child: child, 30 | ), 31 | ); 32 | } -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/widgets/menu.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class MenuXD extends StatefulWidget{ 4 | 5 | Color color1,color2; 6 | 7 | MenuXD(this.color1,this.color2); 8 | 9 | @override 10 | State createState() { 11 | return _MenuXDState(); 12 | } 13 | } 14 | 15 | class _MenuXDState extends State { 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Column( 20 | mainAxisSize: MainAxisSize.min, 21 | crossAxisAlignment: CrossAxisAlignment.start, 22 | children: [ 23 | Container( 24 | width: 13, 25 | height: 2, 26 | color: widget.color1, 27 | ), 28 | SizedBox(height: 3,), 29 | Container( 30 | width: 20.4, 31 | height: 2.2, 32 | color: widget.color2, 33 | ), 34 | SizedBox(height: 3), 35 | Container( 36 | width: 14.4, 37 | height: 2, 38 | color: widget.color1, 39 | ), 40 | ], 41 | ); 42 | } 43 | } -------------------------------------------------------------------------------- /lib/widgets/filter.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class FilterXD extends StatefulWidget{ 4 | 5 | Color color1,color2; 6 | 7 | FilterXD(this.color1,this.color2); 8 | 9 | @override 10 | State createState() { 11 | return _FilterXDState(); 12 | } 13 | } 14 | 15 | class _FilterXDState extends State { 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Column( 20 | mainAxisSize: MainAxisSize.min, 21 | crossAxisAlignment: CrossAxisAlignment.center, 22 | children: [ 23 | Container( 24 | width: 21, 25 | height: 2, 26 | color: widget.color1, 27 | ), 28 | SizedBox(height: 3,), 29 | Container( 30 | width: 14, 31 | height: 2.4, 32 | color: widget.color2, 33 | ), 34 | SizedBox(height: 3,), 35 | Container( 36 | width: 4, 37 | height: 2, 38 | color: widget.color1, 39 | ), 40 | ], 41 | ); 42 | } 43 | } -------------------------------------------------------------------------------- /lib/utils/config.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | class SizeConfig { 4 | static MediaQueryData _mediaQueryData; 5 | static double screenWidth; 6 | static double screenHeight; 7 | static double blockSizeHorizontal; 8 | static double blockSizeVertical; 9 | 10 | static double _safeAreaHorizontal; 11 | static double _safeAreaVertical; 12 | static double safeBlockHorizontal; 13 | static double safeBlockVertical; 14 | 15 | void init(BuildContext context) { 16 | _mediaQueryData = MediaQuery.of(context); 17 | screenWidth = _mediaQueryData.size.width; 18 | screenHeight = _mediaQueryData.size.height; 19 | blockSizeHorizontal = screenWidth / 100; 20 | blockSizeVertical = screenHeight / 100; 21 | 22 | _safeAreaHorizontal = _mediaQueryData.padding.left + 23 | _mediaQueryData.padding.right; 24 | _safeAreaVertical = _mediaQueryData.padding.top + 25 | _mediaQueryData.padding.bottom; 26 | safeBlockHorizontal = (screenWidth - 27 | _safeAreaHorizontal) / 100; 28 | safeBlockVertical = (screenHeight - 29 | _safeAreaVertical) / 100; 30 | } 31 | } -------------------------------------------------------------------------------- /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:daily_food/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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # daily_food 2 | 3 | A new Flutter Room Service Application UI/UX Design. 4 | 5 | #### Screenshots 6 | ![ezgif com-resize](https://user-images.githubusercontent.com/37204706/74658290-f5079000-51b7-11ea-9720-657f7d334b14.gif) 7 | ![Screenshot_20200217-184943](https://user-images.githubusercontent.com/37204706/74657685-c9d07100-51b6-11ea-960d-4c80df44b04f.jpg) 8 | ![Screenshot_20200217-184949](https://user-images.githubusercontent.com/37204706/74657873-2338a000-51b7-11ea-8162-112ba70f2ea3.jpg) 9 | ![Screenshot_20200217-185023](https://user-images.githubusercontent.com/37204706/74657697-d1901580-51b6-11ea-8c99-784886dc5c37.jpg) 10 | 11 | 12 | ## Getting Started 13 | 14 | This project is a starting point for a Flutter application. 15 | 16 | A few resources to get you started if this is your first Flutter project: 17 | 18 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 19 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 20 | 21 | For help getting started with Flutter, view our 22 | [online documentation](https://flutter.dev/docs), which offers tutorials, 23 | samples, guidance on mobile development, and a full API reference. 24 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /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 | daily_food 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/widgets/d_service.dart: -------------------------------------------------------------------------------- 1 | import 'package:daily_food/utils/config.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class DServiceXD extends StatelessWidget{ 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Container( 9 | width: SizeConfig.safeBlockHorizontal * 42, 10 | height: SizeConfig.safeBlockVertical * 24, 11 | decoration: BoxDecoration( 12 | color: Colors.grey[300].withOpacity(0.4), 13 | borderRadius: BorderRadius.circular(SizeConfig.safeBlockHorizontal * 9.4) 14 | ), 15 | child: Column( 16 | children: [ 17 | SizedBox(height: SizeConfig.safeBlockVertical * 3,), 18 | ClipRRect( 19 | borderRadius: BorderRadius.circular(SizeConfig.safeBlockHorizontal * 6.4), 20 | child: Image.asset( 21 | 'img/food1.png', 22 | width: SizeConfig.safeBlockHorizontal * 20.4, 23 | height: SizeConfig.safeBlockVertical * 10, 24 | fit: BoxFit.cover, 25 | ), 26 | ), 27 | SizedBox(height: SizeConfig.safeBlockVertical * 2.4,), 28 | Text( 29 | 'R. Service', 30 | style: TextStyle( 31 | color: Colors.grey[900], 32 | fontFamily: 'Poppins', 33 | fontWeight: FontWeight.w600, 34 | letterSpacing: 0.2, 35 | fontSize: SizeConfig.safeBlockHorizontal * 4 36 | ), 37 | ), 38 | SizedBox(height: SizeConfig.safeBlockVertical * 0.5,), 39 | Text( 40 | 'Food & Stuff', 41 | style: TextStyle( 42 | color: Colors.grey[800], 43 | fontFamily: 'Poppins', 44 | fontWeight: FontWeight.w400, 45 | letterSpacing: 0.2, 46 | wordSpacing: 2, 47 | fontSize: SizeConfig.safeBlockHorizontal * 3.2 48 | ), 49 | ), 50 | ], 51 | ), 52 | ); 53 | } 54 | } -------------------------------------------------------------------------------- /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 from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 28 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "xd.com.daily_food" 37 | minSdkVersion 16 38 | targetSdkVersion 28 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'androidx.test:runner:1.1.1' 60 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 61 | } 62 | -------------------------------------------------------------------------------- /lib/widgets/do_not_disturb.dart: -------------------------------------------------------------------------------- 1 | import 'package:daily_food/utils/config.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class DoNotDisturbXD extends StatefulWidget{ 5 | 6 | @override 7 | _DoNotDisturbXDState createState() => _DoNotDisturbXDState(); 8 | } 9 | 10 | class _DoNotDisturbXDState extends State { 11 | 12 | bool _state = true; 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return Container( 17 | width: SizeConfig.safeBlockHorizontal * 42, 18 | height: SizeConfig.safeBlockVertical * 24, 19 | decoration: BoxDecoration( 20 | color: Colors.grey[300].withOpacity(0.4), 21 | borderRadius: BorderRadius.circular(SizeConfig.safeBlockHorizontal * 9.4) 22 | ), 23 | child: Column( 24 | children: [ 25 | SizedBox(height: SizeConfig.safeBlockVertical * 4.4,), 26 | Transform.scale( 27 | scale: 1.4, 28 | child: Switch( 29 | value: _state, 30 | onChanged: (val){ 31 | setState(() { 32 | _state = val; 33 | }); 34 | }, 35 | activeTrackColor: Colors.grey[800], 36 | activeColor: Colors.white, 37 | inactiveThumbColor: Colors.grey[800], 38 | inactiveTrackColor: Colors.grey[300], 39 | ), 40 | ), 41 | SizedBox(height: SizeConfig.safeBlockVertical * 4,), 42 | Text( 43 | 'Do Not', 44 | style: TextStyle( 45 | color: Colors.grey[900], 46 | fontFamily: 'Poppins', 47 | fontWeight: FontWeight.w600, 48 | letterSpacing: 0.2, 49 | fontSize: SizeConfig.safeBlockHorizontal * 4 50 | ), 51 | ), 52 | SizedBox(height: SizeConfig.safeBlockVertical * 0.5,), 53 | Text( 54 | 'Disturb', 55 | style: TextStyle( 56 | color: Colors.grey[900], 57 | fontFamily: 'Poppins', 58 | fontWeight: FontWeight.w600, 59 | letterSpacing: 0.2, 60 | fontSize: SizeConfig.safeBlockHorizontal * 4 61 | ), 62 | ), 63 | ], 64 | ), 65 | ); 66 | } 67 | } -------------------------------------------------------------------------------- /lib/widgets/head_waiter.dart: -------------------------------------------------------------------------------- 1 | import 'package:daily_food/utils/config.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class HeadWaiterXD extends StatelessWidget{ 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Container( 9 | width: SizeConfig.safeBlockHorizontal * 42, 10 | height: SizeConfig.safeBlockVertical * 24, 11 | decoration: BoxDecoration( 12 | color: Colors.grey[300].withOpacity(0.4), 13 | borderRadius: BorderRadius.circular(SizeConfig.safeBlockHorizontal * 9.4) 14 | ), 15 | child: Column( 16 | children: [ 17 | SizedBox(height: SizeConfig.safeBlockVertical * 2.4,), 18 | Padding( 19 | padding: EdgeInsets.only(left: SizeConfig.safeBlockHorizontal * 26), 20 | child: CircleAvatar(radius: SizeConfig.safeBlockHorizontal * 0.5,backgroundColor: Colors.grey[800],), 21 | ), 22 | SizedBox(height: SizeConfig.safeBlockVertical,), 23 | ClipRRect( 24 | borderRadius: BorderRadius.circular(SizeConfig.safeBlockHorizontal * 6.4), 25 | child: Image.asset( 26 | 'img/chat1.png', 27 | width: SizeConfig.safeBlockHorizontal * 20.4, 28 | height: SizeConfig.safeBlockVertical * 10, 29 | fit: BoxFit.cover, 30 | ), 31 | ), 32 | SizedBox(height: SizeConfig.safeBlockVertical * 2.4,), 33 | Text( 34 | 'Headwaiter', 35 | style: TextStyle( 36 | color: Colors.grey[900], 37 | fontFamily: 'Poppins', 38 | fontWeight: FontWeight.w600, 39 | letterSpacing: 0.2, 40 | fontSize: SizeConfig.safeBlockHorizontal * 4 41 | ), 42 | ), 43 | SizedBox(height: SizeConfig.safeBlockVertical * 0.5,), 44 | Text( 45 | 'Chat', 46 | style: TextStyle( 47 | color: Colors.grey[800], 48 | fontFamily: 'Poppins', 49 | fontWeight: FontWeight.w400, 50 | letterSpacing: 0.2, 51 | wordSpacing: 2, 52 | fontSize: SizeConfig.safeBlockHorizontal * 3.2 53 | ), 54 | ), 55 | ], 56 | ), 57 | ); 58 | } 59 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/widgets/more.dart: -------------------------------------------------------------------------------- 1 | import 'package:daily_food/utils/config.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class MoreXD extends StatelessWidget{ 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Container( 9 | width: SizeConfig.safeBlockHorizontal * 42, 10 | height: SizeConfig.safeBlockVertical * 30, 11 | decoration: BoxDecoration( 12 | color: Colors.grey[300].withOpacity(0.4), 13 | borderRadius: BorderRadius.circular(SizeConfig.safeBlockHorizontal * 9.4) 14 | ), 15 | child: Column( 16 | children: [ 17 | SizedBox(height: SizeConfig.safeBlockVertical * 3,), 18 | ClipRRect( 19 | borderRadius: BorderRadius.circular(SizeConfig.safeBlockHorizontal * 6.4), 20 | child: Image.asset( 21 | 'img/bell1.png', 22 | width: SizeConfig.safeBlockHorizontal * 20.4, 23 | height: SizeConfig.safeBlockVertical * 10, 24 | fit: BoxFit.cover, 25 | ), 26 | ), 27 | SizedBox(height: SizeConfig.safeBlockVertical * 2.4,), 28 | Text( 29 | 'More', 30 | style: TextStyle( 31 | color: Colors.grey[900], 32 | fontFamily: 'Poppins', 33 | fontWeight: FontWeight.w600, 34 | letterSpacing: 0.2, 35 | fontSize: SizeConfig.safeBlockHorizontal * 4 36 | ), 37 | ), 38 | SizedBox(height: SizeConfig.safeBlockVertical * 0.5,), 39 | Text( 40 | 'Taxi, Guide,', 41 | style: TextStyle( 42 | color: Colors.grey[800], 43 | fontFamily: 'Poppins', 44 | fontWeight: FontWeight.w400, 45 | letterSpacing: 0.2, 46 | wordSpacing: 2, 47 | fontSize: SizeConfig.safeBlockHorizontal * 3.2 48 | ), 49 | ), 50 | Text( 51 | 'Transfer, etc.', 52 | style: TextStyle( 53 | color: Colors.grey[800], 54 | fontFamily: 'Poppins', 55 | fontWeight: FontWeight.w400, 56 | letterSpacing: 0.2, 57 | wordSpacing: 2, 58 | fontSize: SizeConfig.safeBlockHorizontal * 3.2 59 | ), 60 | ), 61 | 62 | SizedBox(height: SizeConfig.safeBlockVertical * 3,), 63 | Text( 64 | 'new', 65 | style: TextStyle( 66 | color: Colors.grey[800], 67 | fontFamily: 'Poppins', 68 | fontWeight: FontWeight.w500, 69 | letterSpacing: 0.2, 70 | wordSpacing: 2, 71 | fontSize: SizeConfig.safeBlockHorizontal * 3.2 72 | ), 73 | ), 74 | ], 75 | ), 76 | ); 77 | } 78 | } -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: daily_food 2 | description: A new Flutter application. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.1.0 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | 23 | # The following adds the Cupertino Icons font to your application. 24 | # Use with the CupertinoIcons class for iOS style icons. 25 | cupertino_icons: ^0.1.2 26 | 27 | dev_dependencies: 28 | flutter_test: 29 | sdk: flutter 30 | 31 | 32 | # For information on the generic Dart part of this file, see the 33 | # following page: https://dart.dev/tools/pub/pubspec 34 | 35 | # The following section is specific to Flutter. 36 | flutter: 37 | 38 | # The following line ensures that the Material Icons font is 39 | # included with your application, so that you can use the icons in 40 | # the material Icons class. 41 | uses-material-design: true 42 | 43 | assets: 44 | - img/ 45 | # To add assets to your application, add an assets section, like this: 46 | # assets: 47 | # - images/a_dot_burr.jpeg 48 | # - images/a_dot_ham.jpeg 49 | 50 | # An image asset can refer to one or more resolution-specific "variants", see 51 | # https://flutter.dev/assets-and-images/#resolution-aware. 52 | 53 | # For details regarding adding assets from package dependencies, see 54 | # https://flutter.dev/assets-and-images/#from-packages 55 | 56 | # To add custom fonts to your application, add a fonts section here, 57 | # in this "flutter" section. Each entry in this list should have a 58 | # "family" key with the font family name, and a "fonts" key with a 59 | # list giving the asset and other descriptors for the font. For 60 | # example: 61 | # fonts: 62 | # - family: Schyler 63 | # fonts: 64 | # - asset: fonts/Schyler-Regular.ttf 65 | # - asset: fonts/Schyler-Italic.ttf 66 | # style: italic 67 | # - family: Trajan Pro 68 | # fonts: 69 | # - asset: fonts/TrajanPro.ttf 70 | # - asset: fonts/TrajanPro_Bold.ttf 71 | # weight: 700 72 | # 73 | fonts: 74 | - family: Poppins 75 | fonts: 76 | - asset: font/Poppins-Regular.ttf 77 | - asset: font/Poppins-Medium.ttf 78 | # For details regarding fonts from package dependencies, 79 | # see https://flutter.dev/custom-fonts/#from-packages 80 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner.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/screens/home.dart: -------------------------------------------------------------------------------- 1 | import 'package:daily_food/screens/screen1.dart'; 2 | import 'package:daily_food/transition/scale.dart'; 3 | import 'package:daily_food/utils/config.dart'; 4 | import 'package:daily_food/widgets/menu.dart'; 5 | import 'package:daily_food/widgets/d_service.dart'; 6 | import 'package:daily_food/widgets/do_not_disturb.dart'; 7 | import 'package:daily_food/widgets/head_waiter.dart'; 8 | import 'package:daily_food/widgets/more.dart'; 9 | import 'package:flutter/material.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | class HomeXD extends StatefulWidget { 13 | 14 | @override 15 | _HomeXDState createState() => _HomeXDState(); 16 | } 17 | 18 | class _HomeXDState extends State { 19 | 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | SizeConfig().init(context); 24 | SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( 25 | systemNavigationBarColor: Colors.white, // navigation bar color 26 | statusBarColor: Colors.white, // status bar color 27 | )); 28 | return Scaffold( 29 | backgroundColor: Colors.white, 30 | body: Column( 31 | children: [ 32 | SizedBox(height: SizeConfig.safeBlockVertical * 6.4,), 33 | Padding( 34 | padding: EdgeInsets.symmetric(horizontal: SizeConfig.safeBlockHorizontal * 6.4), 35 | child: Row( 36 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 37 | children: [ 38 | MenuXD(Colors.grey[800],Colors.grey[800]), 39 | Text( 40 | 'Hammock Hotels', 41 | style: TextStyle( 42 | color: Colors.black, 43 | fontFamily: 'Poppins', 44 | fontSize: SizeConfig.safeBlockHorizontal * 4.2, 45 | letterSpacing: 0.2, 46 | wordSpacing: 1.4, 47 | fontWeight: FontWeight.w500 48 | ), 49 | ), 50 | Icon(Icons.person_outline,color: Colors.grey[800],) 51 | ], 52 | ), 53 | ), 54 | 55 | SizedBox(height: SizeConfig.safeBlockVertical * 9.4,), 56 | Text( 57 | 'Room 146', 58 | style: TextStyle( 59 | color: Colors.grey[900], 60 | fontSize: SizeConfig.safeBlockHorizontal * 8, 61 | fontWeight: FontWeight.w800, 62 | fontFamily: 'Poppins', 63 | letterSpacing: 0.2, 64 | wordSpacing: 2 65 | ), 66 | ), 67 | 68 | SizedBox( 69 | width: SizeConfig.screenWidth, 70 | height: SizeConfig.safeBlockVertical * 72, 71 | child: Stack( 72 | children: [ 73 | Padding( 74 | padding: EdgeInsets.only(left: SizeConfig.safeBlockHorizontal * 6,top: SizeConfig.safeBlockVertical * 8), 75 | child: GestureDetector( 76 | child: DServiceXD(), 77 | onTap: (){ 78 | Navigator.push(context, ScaleRoute(page: Screen1XD())); 79 | } 80 | ), 81 | ), 82 | Padding( 83 | padding: EdgeInsets.only(left: SizeConfig.safeBlockHorizontal * 52.4,top: SizeConfig.safeBlockVertical * 4.4), 84 | child: DoNotDisturbXD(), 85 | ), 86 | Padding( 87 | padding: EdgeInsets.only(left: SizeConfig.safeBlockHorizontal * 6,top: SizeConfig.safeBlockVertical * 34.4), 88 | child: HeadWaiterXD(), 89 | ), 90 | Padding( 91 | padding: EdgeInsets.only(left: SizeConfig.safeBlockHorizontal * 52.4,top: SizeConfig.safeBlockVertical * 30.4), 92 | child: MoreXD(), 93 | ), 94 | ], 95 | ), 96 | ), 97 | Text( 98 | 'Breakfast in 10:32', 99 | style: TextStyle( 100 | color: Colors.grey[900], 101 | fontFamily: 'Poppins', 102 | fontWeight: FontWeight.w500, 103 | letterSpacing: 0.2, 104 | wordSpacing: 1, 105 | fontSize: SizeConfig.safeBlockHorizontal * 4 106 | ), 107 | ), 108 | Text( 109 | 'Check the Menu', 110 | style: TextStyle( 111 | color: Colors.grey[800], 112 | fontFamily: 'Poppins', 113 | fontWeight: FontWeight.w400, 114 | letterSpacing: 0.2, 115 | wordSpacing: 1, 116 | fontSize: SizeConfig.safeBlockHorizontal * 3.2 117 | ), 118 | ), 119 | ], 120 | ), 121 | ); 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.11" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.2" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.5" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.2" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.14.11" 46 | convert: 47 | dependency: transitive 48 | description: 49 | name: convert 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.1" 53 | crypto: 54 | dependency: transitive 55 | description: 56 | name: crypto 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.3" 60 | cupertino_icons: 61 | dependency: "direct main" 62 | description: 63 | name: cupertino_icons 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "0.1.3" 67 | flutter: 68 | dependency: "direct main" 69 | description: flutter 70 | source: sdk 71 | version: "0.0.0" 72 | flutter_test: 73 | dependency: "direct dev" 74 | description: flutter 75 | source: sdk 76 | version: "0.0.0" 77 | image: 78 | dependency: transitive 79 | description: 80 | name: image 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "2.1.4" 84 | matcher: 85 | dependency: transitive 86 | description: 87 | name: matcher 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "0.12.6" 91 | meta: 92 | dependency: transitive 93 | description: 94 | name: meta 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "1.1.8" 98 | path: 99 | dependency: transitive 100 | description: 101 | name: path 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.6.4" 105 | pedantic: 106 | dependency: transitive 107 | description: 108 | name: pedantic 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "1.8.0+1" 112 | petitparser: 113 | dependency: transitive 114 | description: 115 | name: petitparser 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "2.4.0" 119 | quiver: 120 | dependency: transitive 121 | description: 122 | name: quiver 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "2.0.5" 126 | sky_engine: 127 | dependency: transitive 128 | description: flutter 129 | source: sdk 130 | version: "0.0.99" 131 | source_span: 132 | dependency: transitive 133 | description: 134 | name: source_span 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "1.5.5" 138 | stack_trace: 139 | dependency: transitive 140 | description: 141 | name: stack_trace 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "1.9.3" 145 | stream_channel: 146 | dependency: transitive 147 | description: 148 | name: stream_channel 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "2.0.0" 152 | string_scanner: 153 | dependency: transitive 154 | description: 155 | name: string_scanner 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "1.0.5" 159 | term_glyph: 160 | dependency: transitive 161 | description: 162 | name: term_glyph 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "1.1.0" 166 | test_api: 167 | dependency: transitive 168 | description: 169 | name: test_api 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "0.2.11" 173 | typed_data: 174 | dependency: transitive 175 | description: 176 | name: typed_data 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "1.1.6" 180 | vector_math: 181 | dependency: transitive 182 | description: 183 | name: vector_math 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "2.0.8" 187 | xml: 188 | dependency: transitive 189 | description: 190 | name: xml 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "3.5.0" 194 | sdks: 195 | dart: ">=2.4.0 <3.0.0" 196 | -------------------------------------------------------------------------------- /lib/screens/screen1.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:daily_food/utils/config.dart'; 4 | import 'package:daily_food/utils/helper.dart'; 5 | import 'package:daily_food/widgets/filter.dart'; 6 | import 'package:flutter/cupertino.dart'; 7 | import 'package:flutter/material.dart'; 8 | 9 | class Screen1XD extends StatefulWidget { 10 | @override 11 | State createState() { 12 | return _Screen1XDState(); 13 | } 14 | } 15 | 16 | class _Screen1XDState extends State { 17 | List _titles = ['Food', 'Domestic', 'Entertainment', 'Contact']; 18 | List _items = [ 19 | new FoodItem('Chicken Burger', '15 min', 'Burger', '25', 'img/hamburger.png'), 20 | new FoodItem('Icecream', '2 min', 'Dessert', '20', 'img/icecream.png'), 21 | new FoodItem('Cookies', '25 min', 'Starter', '10', 'img/cookie.png'), 22 | new FoodItem('Bread Toast', '10 min', 'Breakfast', '5', 'img/breakfast.png') 23 | ]; 24 | List _cart = []; 25 | int _selected = 0; 26 | int _price = 0; 27 | 28 | @override 29 | Widget build(BuildContext context) { 30 | SizeConfig().init(context); 31 | return Scaffold( 32 | backgroundColor: Colors.white, 33 | body: Stack( 34 | children: [ 35 | Padding( 36 | padding: EdgeInsets.symmetric( 37 | horizontal: SizeConfig.safeBlockHorizontal * 6.4), 38 | child: Column( 39 | children: [ 40 | //AppBar 41 | SizedBox( 42 | height: SizeConfig.safeBlockVertical * 6.4, 43 | ), 44 | Row( 45 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 46 | children: [ 47 | GestureDetector( 48 | child: Icon( 49 | Icons.keyboard_backspace, 50 | color: Colors.grey[800], 51 | ), 52 | onTap: () { 53 | Navigator.pop(context); 54 | }), 55 | Text( 56 | 'Room Service', 57 | style: TextStyle( 58 | color: Colors.black, 59 | fontFamily: 'Poppins', 60 | fontSize: SizeConfig.safeBlockHorizontal * 4.2, 61 | letterSpacing: 0.2, 62 | wordSpacing: 1.4, 63 | fontWeight: FontWeight.w500), 64 | ), 65 | FilterXD(Colors.grey[900], Colors.grey[800]), 66 | ], 67 | ), 68 | 69 | //Title 70 | Padding( 71 | padding: EdgeInsets.only( 72 | top: SizeConfig.safeBlockVertical * 5, 73 | ), 74 | child: SizedBox( 75 | width: SizeConfig.screenWidth, 76 | height: SizeConfig.safeBlockVertical * 4, 77 | child: ListView.builder( 78 | physics: BouncingScrollPhysics(), 79 | itemCount: _titles.length, 80 | scrollDirection: Axis.horizontal, 81 | itemBuilder: (context, index) { 82 | return GestureDetector( 83 | onTap: () { 84 | if (_selected != index) { 85 | setState(() { 86 | _items = _items..shuffle(); 87 | }); 88 | } 89 | setState(() { 90 | _selected = index; 91 | }); 92 | }, 93 | child: Padding( 94 | padding: EdgeInsets.symmetric( 95 | horizontal: 96 | SizeConfig.safeBlockHorizontal * 4.4), 97 | child: Text( 98 | '${_titles[index]}', 99 | style: TextStyle( 100 | fontSize: index == _selected 101 | ? SizeConfig.safeBlockHorizontal * 3.6 102 | : SizeConfig.safeBlockHorizontal * 3.4, 103 | fontWeight: index == _selected 104 | ? FontWeight.w700 105 | : FontWeight.w500, 106 | color: index == _selected 107 | ? Colors.black 108 | : Colors.grey[600], 109 | fontFamily: 'Poppins', 110 | letterSpacing: 0.2, 111 | ), 112 | ), 113 | ), 114 | ); 115 | }), 116 | ), 117 | ), 118 | 119 | Expanded( 120 | child: ListView.builder( 121 | physics: BouncingScrollPhysics(), 122 | itemCount: _items.length, 123 | itemBuilder: (context, index) { 124 | return Padding( 125 | padding: EdgeInsets.only( 126 | bottom: SizeConfig.safeBlockVertical * 2.4), 127 | child: InkWell( 128 | onTap: () { 129 | addItemCart(index); 130 | }, 131 | splashColor: Colors.grey[300], 132 | child: Container( 133 | height: SizeConfig.safeBlockVertical * 24, 134 | decoration: BoxDecoration( 135 | borderRadius: BorderRadius.circular( 136 | SizeConfig.safeBlockHorizontal * 8), 137 | color: Colors.grey[400].withOpacity(0.2), 138 | ), 139 | child: Stack( 140 | children: [ 141 | Padding( 142 | padding: EdgeInsets.symmetric( 143 | horizontal: 144 | SizeConfig.safeBlockHorizontal * 8, 145 | vertical: 146 | SizeConfig.safeBlockVertical * 4), 147 | child: Column( 148 | crossAxisAlignment: 149 | CrossAxisAlignment.start, 150 | children: [ 151 | Row( 152 | mainAxisAlignment: 153 | MainAxisAlignment.spaceBetween, 154 | children: [ 155 | Text( 156 | '${_items[index].name}', 157 | style: TextStyle( 158 | fontFamily: 'Poppins', 159 | color: Colors.black, 160 | fontWeight: FontWeight.w600, 161 | letterSpacing: 0.2, 162 | wordSpacing: 1, 163 | fontSize: SizeConfig 164 | .safeBlockHorizontal * 165 | 4), 166 | ), 167 | Text( 168 | '${_items[index].time}', 169 | style: TextStyle( 170 | fontFamily: 'Poppins', 171 | color: Colors.black87, 172 | fontWeight: FontWeight.w500, 173 | letterSpacing: 0.2, 174 | wordSpacing: 1, 175 | fontSize: SizeConfig 176 | .safeBlockHorizontal * 177 | 3.2), 178 | ), 179 | ], 180 | ), 181 | Text( 182 | '${_items[index].type}', 183 | style: TextStyle( 184 | fontFamily: 'Poppins', 185 | color: Colors.grey[600], 186 | fontWeight: FontWeight.w500, 187 | letterSpacing: 0.2, 188 | wordSpacing: 1, 189 | fontSize: SizeConfig 190 | .safeBlockHorizontal * 191 | 3.2), 192 | ), 193 | Expanded( 194 | child: Align( 195 | alignment: Alignment.bottomLeft, 196 | child: Text( 197 | '${_items[index].price} \$', 198 | style: TextStyle( 199 | fontFamily: 'Poppins', 200 | color: Colors.grey[800], 201 | fontWeight: FontWeight.w700, 202 | letterSpacing: 0.2, 203 | wordSpacing: 1, 204 | fontSize: SizeConfig 205 | .safeBlockHorizontal * 206 | 3.4), 207 | )), 208 | ), 209 | ], 210 | ), 211 | ), 212 | Padding( 213 | padding: EdgeInsets.only( 214 | left: SizeConfig.safeBlockHorizontal * 215 | 40.4, 216 | top: 217 | SizeConfig.safeBlockVertical * 8.4), 218 | child: Image.asset( 219 | '${_items[index].image}', 220 | fit: BoxFit.cover, 221 | width: 222 | SizeConfig.safeBlockHorizontal * 34, 223 | height: SizeConfig.safeBlockVertical * 14, 224 | ), 225 | ), 226 | ], 227 | ), 228 | ), 229 | ), 230 | ); 231 | }), 232 | ) 233 | ], 234 | ), 235 | ), 236 | AnimatedOpacity( 237 | opacity: _cart.length > 0 ? 1 : 0, 238 | duration: Duration(milliseconds: 200), 239 | child: DraggableScrollableSheet( 240 | initialChildSize: 0.12, 241 | maxChildSize: 0.12, 242 | minChildSize: 0.12, 243 | builder: (context, scrollController) { 244 | return SingleChildScrollView( 245 | physics: BouncingScrollPhysics(), 246 | controller: scrollController, 247 | child: Container( 248 | decoration: BoxDecoration( 249 | color: Colors.white, 250 | borderRadius: BorderRadius.only( 251 | topRight: Radius.circular( 252 | SizeConfig.safeBlockHorizontal * 14.4), 253 | topLeft: Radius.circular( 254 | SizeConfig.safeBlockHorizontal * 14.4)), 255 | ), 256 | height: MediaQuery.of(context).size.height * 0.12, 257 | child: Padding( 258 | padding: EdgeInsets.symmetric( 259 | horizontal: SizeConfig.safeBlockHorizontal * 10), 260 | child: Column( 261 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 262 | crossAxisAlignment: CrossAxisAlignment.start, 263 | children: [ 264 | Padding( 265 | padding: EdgeInsets.only( 266 | top: SizeConfig.safeBlockVertical * 1.4), 267 | child: Center( 268 | child: Container( 269 | width: 40.4, 270 | height: 3, 271 | decoration: BoxDecoration( 272 | color: Colors.grey[600], 273 | borderRadius: BorderRadius.circular(20)), 274 | ), 275 | ), 276 | ), 277 | Padding( 278 | padding: EdgeInsets.only( 279 | bottom: SizeConfig.safeBlockVertical * 2), 280 | child: Row( 281 | children: [ 282 | Transform.rotate( 283 | child: Text( 284 | 'Cart', 285 | style: TextStyle( 286 | color: Colors.grey[800], 287 | fontFamily: 'Poppins', 288 | letterSpacing: 0.6, 289 | fontWeight: FontWeight.w700, 290 | fontSize: 291 | SizeConfig.safeBlockHorizontal * 4), 292 | ), 293 | angle: -pi / 180 * 90, 294 | ), 295 | SizedBox( 296 | width: SizeConfig.safeBlockHorizontal * 4, 297 | ), 298 | SizedBox( 299 | width: SizeConfig.safeBlockHorizontal * 54, 300 | height: SizeConfig.safeBlockVertical * 6, 301 | child: ListView.builder( 302 | physics: BouncingScrollPhysics(), 303 | itemCount: _cart.length, 304 | scrollDirection: Axis.horizontal, 305 | itemBuilder: (context, index) { 306 | return GestureDetector( 307 | onTap: (){ 308 | removeCartItem(index); 309 | }, 310 | child: Padding( 311 | padding: EdgeInsets.symmetric( 312 | horizontal: 313 | SizeConfig.safeBlockHorizontal * 314 | 2.4), 315 | child: Container( 316 | width: 317 | SizeConfig.safeBlockHorizontal * 318 | 13, 319 | decoration: BoxDecoration( 320 | color: Colors.grey[300] 321 | .withOpacity(0.4), 322 | borderRadius: BorderRadius 323 | .circular(SizeConfig 324 | .safeBlockHorizontal * 325 | 8)), 326 | child: Stack( 327 | children: [ 328 | Center( 329 | child: Image.asset( 330 | '${_cart[index].image}', 331 | fit: BoxFit.contain, 332 | ), 333 | ), 334 | Padding( 335 | padding: EdgeInsets.only( 336 | left: SizeConfig 337 | .safeBlockHorizontal * 338 | 10.4, 339 | ), 340 | child: Text( 341 | '${_cart[index].count}', 342 | style: TextStyle( 343 | fontFamily: 'Poppins', 344 | fontWeight: 345 | FontWeight.w600, 346 | fontSize: SizeConfig 347 | .safeBlockHorizontal * 348 | 2.8, 349 | color: 350 | Colors.grey[800]), 351 | ), 352 | ) 353 | ], 354 | )), 355 | ), 356 | ); 357 | }, 358 | ), 359 | ), 360 | SizedBox( 361 | width: SizeConfig.safeBlockHorizontal * 4, 362 | ), 363 | Text( 364 | '\$ $_price', 365 | style: TextStyle( 366 | color: Colors.grey[900], 367 | fontFamily: 'Poppins', 368 | letterSpacing: 0.6, 369 | fontWeight: FontWeight.w700, 370 | fontSize: 371 | SizeConfig.safeBlockHorizontal * 3.4), 372 | ) 373 | ], 374 | ), 375 | ), 376 | ], 377 | ), 378 | ), 379 | ), 380 | ); 381 | }, 382 | ), 383 | ), 384 | ], 385 | ), 386 | ); 387 | } 388 | 389 | addItemCart(int index) { 390 | adjustPrice(int.parse(_items[index].price), true); 391 | for(int i=0;i<_cart.length;i++){ 392 | if(_cart[i].name == _items[index].name){ 393 | setState(() { 394 | _cart[i].count = (int.parse(_cart[i].count) + 1).toString(); 395 | }); 396 | return; 397 | } 398 | } 399 | setState(() { 400 | _cart.add(new CartItem(_items[index].name, '1', _items[index].price, _items[index].image)); 401 | }); 402 | } 403 | 404 | removeCartItem(int index) { 405 | adjustPrice(int.parse(_cart[index].price), false); 406 | if((int.parse(_cart[index].count)) > 1){ 407 | setState(() { 408 | _cart[index].count = (int.parse(_cart[index].count) - 1).toString(); 409 | }); 410 | return; 411 | } 412 | setState(() { 413 | _cart.removeAt(index); 414 | }); 415 | } 416 | 417 | adjustPrice(int price,bool flag){ 418 | setState(() { 419 | _price = 420 | flag ? _price + price : _price - price; 421 | }); 422 | 423 | } 424 | } 425 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 17 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 18 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 19 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 20 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXCopyFilesBuildPhase section */ 24 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 25 | isa = PBXCopyFilesBuildPhase; 26 | buildActionMask = 2147483647; 27 | dstPath = ""; 28 | dstSubfolderSpec = 10; 29 | files = ( 30 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 31 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 32 | ); 33 | name = "Embed Frameworks"; 34 | runOnlyForDeploymentPostprocessing = 0; 35 | }; 36 | /* End PBXCopyFilesBuildPhase section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 40 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 41 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 42 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 43 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 44 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 45 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 46 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 47 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 48 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 49 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 51 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 52 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 53 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 54 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | /* End PBXFileReference section */ 56 | 57 | /* Begin PBXFrameworksBuildPhase section */ 58 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 63 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | /* End PBXFrameworksBuildPhase section */ 68 | 69 | /* Begin PBXGroup section */ 70 | 9740EEB11CF90186004384FC /* Flutter */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | 3B80C3931E831B6300D905FE /* App.framework */, 74 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 75 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 76 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 77 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 78 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 79 | ); 80 | name = Flutter; 81 | sourceTree = ""; 82 | }; 83 | 97C146E51CF9000F007C117D = { 84 | isa = PBXGroup; 85 | children = ( 86 | 9740EEB11CF90186004384FC /* Flutter */, 87 | 97C146F01CF9000F007C117D /* Runner */, 88 | 97C146EF1CF9000F007C117D /* Products */, 89 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 90 | ); 91 | sourceTree = ""; 92 | }; 93 | 97C146EF1CF9000F007C117D /* Products */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 97C146EE1CF9000F007C117D /* Runner.app */, 97 | ); 98 | name = Products; 99 | sourceTree = ""; 100 | }; 101 | 97C146F01CF9000F007C117D /* Runner */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 105 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 106 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 107 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 108 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 109 | 97C147021CF9000F007C117D /* Info.plist */, 110 | 97C146F11CF9000F007C117D /* Supporting Files */, 111 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 112 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 113 | ); 114 | path = Runner; 115 | sourceTree = ""; 116 | }; 117 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 97C146F21CF9000F007C117D /* main.m */, 121 | ); 122 | name = "Supporting Files"; 123 | sourceTree = ""; 124 | }; 125 | /* End PBXGroup section */ 126 | 127 | /* Begin PBXNativeTarget section */ 128 | 97C146ED1CF9000F007C117D /* Runner */ = { 129 | isa = PBXNativeTarget; 130 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 131 | buildPhases = ( 132 | 9740EEB61CF901F6004384FC /* Run Script */, 133 | 97C146EA1CF9000F007C117D /* Sources */, 134 | 97C146EB1CF9000F007C117D /* Frameworks */, 135 | 97C146EC1CF9000F007C117D /* Resources */, 136 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 137 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 138 | ); 139 | buildRules = ( 140 | ); 141 | dependencies = ( 142 | ); 143 | name = Runner; 144 | productName = Runner; 145 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 146 | productType = "com.apple.product-type.application"; 147 | }; 148 | /* End PBXNativeTarget section */ 149 | 150 | /* Begin PBXProject section */ 151 | 97C146E61CF9000F007C117D /* Project object */ = { 152 | isa = PBXProject; 153 | attributes = { 154 | LastUpgradeCheck = 1020; 155 | ORGANIZATIONNAME = "The Chromium Authors"; 156 | TargetAttributes = { 157 | 97C146ED1CF9000F007C117D = { 158 | CreatedOnToolsVersion = 7.3.1; 159 | }; 160 | }; 161 | }; 162 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 163 | compatibilityVersion = "Xcode 3.2"; 164 | developmentRegion = en; 165 | hasScannedForEncodings = 0; 166 | knownRegions = ( 167 | en, 168 | Base, 169 | ); 170 | mainGroup = 97C146E51CF9000F007C117D; 171 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 172 | projectDirPath = ""; 173 | projectRoot = ""; 174 | targets = ( 175 | 97C146ED1CF9000F007C117D /* Runner */, 176 | ); 177 | }; 178 | /* End PBXProject section */ 179 | 180 | /* Begin PBXResourcesBuildPhase section */ 181 | 97C146EC1CF9000F007C117D /* Resources */ = { 182 | isa = PBXResourcesBuildPhase; 183 | buildActionMask = 2147483647; 184 | files = ( 185 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 186 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 187 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 188 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 189 | ); 190 | runOnlyForDeploymentPostprocessing = 0; 191 | }; 192 | /* End PBXResourcesBuildPhase section */ 193 | 194 | /* Begin PBXShellScriptBuildPhase section */ 195 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 196 | isa = PBXShellScriptBuildPhase; 197 | buildActionMask = 2147483647; 198 | files = ( 199 | ); 200 | inputPaths = ( 201 | ); 202 | name = "Thin Binary"; 203 | outputPaths = ( 204 | ); 205 | runOnlyForDeploymentPostprocessing = 0; 206 | shellPath = /bin/sh; 207 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 208 | }; 209 | 9740EEB61CF901F6004384FC /* Run Script */ = { 210 | isa = PBXShellScriptBuildPhase; 211 | buildActionMask = 2147483647; 212 | files = ( 213 | ); 214 | inputPaths = ( 215 | ); 216 | name = "Run Script"; 217 | outputPaths = ( 218 | ); 219 | runOnlyForDeploymentPostprocessing = 0; 220 | shellPath = /bin/sh; 221 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 222 | }; 223 | /* End PBXShellScriptBuildPhase section */ 224 | 225 | /* Begin PBXSourcesBuildPhase section */ 226 | 97C146EA1CF9000F007C117D /* Sources */ = { 227 | isa = PBXSourcesBuildPhase; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 231 | 97C146F31CF9000F007C117D /* main.m in Sources */, 232 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 233 | ); 234 | runOnlyForDeploymentPostprocessing = 0; 235 | }; 236 | /* End PBXSourcesBuildPhase section */ 237 | 238 | /* Begin PBXVariantGroup section */ 239 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 240 | isa = PBXVariantGroup; 241 | children = ( 242 | 97C146FB1CF9000F007C117D /* Base */, 243 | ); 244 | name = Main.storyboard; 245 | sourceTree = ""; 246 | }; 247 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 248 | isa = PBXVariantGroup; 249 | children = ( 250 | 97C147001CF9000F007C117D /* Base */, 251 | ); 252 | name = LaunchScreen.storyboard; 253 | sourceTree = ""; 254 | }; 255 | /* End PBXVariantGroup section */ 256 | 257 | /* Begin XCBuildConfiguration section */ 258 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 259 | isa = XCBuildConfiguration; 260 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 261 | buildSettings = { 262 | ALWAYS_SEARCH_USER_PATHS = NO; 263 | CLANG_ANALYZER_NONNULL = YES; 264 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 265 | CLANG_CXX_LIBRARY = "libc++"; 266 | CLANG_ENABLE_MODULES = YES; 267 | CLANG_ENABLE_OBJC_ARC = YES; 268 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 269 | CLANG_WARN_BOOL_CONVERSION = YES; 270 | CLANG_WARN_COMMA = YES; 271 | CLANG_WARN_CONSTANT_CONVERSION = YES; 272 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 273 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 274 | CLANG_WARN_EMPTY_BODY = YES; 275 | CLANG_WARN_ENUM_CONVERSION = YES; 276 | CLANG_WARN_INFINITE_RECURSION = YES; 277 | CLANG_WARN_INT_CONVERSION = YES; 278 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 279 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 280 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 281 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 282 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 283 | CLANG_WARN_STRICT_PROTOTYPES = YES; 284 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 285 | CLANG_WARN_UNREACHABLE_CODE = YES; 286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 288 | COPY_PHASE_STRIP = NO; 289 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 290 | ENABLE_NS_ASSERTIONS = NO; 291 | ENABLE_STRICT_OBJC_MSGSEND = YES; 292 | GCC_C_LANGUAGE_STANDARD = gnu99; 293 | GCC_NO_COMMON_BLOCKS = YES; 294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 296 | GCC_WARN_UNDECLARED_SELECTOR = YES; 297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 298 | GCC_WARN_UNUSED_FUNCTION = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 301 | MTL_ENABLE_DEBUG_INFO = NO; 302 | SDKROOT = iphoneos; 303 | SUPPORTED_PLATFORMS = iphoneos; 304 | TARGETED_DEVICE_FAMILY = "1,2"; 305 | VALIDATE_PRODUCT = YES; 306 | }; 307 | name = Profile; 308 | }; 309 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 310 | isa = XCBuildConfiguration; 311 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 312 | buildSettings = { 313 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 314 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 315 | ENABLE_BITCODE = NO; 316 | FRAMEWORK_SEARCH_PATHS = ( 317 | "$(inherited)", 318 | "$(PROJECT_DIR)/Flutter", 319 | ); 320 | INFOPLIST_FILE = Runner/Info.plist; 321 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 322 | LIBRARY_SEARCH_PATHS = ( 323 | "$(inherited)", 324 | "$(PROJECT_DIR)/Flutter", 325 | ); 326 | PRODUCT_BUNDLE_IDENTIFIER = xd.com.dailyFood; 327 | PRODUCT_NAME = "$(TARGET_NAME)"; 328 | VERSIONING_SYSTEM = "apple-generic"; 329 | }; 330 | name = Profile; 331 | }; 332 | 97C147031CF9000F007C117D /* Debug */ = { 333 | isa = XCBuildConfiguration; 334 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 335 | buildSettings = { 336 | ALWAYS_SEARCH_USER_PATHS = NO; 337 | CLANG_ANALYZER_NONNULL = YES; 338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 339 | CLANG_CXX_LIBRARY = "libc++"; 340 | CLANG_ENABLE_MODULES = YES; 341 | CLANG_ENABLE_OBJC_ARC = YES; 342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 343 | CLANG_WARN_BOOL_CONVERSION = YES; 344 | CLANG_WARN_COMMA = YES; 345 | CLANG_WARN_CONSTANT_CONVERSION = YES; 346 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 347 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 348 | CLANG_WARN_EMPTY_BODY = YES; 349 | CLANG_WARN_ENUM_CONVERSION = YES; 350 | CLANG_WARN_INFINITE_RECURSION = YES; 351 | CLANG_WARN_INT_CONVERSION = YES; 352 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 353 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 354 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 355 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 356 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 357 | CLANG_WARN_STRICT_PROTOTYPES = YES; 358 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 359 | CLANG_WARN_UNREACHABLE_CODE = YES; 360 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 361 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 362 | COPY_PHASE_STRIP = NO; 363 | DEBUG_INFORMATION_FORMAT = dwarf; 364 | ENABLE_STRICT_OBJC_MSGSEND = YES; 365 | ENABLE_TESTABILITY = YES; 366 | GCC_C_LANGUAGE_STANDARD = gnu99; 367 | GCC_DYNAMIC_NO_PIC = NO; 368 | GCC_NO_COMMON_BLOCKS = YES; 369 | GCC_OPTIMIZATION_LEVEL = 0; 370 | GCC_PREPROCESSOR_DEFINITIONS = ( 371 | "DEBUG=1", 372 | "$(inherited)", 373 | ); 374 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 375 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 376 | GCC_WARN_UNDECLARED_SELECTOR = YES; 377 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 378 | GCC_WARN_UNUSED_FUNCTION = YES; 379 | GCC_WARN_UNUSED_VARIABLE = YES; 380 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 381 | MTL_ENABLE_DEBUG_INFO = YES; 382 | ONLY_ACTIVE_ARCH = YES; 383 | SDKROOT = iphoneos; 384 | TARGETED_DEVICE_FAMILY = "1,2"; 385 | }; 386 | name = Debug; 387 | }; 388 | 97C147041CF9000F007C117D /* Release */ = { 389 | isa = XCBuildConfiguration; 390 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 391 | buildSettings = { 392 | ALWAYS_SEARCH_USER_PATHS = NO; 393 | CLANG_ANALYZER_NONNULL = YES; 394 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 395 | CLANG_CXX_LIBRARY = "libc++"; 396 | CLANG_ENABLE_MODULES = YES; 397 | CLANG_ENABLE_OBJC_ARC = YES; 398 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 399 | CLANG_WARN_BOOL_CONVERSION = YES; 400 | CLANG_WARN_COMMA = YES; 401 | CLANG_WARN_CONSTANT_CONVERSION = YES; 402 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 403 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 404 | CLANG_WARN_EMPTY_BODY = YES; 405 | CLANG_WARN_ENUM_CONVERSION = YES; 406 | CLANG_WARN_INFINITE_RECURSION = YES; 407 | CLANG_WARN_INT_CONVERSION = YES; 408 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 409 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 412 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 413 | CLANG_WARN_STRICT_PROTOTYPES = YES; 414 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 415 | CLANG_WARN_UNREACHABLE_CODE = YES; 416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 418 | COPY_PHASE_STRIP = NO; 419 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 420 | ENABLE_NS_ASSERTIONS = NO; 421 | ENABLE_STRICT_OBJC_MSGSEND = YES; 422 | GCC_C_LANGUAGE_STANDARD = gnu99; 423 | GCC_NO_COMMON_BLOCKS = YES; 424 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 425 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 426 | GCC_WARN_UNDECLARED_SELECTOR = YES; 427 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 428 | GCC_WARN_UNUSED_FUNCTION = YES; 429 | GCC_WARN_UNUSED_VARIABLE = YES; 430 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 431 | MTL_ENABLE_DEBUG_INFO = NO; 432 | SDKROOT = iphoneos; 433 | SUPPORTED_PLATFORMS = iphoneos; 434 | TARGETED_DEVICE_FAMILY = "1,2"; 435 | VALIDATE_PRODUCT = YES; 436 | }; 437 | name = Release; 438 | }; 439 | 97C147061CF9000F007C117D /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 442 | buildSettings = { 443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 444 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 445 | ENABLE_BITCODE = NO; 446 | FRAMEWORK_SEARCH_PATHS = ( 447 | "$(inherited)", 448 | "$(PROJECT_DIR)/Flutter", 449 | ); 450 | INFOPLIST_FILE = Runner/Info.plist; 451 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 452 | LIBRARY_SEARCH_PATHS = ( 453 | "$(inherited)", 454 | "$(PROJECT_DIR)/Flutter", 455 | ); 456 | PRODUCT_BUNDLE_IDENTIFIER = xd.com.dailyFood; 457 | PRODUCT_NAME = "$(TARGET_NAME)"; 458 | VERSIONING_SYSTEM = "apple-generic"; 459 | }; 460 | name = Debug; 461 | }; 462 | 97C147071CF9000F007C117D /* Release */ = { 463 | isa = XCBuildConfiguration; 464 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 465 | buildSettings = { 466 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 467 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 468 | ENABLE_BITCODE = NO; 469 | FRAMEWORK_SEARCH_PATHS = ( 470 | "$(inherited)", 471 | "$(PROJECT_DIR)/Flutter", 472 | ); 473 | INFOPLIST_FILE = Runner/Info.plist; 474 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 475 | LIBRARY_SEARCH_PATHS = ( 476 | "$(inherited)", 477 | "$(PROJECT_DIR)/Flutter", 478 | ); 479 | PRODUCT_BUNDLE_IDENTIFIER = xd.com.dailyFood; 480 | PRODUCT_NAME = "$(TARGET_NAME)"; 481 | VERSIONING_SYSTEM = "apple-generic"; 482 | }; 483 | name = Release; 484 | }; 485 | /* End XCBuildConfiguration section */ 486 | 487 | /* Begin XCConfigurationList section */ 488 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 489 | isa = XCConfigurationList; 490 | buildConfigurations = ( 491 | 97C147031CF9000F007C117D /* Debug */, 492 | 97C147041CF9000F007C117D /* Release */, 493 | 249021D3217E4FDB00AE95B9 /* Profile */, 494 | ); 495 | defaultConfigurationIsVisible = 0; 496 | defaultConfigurationName = Release; 497 | }; 498 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 499 | isa = XCConfigurationList; 500 | buildConfigurations = ( 501 | 97C147061CF9000F007C117D /* Debug */, 502 | 97C147071CF9000F007C117D /* Release */, 503 | 249021D4217E4FDB00AE95B9 /* Profile */, 504 | ); 505 | defaultConfigurationIsVisible = 0; 506 | defaultConfigurationName = Release; 507 | }; 508 | /* End XCConfigurationList section */ 509 | }; 510 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 511 | } 512 | --------------------------------------------------------------------------------