├── .gitignore ├── .metadata ├── LICENSE ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── flutter_getx_template │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── 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-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets └── fonts │ ├── Caveat-Regular.ttf │ └── Lato-Regular.ttf ├── images ├── burger.png ├── french-fries.png ├── fried-chicken.png ├── logo_app.png └── pizza.png ├── integration_test ├── app_test.dart └── driver.dart ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── main.dart └── src │ ├── app.dart │ ├── controllers │ └── product_controller.dart │ ├── events │ ├── location_event.dart │ └── product_event.dart │ ├── factory │ └── food_factory.dart │ ├── lang │ ├── en_US.dart │ ├── translation_service.dart │ └── vi_VN.dart │ ├── models │ ├── burger.dart │ ├── chicken.dart │ ├── chips.dart │ ├── food.dart │ ├── pizza.dart │ └── product.dart │ ├── pages │ ├── home │ │ ├── home_page.dart │ │ └── widgets │ │ │ ├── bottom_location.dart │ │ │ └── horizontal_store_card.dart │ └── navigation │ │ └── navigation.dart │ ├── public │ ├── constant.dart │ └── styles.dart │ ├── repository │ └── product_repository.dart │ ├── routes │ ├── app_pages.dart │ └── app_routes.dart │ ├── shared │ └── logger │ │ └── logger_utils.dart │ ├── theme │ ├── theme_service.dart │ └── themes.dart │ └── widgets │ ├── error_loading_image.dart │ └── place_holder_image.dart ├── pubspec.lock ├── pubspec.yaml ├── screenshots └── home.png ├── test └── widget_test.dart └── web ├── favicon.png ├── icons ├── Icon-192.png └── Icon-512.png ├── index.html └── manifest.json /.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 | -------------------------------------------------------------------------------- /.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: b0a22998593fc605c723dee8ff4d9315c32cfe2c 8 | channel: beta 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Dao Hong Vinh 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Flutter Pizza Hut 🍕 2 | 3 | ### Description: 4 | - 🚀 This is mobile application using Flutter for develop a pizza store 5 | - 🚀 Factory Method 6 | 7 | - Create Enum ***product_type.dart*** & ***location_type.dart*** 8 | ```dart 9 | enum ProductType { 10 | burger, 11 | pizza, 12 | chicken, 13 | chips, 14 | } 15 | 16 | enum LocationType { 17 | hanoi, 18 | danang, 19 | hochiminh, 20 | } 21 | ``` 22 | 23 | - Create Abstract Class - ***food.dart*** 24 | ```dart 25 | import 'package:flutter_pizza_store/src/events/location_event.dart'; 26 | import 'package:flutter_pizza_store/src/models/product.dart'; 27 | 28 | abstract class Food { 29 | void initial() {} 30 | 31 | void filterByLocation(LocationType location) {} 32 | 33 | List products() { 34 | return []; 35 | } 36 | } 37 | ``` 38 | 39 | - Create Concrete Class - ***burger.dart***, similar with ***pizza.dart, chicken.dart, chips.dart*** 40 | ```dart 41 | import 'package:flutter_pizza_store/src/events/location_event.dart'; 42 | import 'package:flutter_pizza_store/src/events/product_event.dart'; 43 | import 'package:flutter_pizza_store/src/models/food.dart'; 44 | import 'package:flutter_pizza_store/src/models/product.dart'; 45 | import 'package:flutter_pizza_store/src/repository/product_repository.dart'; 46 | 47 | class Burger implements Food { 48 | List _products = []; 49 | 50 | @override 51 | void initial() { 52 | allProducts.forEach((product) { 53 | if (product.type == ProductType.burger) _products.add(product); 54 | }); 55 | } 56 | 57 | @override 58 | void filterByLocation(LocationType location) { 59 | _products 60 | .where((e) { 61 | return e.location != location; 62 | }) 63 | .toList() 64 | .forEach((_products.remove)); 65 | } 66 | 67 | @override 68 | List products() { 69 | return _products; 70 | } 71 | } 72 | ``` 73 | 74 | - Create Factory Class - ***food_factory.dart*** 75 | ```dart 76 | import 'package:flutter_pizza_store/src/events/product_event.dart'; 77 | import 'package:flutter_pizza_store/src/models/burger.dart'; 78 | import 'package:flutter_pizza_store/src/models/chicken.dart'; 79 | import 'package:flutter_pizza_store/src/models/chips.dart'; 80 | import 'package:flutter_pizza_store/src/models/food.dart'; 81 | import 'package:flutter_pizza_store/src/models/pizza.dart'; 82 | 83 | class FoodFactory { 84 | static Food getFood(ProductType type) { 85 | switch (type) { 86 | case ProductType.burger: 87 | return Burger(); 88 | case ProductType.pizza: 89 | return Pizza(); 90 | case ProductType.chicken: 91 | return Chicken(); 92 | case ProductType.chips: 93 | return Chips(); 94 | default: 95 | return Burger(); 96 | } 97 | } 98 | } 99 | ``` 100 | 101 | ### How I can run it? 102 | - 🚀 Clone this repo 103 | - 🚀 Run below code in terminal of project 104 | ```terminal 105 | flutter pub get 106 | flutter run 107 | ``` 108 | 109 | ### Screenshots 110 | 111 |

112 | 113 |

114 | 115 | #### Author: lambiengcode 116 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 30 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | defaultConfig { 36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 37 | applicationId "com.example.flutter_pizza_store" 38 | minSdkVersion 16 39 | targetSdkVersion 30 40 | versionCode flutterVersionCode.toInteger() 41 | versionName flutterVersionName 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 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 59 | } 60 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 7 | 14 | 18 | 22 | 27 | 31 | 32 | 33 | 34 | 35 | 36 | 38 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/flutter_getx_template/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.flutter_pizza_store 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /assets/fonts/Caveat-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/assets/fonts/Caveat-Regular.ttf -------------------------------------------------------------------------------- /assets/fonts/Lato-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/assets/fonts/Lato-Regular.ttf -------------------------------------------------------------------------------- /images/burger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/images/burger.png -------------------------------------------------------------------------------- /images/french-fries.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/images/french-fries.png -------------------------------------------------------------------------------- /images/fried-chicken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/images/fried-chicken.png -------------------------------------------------------------------------------- /images/logo_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/images/logo_app.png -------------------------------------------------------------------------------- /images/pizza.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/images/pizza.png -------------------------------------------------------------------------------- /integration_test/app_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter integration 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 | import 'package:integration_test/integration_test.dart'; 11 | 12 | import 'package:flutter_pizza_store/main.dart' as app; 13 | 14 | void main() => run(_testMain); 15 | 16 | void _testMain() { 17 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 18 | // Build our app and trigger a frame. 19 | app.main(); 20 | 21 | // Trigger a frame. 22 | await tester.pumpAndSettle(); 23 | 24 | // Verify that our counter starts at 0. 25 | expect(find.text('0'), findsOneWidget); 26 | expect(find.text('1'), findsNothing); 27 | 28 | // Tap the '+' icon and trigger a frame. 29 | await tester.tap(find.byIcon(Icons.add)); 30 | await tester.pump(); 31 | 32 | // Verify that our counter has incremented. 33 | expect(find.text('0'), findsNothing); 34 | expect(find.text('1'), findsOneWidget); 35 | }); 36 | } 37 | -------------------------------------------------------------------------------- /integration_test/driver.dart: -------------------------------------------------------------------------------- 1 | // This file is provided as a convenience for running integration tests via the 2 | // flutter drive command. 3 | // 4 | // flutter drive --driver integration_test/driver.dart --target integration_test/app_test.dart 5 | 6 | import 'package:integration_test/integration_test_driver.dart'; 7 | 8 | Future main() => integrationDriver(); 9 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | 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 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.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/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - FMDB (2.7.5): 4 | - FMDB/standard (= 2.7.5) 5 | - FMDB/standard (2.7.5) 6 | - integration_test (0.0.1): 7 | - Flutter 8 | - path_provider (0.0.1): 9 | - Flutter 10 | - sqflite (0.0.2): 11 | - Flutter 12 | - FMDB (>= 2.7.5) 13 | 14 | DEPENDENCIES: 15 | - Flutter (from `Flutter`) 16 | - integration_test (from `.symlinks/plugins/integration_test/ios`) 17 | - path_provider (from `.symlinks/plugins/path_provider/ios`) 18 | - sqflite (from `.symlinks/plugins/sqflite/ios`) 19 | 20 | SPEC REPOS: 21 | trunk: 22 | - FMDB 23 | 24 | EXTERNAL SOURCES: 25 | Flutter: 26 | :path: Flutter 27 | integration_test: 28 | :path: ".symlinks/plugins/integration_test/ios" 29 | path_provider: 30 | :path: ".symlinks/plugins/path_provider/ios" 31 | sqflite: 32 | :path: ".symlinks/plugins/sqflite/ios" 33 | 34 | SPEC CHECKSUMS: 35 | Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c 36 | FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a 37 | integration_test: 5ed24a436eb7ec17b6a13046e9bf7ca4a404e59e 38 | path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c 39 | sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904 40 | 41 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c 42 | 43 | COCOAPODS: 1.10.1 44 | -------------------------------------------------------------------------------- /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 | 0433D889CD2CFF7EFF1E0BD2 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A8EF73C5B5820A4613937247 /* Pods_Runner.framework */; }; 11 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 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 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXCopyFilesBuildPhase section */ 20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 21 | isa = PBXCopyFilesBuildPhase; 22 | buildActionMask = 2147483647; 23 | dstPath = ""; 24 | dstSubfolderSpec = 10; 25 | files = ( 26 | ); 27 | name = "Embed Frameworks"; 28 | runOnlyForDeploymentPostprocessing = 0; 29 | }; 30 | /* End PBXCopyFilesBuildPhase section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 0D75E86EF1FF0406CADEAFCA /* 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 = ""; }; 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 | 78769DC6C719F96EE15BC990 /* 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 = ""; }; 40 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.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 | A8EF73C5B5820A4613937247 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | E5EE97A855A726AAAE1AFF9E /* 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 = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 0433D889CD2CFF7EFF1E0BD2 /* Pods_Runner.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | 9740EEB11CF90186004384FC /* Flutter */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 68 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 69 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 70 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 71 | ); 72 | name = Flutter; 73 | sourceTree = ""; 74 | }; 75 | 97C146E51CF9000F007C117D = { 76 | isa = PBXGroup; 77 | children = ( 78 | 9740EEB11CF90186004384FC /* Flutter */, 79 | 97C146F01CF9000F007C117D /* Runner */, 80 | 97C146EF1CF9000F007C117D /* Products */, 81 | DB9FAED1A51CDA805D37039D /* Pods */, 82 | B8F9A8ACFD2E109C6DFBAEAB /* Frameworks */, 83 | ); 84 | sourceTree = ""; 85 | }; 86 | 97C146EF1CF9000F007C117D /* Products */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146EE1CF9000F007C117D /* Runner.app */, 90 | ); 91 | name = Products; 92 | sourceTree = ""; 93 | }; 94 | 97C146F01CF9000F007C117D /* Runner */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 98 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 99 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 100 | 97C147021CF9000F007C117D /* Info.plist */, 101 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 102 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 103 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 104 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 105 | ); 106 | path = Runner; 107 | sourceTree = ""; 108 | }; 109 | B8F9A8ACFD2E109C6DFBAEAB /* Frameworks */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | A8EF73C5B5820A4613937247 /* Pods_Runner.framework */, 113 | ); 114 | name = Frameworks; 115 | sourceTree = ""; 116 | }; 117 | DB9FAED1A51CDA805D37039D /* Pods */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 0D75E86EF1FF0406CADEAFCA /* Pods-Runner.debug.xcconfig */, 121 | 78769DC6C719F96EE15BC990 /* Pods-Runner.release.xcconfig */, 122 | E5EE97A855A726AAAE1AFF9E /* Pods-Runner.profile.xcconfig */, 123 | ); 124 | name = Pods; 125 | path = Pods; 126 | sourceTree = ""; 127 | }; 128 | /* End PBXGroup section */ 129 | 130 | /* Begin PBXNativeTarget section */ 131 | 97C146ED1CF9000F007C117D /* Runner */ = { 132 | isa = PBXNativeTarget; 133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 134 | buildPhases = ( 135 | 3E73904D974D12C351244305 /* [CP] Check Pods Manifest.lock */, 136 | 9740EEB61CF901F6004384FC /* Run Script */, 137 | 97C146EA1CF9000F007C117D /* Sources */, 138 | 97C146EB1CF9000F007C117D /* Frameworks */, 139 | 97C146EC1CF9000F007C117D /* Resources */, 140 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 142 | 9BCA38C10E33F3A685EC4E16 /* [CP] Embed Pods Frameworks */, 143 | ); 144 | buildRules = ( 145 | ); 146 | dependencies = ( 147 | ); 148 | name = Runner; 149 | productName = Runner; 150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 151 | productType = "com.apple.product-type.application"; 152 | }; 153 | /* End PBXNativeTarget section */ 154 | 155 | /* Begin PBXProject section */ 156 | 97C146E61CF9000F007C117D /* Project object */ = { 157 | isa = PBXProject; 158 | attributes = { 159 | LastUpgradeCheck = 1020; 160 | ORGANIZATIONNAME = ""; 161 | TargetAttributes = { 162 | 97C146ED1CF9000F007C117D = { 163 | CreatedOnToolsVersion = 7.3.1; 164 | LastSwiftMigration = 1100; 165 | }; 166 | }; 167 | }; 168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 169 | compatibilityVersion = "Xcode 9.3"; 170 | developmentRegion = en; 171 | hasScannedForEncodings = 0; 172 | knownRegions = ( 173 | en, 174 | Base, 175 | ); 176 | mainGroup = 97C146E51CF9000F007C117D; 177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 178 | projectDirPath = ""; 179 | projectRoot = ""; 180 | targets = ( 181 | 97C146ED1CF9000F007C117D /* Runner */, 182 | ); 183 | }; 184 | /* End PBXProject section */ 185 | 186 | /* Begin PBXResourcesBuildPhase section */ 187 | 97C146EC1CF9000F007C117D /* Resources */ = { 188 | isa = PBXResourcesBuildPhase; 189 | buildActionMask = 2147483647; 190 | files = ( 191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXResourcesBuildPhase section */ 199 | 200 | /* Begin PBXShellScriptBuildPhase section */ 201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 202 | isa = PBXShellScriptBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | inputPaths = ( 207 | ); 208 | name = "Thin Binary"; 209 | outputPaths = ( 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | shellPath = /bin/sh; 213 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 214 | }; 215 | 3E73904D974D12C351244305 /* [CP] Check Pods Manifest.lock */ = { 216 | isa = PBXShellScriptBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | ); 220 | inputFileListPaths = ( 221 | ); 222 | inputPaths = ( 223 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 224 | "${PODS_ROOT}/Manifest.lock", 225 | ); 226 | name = "[CP] Check Pods Manifest.lock"; 227 | outputFileListPaths = ( 228 | ); 229 | outputPaths = ( 230 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 231 | ); 232 | runOnlyForDeploymentPostprocessing = 0; 233 | shellPath = /bin/sh; 234 | 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"; 235 | showEnvVarsInLog = 0; 236 | }; 237 | 9740EEB61CF901F6004384FC /* Run Script */ = { 238 | isa = PBXShellScriptBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | ); 242 | inputPaths = ( 243 | ); 244 | name = "Run Script"; 245 | outputPaths = ( 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | shellPath = /bin/sh; 249 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 250 | }; 251 | 9BCA38C10E33F3A685EC4E16 /* [CP] Embed Pods Frameworks */ = { 252 | isa = PBXShellScriptBuildPhase; 253 | buildActionMask = 2147483647; 254 | files = ( 255 | ); 256 | inputFileListPaths = ( 257 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 258 | ); 259 | name = "[CP] Embed Pods Frameworks"; 260 | outputFileListPaths = ( 261 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | shellPath = /bin/sh; 265 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 266 | showEnvVarsInLog = 0; 267 | }; 268 | /* End PBXShellScriptBuildPhase section */ 269 | 270 | /* Begin PBXSourcesBuildPhase section */ 271 | 97C146EA1CF9000F007C117D /* Sources */ = { 272 | isa = PBXSourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 276 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | /* End PBXSourcesBuildPhase section */ 281 | 282 | /* Begin PBXVariantGroup section */ 283 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 284 | isa = PBXVariantGroup; 285 | children = ( 286 | 97C146FB1CF9000F007C117D /* Base */, 287 | ); 288 | name = Main.storyboard; 289 | sourceTree = ""; 290 | }; 291 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 292 | isa = PBXVariantGroup; 293 | children = ( 294 | 97C147001CF9000F007C117D /* Base */, 295 | ); 296 | name = LaunchScreen.storyboard; 297 | sourceTree = ""; 298 | }; 299 | /* End PBXVariantGroup section */ 300 | 301 | /* Begin XCBuildConfiguration section */ 302 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 333 | ENABLE_NS_ASSERTIONS = NO; 334 | ENABLE_STRICT_OBJC_MSGSEND = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_NO_COMMON_BLOCKS = YES; 337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 339 | GCC_WARN_UNDECLARED_SELECTOR = YES; 340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 341 | GCC_WARN_UNUSED_FUNCTION = YES; 342 | GCC_WARN_UNUSED_VARIABLE = YES; 343 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 344 | MTL_ENABLE_DEBUG_INFO = NO; 345 | SDKROOT = iphoneos; 346 | SUPPORTED_PLATFORMS = iphoneos; 347 | TARGETED_DEVICE_FAMILY = "1,2"; 348 | VALIDATE_PRODUCT = YES; 349 | }; 350 | name = Profile; 351 | }; 352 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 353 | isa = XCBuildConfiguration; 354 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 355 | buildSettings = { 356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 357 | CLANG_ENABLE_MODULES = YES; 358 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 359 | ENABLE_BITCODE = NO; 360 | INFOPLIST_FILE = Runner/Info.plist; 361 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 362 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGetxTemplate; 363 | PRODUCT_NAME = "$(TARGET_NAME)"; 364 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 365 | SWIFT_VERSION = 5.0; 366 | VERSIONING_SYSTEM = "apple-generic"; 367 | }; 368 | name = Profile; 369 | }; 370 | 97C147031CF9000F007C117D /* Debug */ = { 371 | isa = XCBuildConfiguration; 372 | buildSettings = { 373 | ALWAYS_SEARCH_USER_PATHS = NO; 374 | CLANG_ANALYZER_NONNULL = YES; 375 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 376 | CLANG_CXX_LIBRARY = "libc++"; 377 | CLANG_ENABLE_MODULES = YES; 378 | CLANG_ENABLE_OBJC_ARC = YES; 379 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 380 | CLANG_WARN_BOOL_CONVERSION = YES; 381 | CLANG_WARN_COMMA = YES; 382 | CLANG_WARN_CONSTANT_CONVERSION = YES; 383 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 385 | CLANG_WARN_EMPTY_BODY = YES; 386 | CLANG_WARN_ENUM_CONVERSION = YES; 387 | CLANG_WARN_INFINITE_RECURSION = YES; 388 | CLANG_WARN_INT_CONVERSION = YES; 389 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 390 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 391 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 392 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 394 | CLANG_WARN_STRICT_PROTOTYPES = YES; 395 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 396 | CLANG_WARN_UNREACHABLE_CODE = YES; 397 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 398 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 399 | COPY_PHASE_STRIP = NO; 400 | DEBUG_INFORMATION_FORMAT = dwarf; 401 | ENABLE_STRICT_OBJC_MSGSEND = YES; 402 | ENABLE_TESTABILITY = YES; 403 | GCC_C_LANGUAGE_STANDARD = gnu99; 404 | GCC_DYNAMIC_NO_PIC = NO; 405 | GCC_NO_COMMON_BLOCKS = YES; 406 | GCC_OPTIMIZATION_LEVEL = 0; 407 | GCC_PREPROCESSOR_DEFINITIONS = ( 408 | "DEBUG=1", 409 | "$(inherited)", 410 | ); 411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 413 | GCC_WARN_UNDECLARED_SELECTOR = YES; 414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 415 | GCC_WARN_UNUSED_FUNCTION = YES; 416 | GCC_WARN_UNUSED_VARIABLE = YES; 417 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 418 | MTL_ENABLE_DEBUG_INFO = YES; 419 | ONLY_ACTIVE_ARCH = YES; 420 | SDKROOT = iphoneos; 421 | TARGETED_DEVICE_FAMILY = "1,2"; 422 | }; 423 | name = Debug; 424 | }; 425 | 97C147041CF9000F007C117D /* Release */ = { 426 | isa = XCBuildConfiguration; 427 | buildSettings = { 428 | ALWAYS_SEARCH_USER_PATHS = NO; 429 | CLANG_ANALYZER_NONNULL = YES; 430 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 431 | CLANG_CXX_LIBRARY = "libc++"; 432 | CLANG_ENABLE_MODULES = YES; 433 | CLANG_ENABLE_OBJC_ARC = YES; 434 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 435 | CLANG_WARN_BOOL_CONVERSION = YES; 436 | CLANG_WARN_COMMA = YES; 437 | CLANG_WARN_CONSTANT_CONVERSION = YES; 438 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 439 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 440 | CLANG_WARN_EMPTY_BODY = YES; 441 | CLANG_WARN_ENUM_CONVERSION = YES; 442 | CLANG_WARN_INFINITE_RECURSION = YES; 443 | CLANG_WARN_INT_CONVERSION = YES; 444 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 445 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 446 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 447 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 448 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 449 | CLANG_WARN_STRICT_PROTOTYPES = YES; 450 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 451 | CLANG_WARN_UNREACHABLE_CODE = YES; 452 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 453 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 454 | COPY_PHASE_STRIP = NO; 455 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 456 | ENABLE_NS_ASSERTIONS = NO; 457 | ENABLE_STRICT_OBJC_MSGSEND = YES; 458 | GCC_C_LANGUAGE_STANDARD = gnu99; 459 | GCC_NO_COMMON_BLOCKS = YES; 460 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 461 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 462 | GCC_WARN_UNDECLARED_SELECTOR = YES; 463 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 464 | GCC_WARN_UNUSED_FUNCTION = YES; 465 | GCC_WARN_UNUSED_VARIABLE = YES; 466 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 467 | MTL_ENABLE_DEBUG_INFO = NO; 468 | SDKROOT = iphoneos; 469 | SUPPORTED_PLATFORMS = iphoneos; 470 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 471 | TARGETED_DEVICE_FAMILY = "1,2"; 472 | VALIDATE_PRODUCT = YES; 473 | }; 474 | name = Release; 475 | }; 476 | 97C147061CF9000F007C117D /* Debug */ = { 477 | isa = XCBuildConfiguration; 478 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 479 | buildSettings = { 480 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 481 | CLANG_ENABLE_MODULES = YES; 482 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 483 | ENABLE_BITCODE = NO; 484 | INFOPLIST_FILE = Runner/Info.plist; 485 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 486 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGetxTemplate; 487 | PRODUCT_NAME = "$(TARGET_NAME)"; 488 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 489 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 490 | SWIFT_VERSION = 5.0; 491 | VERSIONING_SYSTEM = "apple-generic"; 492 | }; 493 | name = Debug; 494 | }; 495 | 97C147071CF9000F007C117D /* Release */ = { 496 | isa = XCBuildConfiguration; 497 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 498 | buildSettings = { 499 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 500 | CLANG_ENABLE_MODULES = YES; 501 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 502 | ENABLE_BITCODE = NO; 503 | INFOPLIST_FILE = Runner/Info.plist; 504 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 505 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGetxTemplate; 506 | PRODUCT_NAME = "$(TARGET_NAME)"; 507 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 508 | SWIFT_VERSION = 5.0; 509 | VERSIONING_SYSTEM = "apple-generic"; 510 | }; 511 | name = Release; 512 | }; 513 | /* End XCBuildConfiguration section */ 514 | 515 | /* Begin XCConfigurationList section */ 516 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 517 | isa = XCConfigurationList; 518 | buildConfigurations = ( 519 | 97C147031CF9000F007C117D /* Debug */, 520 | 97C147041CF9000F007C117D /* Release */, 521 | 249021D3217E4FDB00AE95B9 /* Profile */, 522 | ); 523 | defaultConfigurationIsVisible = 0; 524 | defaultConfigurationName = Release; 525 | }; 526 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 527 | isa = XCConfigurationList; 528 | buildConfigurations = ( 529 | 97C147061CF9000F007C117D /* Debug */, 530 | 97C147071CF9000F007C117D /* Release */, 531 | 249021D4217E4FDB00AE95B9 /* Profile */, 532 | ); 533 | defaultConfigurationIsVisible = 0; 534 | defaultConfigurationName = Release; 535 | }; 536 | /* End XCConfigurationList section */ 537 | }; 538 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 539 | } 540 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/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/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/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/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/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/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/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/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/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/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/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/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/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/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/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/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/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/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/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/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/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/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/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/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | flutter_pizza_store 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 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_pizza_store/src/lang/translation_service.dart'; 3 | import 'package:flutter_pizza_store/src/routes/app_pages.dart'; 4 | import 'package:flutter_pizza_store/src/shared/logger/logger_utils.dart'; 5 | import 'package:flutter_pizza_store/src/theme/theme_service.dart'; 6 | import 'package:flutter_pizza_store/src/theme/themes.dart'; 7 | import 'package:get/get.dart'; 8 | import 'package:get_storage/get_storage.dart'; 9 | 10 | void main() async { 11 | await GetStorage.init(); 12 | runApp(GetMaterialApp( 13 | debugShowCheckedModeBanner: false, 14 | enableLog: true, 15 | logWriterCallback: Logger.write, 16 | initialRoute: AppPages.INITIAL, 17 | getPages: AppPages.routes, 18 | locale: TranslationService.locale, 19 | fallbackLocale: TranslationService.fallbackLocale, 20 | translations: TranslationService(), 21 | theme: Themes().lightTheme, 22 | darkTheme: Themes().darkTheme, 23 | themeMode: ThemeService().getThemeMode(), 24 | )); 25 | } 26 | -------------------------------------------------------------------------------- /lib/src/app.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter/services.dart'; 4 | import 'package:flutter_pizza_store/src/pages/navigation/navigation.dart'; 5 | 6 | class App extends StatefulWidget { 7 | @override 8 | State createState() => _AppState(); 9 | } 10 | 11 | class _AppState extends State with WidgetsBindingObserver { 12 | @override 13 | void initState() { 14 | SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( 15 | statusBarColor: Colors.transparent, 16 | statusBarBrightness: 17 | Platform.isAndroid ? Brightness.dark : Brightness.light, 18 | statusBarIconBrightness: 19 | Platform.isAndroid ? Brightness.dark : Brightness.light, 20 | )); 21 | WidgetsBinding.instance.addObserver(this); 22 | SystemChrome.setPreferredOrientations([ 23 | DeviceOrientation.portraitDown, 24 | DeviceOrientation.portraitUp, 25 | ]); 26 | super.initState(); 27 | } 28 | 29 | @override 30 | Widget build(BuildContext context) { 31 | return Navigation(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/controllers/product_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_pizza_store/src/factory/food_factory.dart'; 2 | import 'package:flutter_pizza_store/src/events/location_event.dart'; 3 | import 'package:flutter_pizza_store/src/events/product_event.dart'; 4 | import 'package:flutter_pizza_store/src/models/product.dart'; 5 | import 'package:get/get.dart'; 6 | 7 | class ProductController extends GetxController { 8 | LocationType location = LocationType.hanoi; 9 | ProductType productType = ProductType.burger; 10 | 11 | List currentProducts = []; 12 | 13 | filter() { 14 | final products = FoodFactory.getFood(productType); 15 | products.initial(); 16 | products.filterByLocation(location); 17 | currentProducts.clear(); 18 | currentProducts.addAll(products.products()); 19 | update(); 20 | } 21 | 22 | setLocation(currentLocation) { 23 | location = currentLocation; 24 | filter(); 25 | update(); 26 | } 27 | 28 | setProductType(currentProductType) { 29 | productType = currentProductType; 30 | filter(); 31 | update(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /lib/src/events/location_event.dart: -------------------------------------------------------------------------------- 1 | enum LocationType { 2 | hanoi, 3 | danang, 4 | hochiminh, 5 | } 6 | -------------------------------------------------------------------------------- /lib/src/events/product_event.dart: -------------------------------------------------------------------------------- 1 | enum ProductType { 2 | burger, 3 | pizza, 4 | chicken, 5 | chips, 6 | } 7 | -------------------------------------------------------------------------------- /lib/src/factory/food_factory.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_pizza_store/src/events/product_event.dart'; 2 | import 'package:flutter_pizza_store/src/models/burger.dart'; 3 | import 'package:flutter_pizza_store/src/models/chicken.dart'; 4 | import 'package:flutter_pizza_store/src/models/chips.dart'; 5 | import 'package:flutter_pizza_store/src/models/food.dart'; 6 | import 'package:flutter_pizza_store/src/models/pizza.dart'; 7 | 8 | class FoodFactory { 9 | static Food getFood(ProductType type) { 10 | switch (type) { 11 | case ProductType.burger: 12 | return Burger(); 13 | case ProductType.pizza: 14 | return Pizza(); 15 | case ProductType.chicken: 16 | return Chicken(); 17 | case ProductType.chips: 18 | return Chips(); 19 | default: 20 | return Burger(); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/src/lang/en_US.dart: -------------------------------------------------------------------------------- 1 | const Map en_US = { 2 | 'helloWord': 'Hello World', 3 | }; 4 | -------------------------------------------------------------------------------- /lib/src/lang/translation_service.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | import 'en_US.dart'; 5 | import 'vi_VN.dart'; 6 | 7 | class TranslationService extends Translations { 8 | static final locale = Get.deviceLocale; 9 | static final fallbackLocale = Locale('en', 'US'); 10 | @override 11 | Map> get keys => { 12 | 'en_US': en_US, 13 | 'vi_VN': vi_VN, 14 | }; 15 | } 16 | -------------------------------------------------------------------------------- /lib/src/lang/vi_VN.dart: -------------------------------------------------------------------------------- 1 | const Map vi_VN = {}; 2 | -------------------------------------------------------------------------------- /lib/src/models/burger.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_pizza_store/src/events/location_event.dart'; 2 | import 'package:flutter_pizza_store/src/events/product_event.dart'; 3 | import 'package:flutter_pizza_store/src/models/food.dart'; 4 | import 'package:flutter_pizza_store/src/models/product.dart'; 5 | import 'package:flutter_pizza_store/src/repository/product_repository.dart'; 6 | 7 | class Burger implements Food { 8 | List _products = []; 9 | 10 | @override 11 | void initial() { 12 | allProducts.forEach((product) { 13 | if (product.type == ProductType.burger) _products.add(product); 14 | }); 15 | } 16 | 17 | @override 18 | void filterByLocation(LocationType location) { 19 | _products 20 | .where((e) { 21 | return e.location != location; 22 | }) 23 | .toList() 24 | .forEach((_products.remove)); 25 | } 26 | 27 | @override 28 | List products() { 29 | return _products; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/src/models/chicken.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_pizza_store/src/events/location_event.dart'; 2 | import 'package:flutter_pizza_store/src/events/product_event.dart'; 3 | import 'package:flutter_pizza_store/src/models/food.dart'; 4 | import 'package:flutter_pizza_store/src/models/product.dart'; 5 | import 'package:flutter_pizza_store/src/repository/product_repository.dart'; 6 | 7 | class Chicken implements Food { 8 | List _products = []; 9 | 10 | @override 11 | void initial() { 12 | allProducts.forEach((product) { 13 | if (product.type == ProductType.chicken) _products.add(product); 14 | }); 15 | } 16 | 17 | @override 18 | void filterByLocation(LocationType location) { 19 | _products 20 | .where((e) { 21 | return e.location != location; 22 | }) 23 | .toList() 24 | .forEach((_products.remove)); 25 | } 26 | 27 | @override 28 | List products() { 29 | return _products; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/src/models/chips.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_pizza_store/src/events/location_event.dart'; 2 | import 'package:flutter_pizza_store/src/events/product_event.dart'; 3 | import 'package:flutter_pizza_store/src/models/food.dart'; 4 | import 'package:flutter_pizza_store/src/models/product.dart'; 5 | import 'package:flutter_pizza_store/src/repository/product_repository.dart'; 6 | 7 | class Chips implements Food { 8 | List _products = []; 9 | 10 | @override 11 | void initial() { 12 | allProducts.forEach((product) { 13 | if (product.type == ProductType.chips) _products.add(product); 14 | }); 15 | } 16 | 17 | @override 18 | void filterByLocation(LocationType location) { 19 | _products 20 | .where((e) { 21 | return e.location != location; 22 | }) 23 | .toList() 24 | .forEach((_products.remove)); 25 | } 26 | 27 | @override 28 | List products() { 29 | return _products; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/src/models/food.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_pizza_store/src/events/location_event.dart'; 2 | import 'package:flutter_pizza_store/src/models/product.dart'; 3 | 4 | abstract class Food { 5 | void initial() {} 6 | 7 | void filterByLocation(LocationType location) {} 8 | 9 | List products() { 10 | return []; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /lib/src/models/pizza.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_pizza_store/src/events/location_event.dart'; 2 | import 'package:flutter_pizza_store/src/events/product_event.dart'; 3 | import 'package:flutter_pizza_store/src/models/food.dart'; 4 | import 'package:flutter_pizza_store/src/models/product.dart'; 5 | import 'package:flutter_pizza_store/src/repository/product_repository.dart'; 6 | 7 | class Pizza implements Food { 8 | List _products = []; 9 | 10 | @override 11 | void initial() { 12 | allProducts.forEach((product) { 13 | if (product.type == ProductType.pizza) _products.add(product); 14 | }); 15 | } 16 | 17 | @override 18 | void filterByLocation(LocationType location) { 19 | _products 20 | .where((e) { 21 | return e.location != location; 22 | }) 23 | .toList() 24 | .forEach((_products.remove)); 25 | } 26 | 27 | @override 28 | List products() { 29 | return _products; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/src/models/product.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_pizza_store/src/events/location_event.dart'; 2 | import 'package:flutter_pizza_store/src/events/product_event.dart'; 3 | 4 | class Product { 5 | final String image; 6 | final String name; 7 | final String description; 8 | final double price; 9 | final ProductType type; 10 | final LocationType location; 11 | 12 | Product( 13 | {this.image, 14 | this.name, 15 | this.description, 16 | this.price, 17 | this.type, 18 | this.location}); 19 | } 20 | -------------------------------------------------------------------------------- /lib/src/pages/home/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_icons/flutter_icons.dart'; 3 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 4 | import 'package:flutter_pizza_store/src/controllers/product_controller.dart'; 5 | import 'package:flutter_pizza_store/src/events/product_event.dart'; 6 | import 'package:flutter_pizza_store/src/pages/home/widgets/bottom_location.dart'; 7 | import 'package:flutter_pizza_store/src/pages/home/widgets/horizontal_store_card.dart'; 8 | import 'package:flutter_pizza_store/src/public/constant.dart'; 9 | import 'package:flutter_pizza_store/src/public/styles.dart'; 10 | import 'package:get/get.dart'; 11 | 12 | class HomePage extends StatefulWidget { 13 | @override 14 | State createState() => _HomePageState(); 15 | } 16 | 17 | class _HomePageState extends State { 18 | final productController = Get.put(ProductController()); 19 | List> categories = [ 20 | {'name': 'Burger', 'image': 'images/burger.png'}, 21 | {'name': 'Pizza', 'image': 'images/pizza.png'}, 22 | {'name': 'Chicken', 'image': 'images/fried-chicken.png'}, 23 | {'name': 'Potato Chips', 'image': 'images/french-fries.png'}, 24 | ]; 25 | 26 | showLocationBottomSheet() { 27 | showModalBottomSheet( 28 | shape: RoundedRectangleBorder( 29 | borderRadius: BorderRadius.all( 30 | Radius.circular(24.0), 31 | ), 32 | ), 33 | isScrollControlled: true, 34 | context: context, 35 | builder: (context) { 36 | return BottomLocation(); 37 | }, 38 | ); 39 | } 40 | 41 | @override 42 | void initState() { 43 | super.initState(); 44 | productController.filter(); 45 | } 46 | 47 | @override 48 | Widget build(BuildContext context) { 49 | return Scaffold( 50 | body: Container( 51 | height: height, 52 | width: width, 53 | color: mC, 54 | child: Column( 55 | children: [ 56 | SizedBox(height: height / 18.0), 57 | _buildTopbar(), 58 | SizedBox(height: 22.0), 59 | Container( 60 | height: height * .16, 61 | margin: EdgeInsets.symmetric(horizontal: 16.0), 62 | decoration: BoxDecoration( 63 | borderRadius: BorderRadius.circular(16.0), 64 | image: DecorationImage( 65 | image: NetworkImage( 66 | 'https://images.foody.vn/res/g1/4162/prof/s640x400/foody-upload-api-foody-mobile-960x550_now_cover_up-210122141124.jpg', 67 | ), 68 | fit: BoxFit.cover, 69 | ), 70 | ), 71 | ), 72 | SizedBox(height: 32.0), 73 | _buildTitle('Categories'), 74 | SizedBox(height: 24.0), 75 | _buildListCategories(), 76 | SizedBox(height: 18.0), 77 | _buildTitle('Popular Now'), 78 | SizedBox(height: 20.0), 79 | _buildPopularList(), 80 | ], 81 | ), 82 | ), 83 | ); 84 | } 85 | 86 | Widget _buildTopbar() { 87 | return Padding( 88 | padding: EdgeInsets.symmetric(horizontal: 16.0), 89 | child: Row( 90 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 91 | children: [ 92 | _buildActionTopbar('Search', Feather.align_left), 93 | _buildStoreInfo(), 94 | _buildActionTopbar('Location', Feather.map_pin), 95 | ], 96 | ), 97 | ); 98 | } 99 | 100 | Widget _buildStoreInfo() { 101 | return Row( 102 | mainAxisAlignment: MainAxisAlignment.start, 103 | children: [ 104 | Text( 105 | 'Pizza Hut', 106 | style: TextStyle( 107 | color: colorPrimary, 108 | fontSize: width / 13.25, 109 | fontWeight: FontWeight.bold, 110 | fontFamily: 'Caveat', 111 | ), 112 | ), 113 | ], 114 | ); 115 | } 116 | 117 | Widget _buildActionTopbar(title, icon) { 118 | return NeumorphicButton( 119 | onPressed: () { 120 | switch (title) { 121 | case 'Location': 122 | showLocationBottomSheet(); 123 | break; 124 | } 125 | }, 126 | style: NeumorphicStyle( 127 | shape: NeumorphicShape.concave, 128 | boxShape: NeumorphicBoxShape.roundRect( 129 | BorderRadius.circular(16.0), 130 | ), 131 | depth: 1.0, 132 | intensity: .4, 133 | color: mC, 134 | ), 135 | padding: EdgeInsets.all(width / 28.0), 136 | child: Icon( 137 | icon, 138 | color: colorPrimary, 139 | size: width / 18.0, 140 | ), 141 | duration: Duration(milliseconds: 200), 142 | ); 143 | } 144 | 145 | Widget _buildListCategories() { 146 | return Container( 147 | height: width * .145, 148 | width: width, 149 | child: GetBuilder( 150 | builder: (_) => ListView.builder( 151 | padding: EdgeInsets.only(left: 20.0, right: 12.0), 152 | scrollDirection: Axis.horizontal, 153 | itemCount: categories.length, 154 | itemBuilder: (context, index) { 155 | return _.productType.toString().replaceAll('ProductType.', '') == 156 | categories[index]['name'] 157 | .replaceAll('Potato ', '') 158 | .toLowerCase() 159 | ? _buildActionActive(context, index) 160 | : _buildActionInactive(context, index); 161 | }, 162 | ), 163 | ), 164 | ); 165 | } 166 | 167 | Widget _buildActionActive(context, index) { 168 | return NeumorphicButton( 169 | onPressed: () => null, 170 | style: NeumorphicStyle( 171 | shape: NeumorphicShape.concave, 172 | boxShape: NeumorphicBoxShape.roundRect( 173 | BorderRadius.circular(30.0), 174 | ), 175 | depth: 4.0, 176 | intensity: .65, 177 | color: colorPrimary, 178 | ), 179 | margin: EdgeInsets.only(right: 12.0, bottom: 6.0), 180 | padding: EdgeInsets.only(left: 28.0, right: 32.0), 181 | child: Row( 182 | crossAxisAlignment: CrossAxisAlignment.center, 183 | mainAxisAlignment: MainAxisAlignment.center, 184 | children: [ 185 | Container( 186 | height: width / 13.5, 187 | width: width / 13.5, 188 | decoration: BoxDecoration( 189 | shape: BoxShape.circle, 190 | image: DecorationImage( 191 | image: AssetImage(categories[index]['image']), 192 | fit: BoxFit.cover, 193 | ), 194 | ), 195 | ), 196 | SizedBox(width: 8.0), 197 | Text( 198 | categories[index]['name'], 199 | style: TextStyle( 200 | color: mC, 201 | fontFamily: 'Lato', 202 | fontSize: width / 30.0, 203 | fontWeight: FontWeight.bold, 204 | ), 205 | ), 206 | ], 207 | ), 208 | duration: Duration(milliseconds: 200), 209 | ); 210 | } 211 | 212 | Widget _buildActionInactive(context, index) { 213 | return NeumorphicButton( 214 | onPressed: () { 215 | switch (index) { 216 | case 0: 217 | productController.setProductType(ProductType.burger); 218 | break; 219 | case 1: 220 | productController.setProductType(ProductType.pizza); 221 | break; 222 | case 2: 223 | productController.setProductType(ProductType.chicken); 224 | break; 225 | case 3: 226 | productController.setProductType(ProductType.chips); 227 | break; 228 | default: 229 | } 230 | }, 231 | style: NeumorphicStyle( 232 | shape: NeumorphicShape.concave, 233 | boxShape: NeumorphicBoxShape.roundRect( 234 | BorderRadius.circular(30.0), 235 | ), 236 | depth: 4.0, 237 | intensity: .65, 238 | color: mC, 239 | ), 240 | margin: EdgeInsets.only(right: 12.0, bottom: 6.0), 241 | padding: EdgeInsets.only(left: 28.0, right: 32.0), 242 | child: Row( 243 | crossAxisAlignment: CrossAxisAlignment.center, 244 | mainAxisAlignment: MainAxisAlignment.center, 245 | children: [ 246 | Container( 247 | height: width / 13.5, 248 | width: width / 13.5, 249 | decoration: BoxDecoration( 250 | shape: BoxShape.circle, 251 | image: DecorationImage( 252 | image: AssetImage(categories[index]['image']), 253 | fit: BoxFit.cover, 254 | ), 255 | ), 256 | ), 257 | SizedBox(width: 8.0), 258 | Text( 259 | categories[index]['name'], 260 | style: TextStyle( 261 | color: colorDarkGrey, 262 | fontFamily: 'Lato', 263 | fontSize: width / 30.0, 264 | fontWeight: FontWeight.bold, 265 | ), 266 | ), 267 | ], 268 | ), 269 | duration: Duration(milliseconds: 200), 270 | ); 271 | } 272 | 273 | Widget _buildTitle(title) { 274 | return Padding( 275 | padding: EdgeInsets.only(left: 22.0, right: 16.0), 276 | child: Row( 277 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 278 | children: [ 279 | Text( 280 | title, 281 | style: TextStyle( 282 | color: colorTitle, 283 | fontFamily: 'Lato', 284 | fontWeight: FontWeight.bold, 285 | fontSize: width / 20.5, 286 | ), 287 | ), 288 | title == 'Categories' 289 | ? Container() 290 | : Row( 291 | children: [ 292 | Text( 293 | 'View All', 294 | style: TextStyle( 295 | color: Colors.amber[700], 296 | fontFamily: 'Lato', 297 | fontWeight: FontWeight.w500, 298 | fontSize: width / 26.0, 299 | ), 300 | ), 301 | SizedBox(width: 8.0), 302 | Icon( 303 | Feather.plus_square, 304 | color: Colors.amber[700], 305 | size: width / 22.0, 306 | ), 307 | ], 308 | ), 309 | ], 310 | ), 311 | ); 312 | } 313 | 314 | Widget _buildPopularList() { 315 | return Expanded( 316 | child: GetBuilder( 317 | builder: (_) => ListView.builder( 318 | padding: EdgeInsets.symmetric(horizontal: 18.0), 319 | scrollDirection: Axis.horizontal, 320 | itemCount: _.currentProducts.length, 321 | itemBuilder: (context, index) { 322 | return HorizontalStoreCard( 323 | name: _.currentProducts[index].name, 324 | image: _.currentProducts[index].image, 325 | description: _.currentProducts[index].description, 326 | price: _.currentProducts[index].price, 327 | ); 328 | }, 329 | ), 330 | ), 331 | ); 332 | } 333 | } 334 | -------------------------------------------------------------------------------- /lib/src/pages/home/widgets/bottom_location.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_icons/flutter_icons.dart'; 3 | import 'package:flutter_pizza_store/src/controllers/product_controller.dart'; 4 | import 'package:flutter_pizza_store/src/events/location_event.dart'; 5 | import 'package:flutter_pizza_store/src/public/constant.dart'; 6 | import 'package:flutter_pizza_store/src/public/styles.dart'; 7 | import 'package:get/get.dart'; 8 | 9 | class BottomLocation extends StatefulWidget { 10 | @override 11 | State createState() => _BottomLocationState(); 12 | } 13 | 14 | class _BottomLocationState extends State { 15 | @override 16 | Widget build(BuildContext context) { 17 | return Container( 18 | decoration: BoxDecoration( 19 | borderRadius: BorderRadius.vertical( 20 | top: Radius.circular(24.0), 21 | ), 22 | color: mC, 23 | ), 24 | child: SingleChildScrollView( 25 | child: Column( 26 | children: [ 27 | SizedBox(height: 12.0), 28 | Container( 29 | height: 4.0, 30 | margin: EdgeInsets.symmetric(horizontal: width * .35), 31 | decoration: BoxDecoration( 32 | borderRadius: BorderRadius.circular(30.0), 33 | color: mCD, 34 | boxShadow: [ 35 | BoxShadow( 36 | color: mCD, 37 | offset: Offset(2.0, 2.0), 38 | blurRadius: 2.0, 39 | ), 40 | BoxShadow( 41 | color: mCL, 42 | offset: Offset(-1.0, -1.0), 43 | blurRadius: 1.0, 44 | ), 45 | ], 46 | ), 47 | ), 48 | SizedBox(height: 8.0), 49 | _buildAction(context, 'Ha Noi', Feather.map_pin), 50 | Divider( 51 | color: colorDarkGrey, 52 | thickness: .15, 53 | height: .15, 54 | indent: 24.0, 55 | endIndent: 24.0, 56 | ), 57 | _buildAction(context, 'Da Nang', Feather.map_pin), 58 | Divider( 59 | color: colorDarkGrey, 60 | thickness: .15, 61 | height: .15, 62 | indent: 24.0, 63 | endIndent: 24.0, 64 | ), 65 | _buildAction(context, 'Ho Chi Minh', Feather.map_pin), 66 | SizedBox(height: 18.0), 67 | ], 68 | ), 69 | ), 70 | ); 71 | } 72 | 73 | Widget _buildAction(context, title, icon) { 74 | final _size = MediaQuery.of(context).size; 75 | final _productController = Get.put(ProductController()); 76 | 77 | setLocation(LocationType location) { 78 | _productController.setLocation(location); 79 | Get.back(); 80 | } 81 | 82 | return GetBuilder( 83 | builder: (_) => GestureDetector( 84 | onTap: () { 85 | switch (title) { 86 | // English 87 | case 'Ha Noi': 88 | setLocation(LocationType.hanoi); 89 | break; 90 | case 'Da Nang': 91 | setLocation(LocationType.danang); 92 | break; 93 | case 'Ho Chi Minh': 94 | setLocation(LocationType.hochiminh); 95 | break; 96 | 97 | default: 98 | break; 99 | } 100 | }, 101 | child: Container( 102 | width: _size.width, 103 | color: mC, 104 | padding: EdgeInsets.fromLTRB(24.0, 15.0, 20.0, 15.0), 105 | child: Row( 106 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 107 | children: [ 108 | Row( 109 | mainAxisAlignment: MainAxisAlignment.start, 110 | children: [ 111 | Icon( 112 | icon, 113 | size: _size.width / 18.0, 114 | color: title.toString().replaceAll(' ', '').toLowerCase() == 115 | _.location 116 | .toString() 117 | .replaceAll('LocationType.', '') 118 | .toLowerCase() 119 | ? colorPrimary 120 | : fCD, 121 | ), 122 | SizedBox( 123 | width: 16.0, 124 | ), 125 | Text( 126 | title, 127 | style: TextStyle( 128 | fontSize: _size.width / 24.0, 129 | fontWeight: FontWeight.w600, 130 | color: 131 | title.toString().replaceAll(' ', '').toLowerCase() == 132 | _.location 133 | .toString() 134 | .replaceAll('LocationType.', '') 135 | .toLowerCase() 136 | ? colorPrimary 137 | : fCD, 138 | ), 139 | ) 140 | ], 141 | ), 142 | ], 143 | ), 144 | ), 145 | ), 146 | ); 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /lib/src/pages/home/widgets/horizontal_store_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 3 | import 'package:flutter_pizza_store/src/public/constant.dart'; 4 | import 'package:flutter_pizza_store/src/public/styles.dart'; 5 | 6 | class HorizontalStoreCard extends StatefulWidget { 7 | final String name; 8 | final String image; 9 | final String description; 10 | final double price; 11 | HorizontalStoreCard({this.name, this.image, this.price, this.description}); 12 | @override 13 | State createState() => _HorizontalStoreCardState(); 14 | } 15 | 16 | class _HorizontalStoreCardState extends State { 17 | @override 18 | Widget build(BuildContext context) { 19 | return NeumorphicButton( 20 | onPressed: () => null, 21 | style: NeumorphicStyle( 22 | shape: NeumorphicShape.concave, 23 | boxShape: NeumorphicBoxShape.roundRect( 24 | BorderRadius.circular(30.0), 25 | ), 26 | depth: 3.0, 27 | intensity: .4, 28 | color: mC, 29 | ), 30 | margin: EdgeInsets.only(right: 16.0, bottom: 48.0), 31 | padding: EdgeInsets.symmetric(horizontal: 36.0, vertical: 16.0), 32 | child: Column( 33 | children: [ 34 | Container( 35 | height: width / 2.8, 36 | width: width / 2.8, 37 | decoration: BoxDecoration( 38 | shape: BoxShape.circle, 39 | image: DecorationImage( 40 | image: NetworkImage(widget.image), 41 | fit: BoxFit.cover, 42 | ), 43 | ), 44 | ), 45 | SizedBox(height: 4.0), 46 | Text( 47 | widget.name, 48 | style: TextStyle( 49 | color: colorTitle, 50 | fontFamily: 'Lato', 51 | fontSize: width / 22.5, 52 | fontWeight: FontWeight.w600, 53 | ), 54 | ), 55 | SizedBox(height: 6.0), 56 | Text( 57 | widget.description, 58 | style: TextStyle( 59 | color: colorTitle, 60 | fontFamily: 'Lato', 61 | fontSize: width / 26.0, 62 | fontWeight: FontWeight.w400, 63 | ), 64 | ), 65 | SizedBox(height: 12.0), 66 | RichText( 67 | text: TextSpan( 68 | children: [ 69 | TextSpan( 70 | text: '\$\t', 71 | style: TextStyle( 72 | color: colorPrimary, 73 | fontFamily: 'Lato', 74 | fontSize: width / 26.0, 75 | fontWeight: FontWeight.w600, 76 | ), 77 | ), 78 | TextSpan( 79 | text: '${widget.price}\t\t', 80 | style: TextStyle( 81 | color: colorTitle, 82 | fontFamily: 'Lato', 83 | fontSize: width / 16.5, 84 | fontWeight: FontWeight.bold, 85 | ), 86 | ), 87 | ], 88 | ), 89 | ), 90 | ], 91 | ), 92 | ); 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /lib/src/pages/navigation/navigation.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:ionicons/ionicons.dart'; 3 | import 'package:flutter_pizza_store/src/pages/home/home_page.dart'; 4 | import 'package:flutter_pizza_store/src/public/constant.dart'; 5 | import 'package:flutter_pizza_store/src/public/styles.dart'; 6 | import 'package:flutter_icons/flutter_icons.dart' as FI; 7 | 8 | class Navigation extends StatefulWidget { 9 | @override 10 | State createState() => _NavigationState(); 11 | } 12 | 13 | class _NavigationState extends State { 14 | var pages = [ 15 | HomePage(), 16 | Container(), 17 | Container(), 18 | Container(), 19 | ]; 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return Scaffold( 24 | floatingActionButton: Container( 25 | height: 62.5, 26 | width: 62.5, 27 | child: FloatingActionButton( 28 | elevation: 1.5, 29 | backgroundColor: colorPrimary, 30 | onPressed: () => null, 31 | child: Icon( 32 | FI.Feather.search, 33 | color: mCL, 34 | size: width / 15.0, 35 | ), 36 | ), 37 | ), 38 | floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, 39 | bottomNavigationBar: BottomAppBar( 40 | color: mC, 41 | elevation: .0, 42 | clipBehavior: Clip.antiAliasWithSaveLayer, 43 | shape: CircularNotchedRectangle(), 44 | child: Padding( 45 | padding: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, .0), 46 | child: Row( 47 | children: [ 48 | Expanded( 49 | child: Row( 50 | mainAxisAlignment: MainAxisAlignment.spaceAround, 51 | children: [ 52 | IconButton( 53 | onPressed: () => null, 54 | icon: Icon( 55 | FI.Feather.home, 56 | size: width / 15.15, 57 | color: colorPrimary, 58 | ), 59 | ), 60 | IconButton( 61 | onPressed: () => null, 62 | icon: Icon( 63 | Ionicons.heart_outline, 64 | size: width / 14.0, 65 | color: colorDarkGrey, 66 | ), 67 | ), 68 | ], 69 | ), 70 | ), 71 | SizedBox(width: width * .15), 72 | Expanded( 73 | child: Row( 74 | mainAxisAlignment: MainAxisAlignment.spaceAround, 75 | children: [ 76 | IconButton( 77 | onPressed: () => null, 78 | icon: Icon( 79 | Ionicons.notifications_outline, 80 | size: width / 14.0, 81 | color: colorDarkGrey, 82 | ), 83 | ), 84 | IconButton( 85 | onPressed: () => null, 86 | icon: Icon( 87 | Ionicons.cart_outline, 88 | size: width / 14.0, 89 | color: colorDarkGrey, 90 | ), 91 | ), 92 | ], 93 | ), 94 | ), 95 | ], 96 | ), 97 | ), 98 | ), 99 | body: HomePage(), 100 | ); 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /lib/src/public/constant.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | const baseUrl = 'http://localhost:port/route'; 4 | var width = Get.width; 5 | var height = Get.height; 6 | -------------------------------------------------------------------------------- /lib/src/public/styles.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | var colorBlack = Color(0xFF14171A); 4 | var colorDarkGrey = Color(0xFF657786); 5 | var colorPrimary = Colors.redAccent; 6 | var colorTitle = Color(0xFF2C3D50); 7 | 8 | var colorHigh = Color(0xFFEE3A43); 9 | var colorMedium = Colors.amber.shade700; 10 | var colorLow = colorPrimary; 11 | var colorCompleted = Colors.green; 12 | var colorFailed = colorDarkGrey; 13 | var colorActive = Color(0xFF00D72F); 14 | 15 | Color mC = Colors.grey.shade100; 16 | Color mCL = Colors.white; 17 | Color mCM = Colors.grey.shade200; 18 | Color mCH = Colors.grey.shade400; 19 | Color mCD = Colors.black.withOpacity(0.075); 20 | Color mCC = Colors.green.withOpacity(0.65); 21 | Color fCD = Colors.grey.shade700; 22 | Color fCL = Colors.grey; 23 | 24 | BoxDecoration nMbox = BoxDecoration( 25 | borderRadius: BorderRadius.circular(15), 26 | color: mC, 27 | boxShadow: [ 28 | BoxShadow( 29 | color: mCD, 30 | offset: Offset(10, 10), 31 | blurRadius: 10, 32 | ), 33 | BoxShadow( 34 | color: mCL, 35 | offset: Offset(-10, -10), 36 | blurRadius: 10, 37 | ), 38 | ], 39 | ); 40 | 41 | BoxDecoration nMboxCategoryOff = BoxDecoration( 42 | shape: BoxShape.circle, 43 | color: mC, 44 | boxShadow: [ 45 | BoxShadow( 46 | color: mCD, 47 | offset: Offset(10, 10), 48 | blurRadius: 10, 49 | ), 50 | BoxShadow( 51 | color: mCL, 52 | offset: Offset(-10, -10), 53 | blurRadius: 10, 54 | ), 55 | ], 56 | ); 57 | 58 | BoxDecoration nMboxCategoryOn = BoxDecoration( 59 | shape: BoxShape.circle, 60 | color: mCD, 61 | boxShadow: [ 62 | BoxShadow( 63 | color: mCL, offset: Offset(3, 3), blurRadius: 3, spreadRadius: -3), 64 | ], 65 | ); 66 | 67 | BoxDecoration nMboxInvert = BoxDecoration( 68 | borderRadius: BorderRadius.circular(15), 69 | color: mCD, 70 | boxShadow: [ 71 | BoxShadow( 72 | color: mCL, offset: Offset(3, 3), blurRadius: 3, spreadRadius: -3), 73 | ]); 74 | 75 | BoxDecoration nMboxInvertActive = nMboxInvert.copyWith(color: mCC); 76 | 77 | BoxDecoration nMbtn = BoxDecoration( 78 | borderRadius: BorderRadius.circular(10), 79 | color: mC, 80 | boxShadow: [ 81 | BoxShadow( 82 | color: mCD, 83 | offset: Offset(2, 2), 84 | blurRadius: 2, 85 | ) 86 | ], 87 | ); 88 | -------------------------------------------------------------------------------- /lib/src/repository/product_repository.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_pizza_store/src/events/location_event.dart'; 2 | import 'package:flutter_pizza_store/src/events/product_event.dart'; 3 | import 'package:flutter_pizza_store/src/models/product.dart'; 4 | 5 | List allProducts = [ 6 | Product( 7 | name: 'Beef Burger', 8 | image: 'https://freepngimg.com/thumb/burger/5-2-burger-png-thumb.png', 9 | description: 'Cheesy Mozarella 🍔', 10 | price: 6.59, 11 | location: LocationType.hanoi, 12 | type: ProductType.burger, 13 | ), 14 | Product( 15 | name: 'Double Burger', 16 | image: 'https://freepngimg.com/thumb/burger/5-2-burger-png-thumb.png', 17 | description: 'Cheesy Mozarella 🍔', 18 | price: 7.59, 19 | location: LocationType.hochiminh, 20 | type: ProductType.burger, 21 | ), 22 | Product( 23 | name: 'Pig Burger', 24 | image: 25 | 'https://freepngimg.com/thumb/burger%20sandwich/9-hamburger-burger-png-image-thumb.png', 26 | description: 'Cheesy Mozarella 🍔', 27 | price: 8.59, 28 | location: LocationType.hochiminh, 29 | type: ProductType.burger, 30 | ), 31 | Product( 32 | name: 'Chicken Burger', 33 | image: 34 | 'https://freepngimg.com/thumb/burger%20sandwich/16-hamburger-burger-png-image-mac-burger-thumb.png', 35 | description: 'Cheesy Mozarella 🍔', 36 | price: 9.59, 37 | location: LocationType.hanoi, 38 | type: ProductType.burger, 39 | ), 40 | Product( 41 | name: 'Beef Burger', 42 | image: 'https://freepngimg.com/thumb/burger/5-2-burger-png-thumb.png', 43 | description: 'Cheesy Mozarella 🍔', 44 | price: 6.59, 45 | location: LocationType.danang, 46 | type: ProductType.burger, 47 | ), 48 | Product( 49 | name: 'Double Burger', 50 | image: 'https://freepngimg.com/thumb/burger/5-2-burger-png-thumb.png', 51 | description: 'Cheesy Mozarella 🍔', 52 | price: 7.59, 53 | location: LocationType.danang, 54 | type: ProductType.burger, 55 | ), 56 | Product( 57 | name: 'Pig Burger', 58 | image: 59 | 'https://freepngimg.com/thumb/burger%20sandwich/9-hamburger-burger-png-image-thumb.png', 60 | description: 'Cheesy Mozarella 🍔', 61 | price: 8.59, 62 | location: LocationType.danang, 63 | type: ProductType.burger, 64 | ), 65 | Product( 66 | name: 'Chicken Burger', 67 | image: 68 | 'https://freepngimg.com/thumb/burger%20sandwich/16-hamburger-burger-png-image-mac-burger-thumb.png', 69 | description: 'Cheesy Mozarella 🍔', 70 | price: 9.59, 71 | location: LocationType.danang, 72 | type: ProductType.burger, 73 | ), 74 | Product( 75 | name: 'Pizza Hải Sản Cocktail', 76 | image: 77 | 'https://thepizzacompany.vn/images/thumbs/000/0002212_sf-cocktail_300.png', 78 | description: 'Tôm, cua, giăm bông,... 🍔', 79 | price: 6.59, 80 | location: LocationType.hanoi, 81 | type: ProductType.pizza, 82 | ), 83 | Product( 84 | name: 'Pizza Hải Sản Cao Cấp', 85 | image: 86 | 'https://thepizzacompany.vn/images/thumbs/000/0002214_sf-deluxe_500.png', 87 | description: 'Tôm, cua, mực và nghêu 🍔', 88 | price: 7.59, 89 | location: LocationType.hochiminh, 90 | type: ProductType.pizza, 91 | ), 92 | Product( 93 | name: 'Pizza Tôm Cocktail', 94 | image: 95 | 'https://thepizzacompany.vn/images/thumbs/000/0002216_shrimp_300.png', 96 | description: 'Tôm với nấm, dứa, cà chua', 97 | price: 8.59, 98 | location: LocationType.hochiminh, 99 | type: ProductType.pizza, 100 | ), 101 | Product( 102 | name: 'Pizza Hải Sản Nhiệt Đới', 103 | image: 104 | 'https://thepizzacompany.vn/images/thumbs/000/0002211_tropical-sf_500.png', 105 | description: 'Tôm, nghêu, mực cua, dứa,...', 106 | price: 6.59, 107 | location: LocationType.hanoi, 108 | type: ProductType.pizza, 109 | ), 110 | Product( 111 | name: 'Đùi gà nướng', 112 | image: 113 | 'https://freepngimg.com/thumb/chicken/22064-6-cooked-chicken-transparent-image-thumb.png', 114 | description: 'Cheesy Mozarella', 115 | price: 7.59, 116 | location: LocationType.hochiminh, 117 | type: ProductType.chicken, 118 | ), 119 | Product( 120 | name: 'Gà chiên nguyên con', 121 | image: 122 | 'https://freepngimg.com/thumb/chicken/22095-2-cooked-chicken-image-thumb.png', 123 | description: 'Cheesy Mozarella', 124 | price: 8.59, 125 | location: LocationType.hochiminh, 126 | type: ProductType.chicken, 127 | ), 128 | Product( 129 | name: 'Gà nướng nguyên con', 130 | image: 131 | 'https://freepngimg.com/thumb/chicken/22053-2-cooked-chicken-transparent-thumb.png', 132 | description: 'Cheesy Mozarella', 133 | price: 9.59, 134 | location: LocationType.hochiminh, 135 | type: ProductType.chicken, 136 | ), 137 | Product( 138 | name: 'Đùi gà nướng', 139 | image: 140 | 'https://freepngimg.com/thumb/chicken/22064-6-cooked-chicken-transparent-image-thumb.png', 141 | description: 'Cheesy Mozarella', 142 | price: 7.59, 143 | location: LocationType.hanoi, 144 | type: ProductType.chicken, 145 | ), 146 | Product( 147 | name: 'Gà chiên nguyên con', 148 | image: 149 | 'https://freepngimg.com/thumb/chicken/22095-2-cooked-chicken-image-thumb.png', 150 | description: 'Cheesy Mozarella', 151 | price: 8.59, 152 | location: LocationType.hanoi, 153 | type: ProductType.chicken, 154 | ), 155 | Product( 156 | name: 'Gà nướng nguyên con', 157 | image: 158 | 'https://freepngimg.com/thumb/chicken/22053-2-cooked-chicken-transparent-thumb.png', 159 | description: 'Cheesy Mozarella', 160 | price: 9.59, 161 | location: LocationType.hanoi, 162 | type: ProductType.chicken, 163 | ), 164 | Product( 165 | name: 'Đùi gà nướng', 166 | image: 167 | 'https://freepngimg.com/thumb/chicken/22064-6-cooked-chicken-transparent-image-thumb.png', 168 | description: 'Cheesy Mozarella', 169 | price: 7.59, 170 | location: LocationType.danang, 171 | type: ProductType.chicken, 172 | ), 173 | Product( 174 | name: 'Gà chiên nguyên con', 175 | image: 176 | 'https://freepngimg.com/thumb/chicken/22095-2-cooked-chicken-image-thumb.png', 177 | description: 'Cheesy Mozarella', 178 | price: 8.59, 179 | location: LocationType.danang, 180 | type: ProductType.chicken, 181 | ), 182 | Product( 183 | name: 'Gà nướng nguyên con', 184 | image: 185 | 'https://freepngimg.com/thumb/chicken/22053-2-cooked-chicken-transparent-thumb.png', 186 | description: 'Cheesy Mozarella', 187 | price: 9.59, 188 | location: LocationType.danang, 189 | type: ProductType.chicken, 190 | ), 191 | Product( 192 | name: 'Cá và Khoai tây chiên', 193 | image: 194 | 'https://image.freepik.com/free-photo/british-snack-deep-fried-fish-chips_219193-2442.jpg', 195 | description: 'Cheesy Mozarella', 196 | price: 7.59, 197 | location: LocationType.hochiminh, 198 | type: ProductType.chips, 199 | ), 200 | Product( 201 | name: 'Khoai tây chiên', 202 | image: 203 | 'https://image.freepik.com/free-photo/crispy-french-fries-with-ketchup-mayonnaise_1150-26589.jpg', 204 | description: 'Cheesy Mozarella', 205 | price: 8.59, 206 | location: LocationType.hochiminh, 207 | type: ProductType.chips, 208 | ), 209 | Product( 210 | name: 'Khoai tây chiên lát', 211 | image: 212 | 'https://icon2.cleanpng.com/20180202/vpe/kisspng-french-fries-potato-chip-slider-food-chips-png-file-5a749c5e9b5aa9.6687710815175916466363.jpg', 213 | description: 'Cheesy Mozarella', 214 | price: 9.59, 215 | location: LocationType.hochiminh, 216 | type: ProductType.chips, 217 | ), 218 | Product( 219 | name: 'Khoai tây chiên', 220 | image: 221 | 'https://image.freepik.com/free-photo/crispy-french-fries-with-ketchup-mayonnaise_1150-26589.jpg', 222 | description: 'Cheesy Mozarella', 223 | price: 8.59, 224 | location: LocationType.hanoi, 225 | type: ProductType.chips, 226 | ), 227 | Product( 228 | name: 'Khoai tây chiên lát', 229 | image: 230 | 'https://image.freepik.com/free-photo/potato-chips-with-sour-cream-dipping-sauce_1339-133520.jpg', 231 | description: 'Cheesy Mozarella', 232 | price: 9.59, 233 | location: LocationType.hanoi, 234 | type: ProductType.chips, 235 | ), 236 | Product( 237 | name: 'Cá và Khoai tây chiên', 238 | image: 239 | 'https://image.freepik.com/free-photo/british-snack-deep-fried-fish-chips_219193-2442.jpg', 240 | description: 'Cheesy Mozarella', 241 | price: 7.59, 242 | location: LocationType.danang, 243 | type: ProductType.chips, 244 | ), 245 | Product( 246 | name: 'Khoai tây chiên', 247 | image: 248 | 'https://image.freepik.com/free-photo/crispy-french-fries-with-ketchup-mayonnaise_1150-26589.jpg', 249 | description: 'Cheesy Mozarella', 250 | price: 8.59, 251 | location: LocationType.danang, 252 | type: ProductType.chips, 253 | ), 254 | Product( 255 | name: 'Khoai tây chiên lát', 256 | image: 257 | 'https://image.freepik.com/free-photo/potato-chips-with-sour-cream-dipping-sauce_1339-133520.jpg', 258 | description: 'Cheesy Mozarella', 259 | price: 9.59, 260 | location: LocationType.danang, 261 | type: ProductType.chips, 262 | ), 263 | ]; 264 | -------------------------------------------------------------------------------- /lib/src/routes/app_pages.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_pizza_store/src/app.dart'; 2 | import 'package:get/get.dart'; 3 | part 'app_routes.dart'; 4 | 5 | // ignore: avoid_classes_with_only_static_members 6 | class AppPages { 7 | static const INITIAL = Routes.ROOT; 8 | 9 | static final routes = [ 10 | GetPage( 11 | name: Routes.ROOT, 12 | page: () => App(), 13 | children: [], 14 | ), 15 | ]; 16 | } 17 | -------------------------------------------------------------------------------- /lib/src/routes/app_routes.dart: -------------------------------------------------------------------------------- 1 | part of 'app_pages.dart'; 2 | 3 | abstract class Routes { 4 | static const ROOT = '/root'; 5 | static const HOME = '/home'; 6 | } 7 | -------------------------------------------------------------------------------- /lib/src/shared/logger/logger_utils.dart: -------------------------------------------------------------------------------- 1 | class Logger { 2 | static void write(String text, {bool isError = false}) { 3 | Future.microtask(() => print('** $text. isError: [$isError]')); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /lib/src/theme/theme_service.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get_storage/get_storage.dart'; 3 | import 'package:get/get.dart'; 4 | 5 | class ThemeService { 6 | final _getStorage = GetStorage(); 7 | final storageKey = 'isDarkMode'; 8 | 9 | ThemeMode getThemeMode() { 10 | return isSavedDarkMode() ? ThemeMode.dark : ThemeMode.light; 11 | } 12 | 13 | bool isSavedDarkMode() { 14 | return _getStorage.read(storageKey) ?? false; 15 | } 16 | 17 | void saveThemeMode(bool isDarkMode) { 18 | _getStorage.write(storageKey, isDarkMode); 19 | } 20 | 21 | void changeThemeMode() { 22 | Get.changeThemeMode(isSavedDarkMode() ? ThemeMode.light : ThemeMode.dark); 23 | saveThemeMode(!isSavedDarkMode()); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /lib/src/theme/themes.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_pizza_store/src/public/styles.dart'; 3 | 4 | class Themes { 5 | final lightTheme = ThemeData.light().copyWith( 6 | primaryColor: colorPrimary, 7 | appBarTheme: AppBarTheme( 8 | brightness: Brightness.light, 9 | textTheme: TextTheme( 10 | headline2: TextStyle(color: colorTitle), 11 | ), 12 | ), 13 | ); 14 | final darkTheme = ThemeData.dark().copyWith( 15 | primaryColor: colorPrimary, 16 | appBarTheme: AppBarTheme( 17 | brightness: Brightness.dark, 18 | textTheme: TextTheme( 19 | headline2: TextStyle(color: mC), 20 | ), 21 | ), 22 | ); 23 | } 24 | -------------------------------------------------------------------------------- /lib/src/widgets/error_loading_image.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_icons/flutter_icons.dart'; 3 | import 'package:flutter_pizza_store/src/public/styles.dart'; 4 | 5 | class ErrorLoadingImage extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | final _size = MediaQuery.of(context).size; 9 | return Container( 10 | decoration: BoxDecoration( 11 | color: mCD, 12 | boxShadow: [ 13 | BoxShadow( 14 | color: mCL, 15 | offset: Offset(3, 3), 16 | blurRadius: 3, 17 | spreadRadius: -3), 18 | ], 19 | ), 20 | alignment: Alignment.center, 21 | child: Icon( 22 | Feather.image, 23 | color: colorTitle, 24 | size: _size.width / 15.0, 25 | ), 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/src/widgets/place_holder_image.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_pizza_store/src/public/styles.dart'; 3 | 4 | class PlaceHolderImage extends StatelessWidget { 5 | @override 6 | Widget build(BuildContext context) { 7 | return Container( 8 | decoration: BoxDecoration( 9 | color: mCD, 10 | boxShadow: [ 11 | BoxShadow( 12 | color: mCL, 13 | offset: Offset(3, 3), 14 | blurRadius: 3, 15 | spreadRadius: -3), 16 | ], 17 | ), 18 | ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "12.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "0.40.6" 18 | archive: 19 | dependency: transitive 20 | description: 21 | name: archive 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.0.13" 25 | args: 26 | dependency: transitive 27 | description: 28 | name: args 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.6.0" 32 | async: 33 | dependency: transitive 34 | description: 35 | name: async 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "2.5.0-nullsafety.3" 39 | bloc: 40 | dependency: transitive 41 | description: 42 | name: bloc 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "6.1.3" 46 | boolean_selector: 47 | dependency: transitive 48 | description: 49 | name: boolean_selector 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.0-nullsafety.3" 53 | build: 54 | dependency: transitive 55 | description: 56 | name: build 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.6.2" 60 | built_collection: 61 | dependency: transitive 62 | description: 63 | name: built_collection 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "4.3.2" 67 | built_value: 68 | dependency: transitive 69 | description: 70 | name: built_value 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "7.1.0" 74 | cached_network_image: 75 | dependency: "direct main" 76 | description: 77 | name: cached_network_image 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "2.5.1" 81 | characters: 82 | dependency: transitive 83 | description: 84 | name: characters 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "1.1.0-nullsafety.5" 88 | charcode: 89 | dependency: transitive 90 | description: 91 | name: charcode 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "1.2.0-nullsafety.3" 95 | cli_util: 96 | dependency: transitive 97 | description: 98 | name: cli_util 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "0.2.0" 102 | clock: 103 | dependency: transitive 104 | description: 105 | name: clock 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "1.1.0-nullsafety.3" 109 | code_builder: 110 | dependency: transitive 111 | description: 112 | name: code_builder 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "3.7.0" 116 | collection: 117 | dependency: transitive 118 | description: 119 | name: collection 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "1.15.0-nullsafety.5" 123 | convert: 124 | dependency: transitive 125 | description: 126 | name: convert 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "2.1.1" 130 | coverage: 131 | dependency: transitive 132 | description: 133 | name: coverage 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "0.14.2" 137 | crypto: 138 | dependency: transitive 139 | description: 140 | name: crypto 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "2.1.5" 144 | cupertino_icons: 145 | dependency: "direct main" 146 | description: 147 | name: cupertino_icons 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "1.0.2" 151 | dart_style: 152 | dependency: transitive 153 | description: 154 | name: dart_style 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "1.3.10" 158 | fake_async: 159 | dependency: transitive 160 | description: 161 | name: fake_async 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "1.2.0-nullsafety.3" 165 | ffi: 166 | dependency: transitive 167 | description: 168 | name: ffi 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "0.1.3" 172 | file: 173 | dependency: transitive 174 | description: 175 | name: file 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "6.0.0-nullsafety.4" 179 | fixnum: 180 | dependency: transitive 181 | description: 182 | name: fixnum 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "0.10.11" 186 | flutter: 187 | dependency: "direct main" 188 | description: flutter 189 | source: sdk 190 | version: "0.0.0" 191 | flutter_bloc: 192 | dependency: "direct main" 193 | description: 194 | name: flutter_bloc 195 | url: "https://pub.dartlang.org" 196 | source: hosted 197 | version: "6.1.3" 198 | flutter_blurhash: 199 | dependency: transitive 200 | description: 201 | name: flutter_blurhash 202 | url: "https://pub.dartlang.org" 203 | source: hosted 204 | version: "0.5.0" 205 | flutter_cache_manager: 206 | dependency: transitive 207 | description: 208 | name: flutter_cache_manager 209 | url: "https://pub.dartlang.org" 210 | source: hosted 211 | version: "2.1.2" 212 | flutter_driver: 213 | dependency: transitive 214 | description: flutter 215 | source: sdk 216 | version: "0.0.0" 217 | flutter_icons: 218 | dependency: "direct main" 219 | description: 220 | name: flutter_icons 221 | url: "https://pub.dartlang.org" 222 | source: hosted 223 | version: "1.1.0" 224 | flutter_neumorphic: 225 | dependency: "direct main" 226 | description: 227 | name: flutter_neumorphic 228 | url: "https://pub.dartlang.org" 229 | source: hosted 230 | version: "3.0.4+1" 231 | flutter_test: 232 | dependency: "direct dev" 233 | description: flutter 234 | source: sdk 235 | version: "0.0.0" 236 | fuchsia_remote_debug_protocol: 237 | dependency: transitive 238 | description: flutter 239 | source: sdk 240 | version: "0.0.0" 241 | get: 242 | dependency: transitive 243 | description: 244 | name: get 245 | url: "https://pub.dartlang.org" 246 | source: hosted 247 | version: "3.26.0" 248 | get_storage: 249 | dependency: "direct main" 250 | description: 251 | name: get_storage 252 | url: "https://pub.dartlang.org" 253 | source: hosted 254 | version: "1.4.0" 255 | get_test: 256 | dependency: "direct main" 257 | description: 258 | name: get_test 259 | url: "https://pub.dartlang.org" 260 | source: hosted 261 | version: "3.13.3" 262 | glob: 263 | dependency: transitive 264 | description: 265 | name: glob 266 | url: "https://pub.dartlang.org" 267 | source: hosted 268 | version: "1.2.0" 269 | http: 270 | dependency: transitive 271 | description: 272 | name: http 273 | url: "https://pub.dartlang.org" 274 | source: hosted 275 | version: "0.12.2" 276 | http_parser: 277 | dependency: transitive 278 | description: 279 | name: http_parser 280 | url: "https://pub.dartlang.org" 281 | source: hosted 282 | version: "3.1.4" 283 | image: 284 | dependency: transitive 285 | description: 286 | name: image 287 | url: "https://pub.dartlang.org" 288 | source: hosted 289 | version: "2.1.19" 290 | integration_test: 291 | dependency: "direct dev" 292 | description: flutter 293 | source: sdk 294 | version: "0.9.2+2" 295 | io: 296 | dependency: transitive 297 | description: 298 | name: io 299 | url: "https://pub.dartlang.org" 300 | source: hosted 301 | version: "0.3.4" 302 | ionicons: 303 | dependency: "direct main" 304 | description: 305 | name: ionicons 306 | url: "https://pub.dartlang.org" 307 | source: hosted 308 | version: "0.1.1" 309 | js: 310 | dependency: transitive 311 | description: 312 | name: js 313 | url: "https://pub.dartlang.org" 314 | source: hosted 315 | version: "0.6.3-nullsafety.3" 316 | json_rpc_2: 317 | dependency: transitive 318 | description: 319 | name: json_rpc_2 320 | url: "https://pub.dartlang.org" 321 | source: hosted 322 | version: "2.2.2" 323 | logging: 324 | dependency: transitive 325 | description: 326 | name: logging 327 | url: "https://pub.dartlang.org" 328 | source: hosted 329 | version: "0.11.4" 330 | matcher: 331 | dependency: transitive 332 | description: 333 | name: matcher 334 | url: "https://pub.dartlang.org" 335 | source: hosted 336 | version: "0.12.10-nullsafety.3" 337 | meta: 338 | dependency: transitive 339 | description: 340 | name: meta 341 | url: "https://pub.dartlang.org" 342 | source: hosted 343 | version: "1.3.0-nullsafety.6" 344 | mockito: 345 | dependency: transitive 346 | description: 347 | name: mockito 348 | url: "https://pub.dartlang.org" 349 | source: hosted 350 | version: "4.1.4" 351 | nested: 352 | dependency: transitive 353 | description: 354 | name: nested 355 | url: "https://pub.dartlang.org" 356 | source: hosted 357 | version: "1.0.0" 358 | node_interop: 359 | dependency: transitive 360 | description: 361 | name: node_interop 362 | url: "https://pub.dartlang.org" 363 | source: hosted 364 | version: "1.2.1" 365 | node_io: 366 | dependency: transitive 367 | description: 368 | name: node_io 369 | url: "https://pub.dartlang.org" 370 | source: hosted 371 | version: "1.1.1" 372 | octo_image: 373 | dependency: transitive 374 | description: 375 | name: octo_image 376 | url: "https://pub.dartlang.org" 377 | source: hosted 378 | version: "0.3.0" 379 | package_config: 380 | dependency: transitive 381 | description: 382 | name: package_config 383 | url: "https://pub.dartlang.org" 384 | source: hosted 385 | version: "1.9.3" 386 | path: 387 | dependency: transitive 388 | description: 389 | name: path 390 | url: "https://pub.dartlang.org" 391 | source: hosted 392 | version: "1.8.0-nullsafety.3" 393 | path_provider: 394 | dependency: transitive 395 | description: 396 | name: path_provider 397 | url: "https://pub.dartlang.org" 398 | source: hosted 399 | version: "1.6.28" 400 | path_provider_linux: 401 | dependency: transitive 402 | description: 403 | name: path_provider_linux 404 | url: "https://pub.dartlang.org" 405 | source: hosted 406 | version: "0.0.1+2" 407 | path_provider_macos: 408 | dependency: transitive 409 | description: 410 | name: path_provider_macos 411 | url: "https://pub.dartlang.org" 412 | source: hosted 413 | version: "0.0.4+8" 414 | path_provider_platform_interface: 415 | dependency: transitive 416 | description: 417 | name: path_provider_platform_interface 418 | url: "https://pub.dartlang.org" 419 | source: hosted 420 | version: "1.0.4" 421 | path_provider_windows: 422 | dependency: transitive 423 | description: 424 | name: path_provider_windows 425 | url: "https://pub.dartlang.org" 426 | source: hosted 427 | version: "0.0.4+3" 428 | pedantic: 429 | dependency: transitive 430 | description: 431 | name: pedantic 432 | url: "https://pub.dartlang.org" 433 | source: hosted 434 | version: "1.10.0-nullsafety.3" 435 | petitparser: 436 | dependency: transitive 437 | description: 438 | name: petitparser 439 | url: "https://pub.dartlang.org" 440 | source: hosted 441 | version: "3.1.0" 442 | platform: 443 | dependency: transitive 444 | description: 445 | name: platform 446 | url: "https://pub.dartlang.org" 447 | source: hosted 448 | version: "3.0.0-nullsafety.4" 449 | plugin_platform_interface: 450 | dependency: transitive 451 | description: 452 | name: plugin_platform_interface 453 | url: "https://pub.dartlang.org" 454 | source: hosted 455 | version: "1.0.3" 456 | pool: 457 | dependency: transitive 458 | description: 459 | name: pool 460 | url: "https://pub.dartlang.org" 461 | source: hosted 462 | version: "1.5.0-nullsafety.3" 463 | process: 464 | dependency: transitive 465 | description: 466 | name: process 467 | url: "https://pub.dartlang.org" 468 | source: hosted 469 | version: "4.0.0-nullsafety.4" 470 | provider: 471 | dependency: transitive 472 | description: 473 | name: provider 474 | url: "https://pub.dartlang.org" 475 | source: hosted 476 | version: "4.3.3" 477 | pub_semver: 478 | dependency: transitive 479 | description: 480 | name: pub_semver 481 | url: "https://pub.dartlang.org" 482 | source: hosted 483 | version: "1.4.4" 484 | quiver: 485 | dependency: transitive 486 | description: 487 | name: quiver 488 | url: "https://pub.dartlang.org" 489 | source: hosted 490 | version: "2.1.5" 491 | rxdart: 492 | dependency: transitive 493 | description: 494 | name: rxdart 495 | url: "https://pub.dartlang.org" 496 | source: hosted 497 | version: "0.25.0" 498 | sky_engine: 499 | dependency: transitive 500 | description: flutter 501 | source: sdk 502 | version: "0.0.99" 503 | source_gen: 504 | dependency: transitive 505 | description: 506 | name: source_gen 507 | url: "https://pub.dartlang.org" 508 | source: hosted 509 | version: "0.9.10+2" 510 | source_map_stack_trace: 511 | dependency: transitive 512 | description: 513 | name: source_map_stack_trace 514 | url: "https://pub.dartlang.org" 515 | source: hosted 516 | version: "2.1.0-nullsafety.4" 517 | source_maps: 518 | dependency: transitive 519 | description: 520 | name: source_maps 521 | url: "https://pub.dartlang.org" 522 | source: hosted 523 | version: "0.10.10-nullsafety.3" 524 | source_span: 525 | dependency: transitive 526 | description: 527 | name: source_span 528 | url: "https://pub.dartlang.org" 529 | source: hosted 530 | version: "1.8.0-nullsafety.4" 531 | sqflite: 532 | dependency: transitive 533 | description: 534 | name: sqflite 535 | url: "https://pub.dartlang.org" 536 | source: hosted 537 | version: "1.3.2+4" 538 | sqflite_common: 539 | dependency: transitive 540 | description: 541 | name: sqflite_common 542 | url: "https://pub.dartlang.org" 543 | source: hosted 544 | version: "1.0.3+3" 545 | stack_trace: 546 | dependency: transitive 547 | description: 548 | name: stack_trace 549 | url: "https://pub.dartlang.org" 550 | source: hosted 551 | version: "1.10.0-nullsafety.6" 552 | stream_channel: 553 | dependency: transitive 554 | description: 555 | name: stream_channel 556 | url: "https://pub.dartlang.org" 557 | source: hosted 558 | version: "2.1.0-nullsafety.3" 559 | string_scanner: 560 | dependency: transitive 561 | description: 562 | name: string_scanner 563 | url: "https://pub.dartlang.org" 564 | source: hosted 565 | version: "1.1.0-nullsafety.3" 566 | sync_http: 567 | dependency: transitive 568 | description: 569 | name: sync_http 570 | url: "https://pub.dartlang.org" 571 | source: hosted 572 | version: "0.2.0" 573 | synchronized: 574 | dependency: transitive 575 | description: 576 | name: synchronized 577 | url: "https://pub.dartlang.org" 578 | source: hosted 579 | version: "2.2.0+2" 580 | term_glyph: 581 | dependency: transitive 582 | description: 583 | name: term_glyph 584 | url: "https://pub.dartlang.org" 585 | source: hosted 586 | version: "1.2.0-nullsafety.3" 587 | test_api: 588 | dependency: transitive 589 | description: 590 | name: test_api 591 | url: "https://pub.dartlang.org" 592 | source: hosted 593 | version: "0.2.19-nullsafety.6" 594 | test_core: 595 | dependency: transitive 596 | description: 597 | name: test_core 598 | url: "https://pub.dartlang.org" 599 | source: hosted 600 | version: "0.3.12-nullsafety.9" 601 | typed_data: 602 | dependency: transitive 603 | description: 604 | name: typed_data 605 | url: "https://pub.dartlang.org" 606 | source: hosted 607 | version: "1.3.0-nullsafety.5" 608 | uuid: 609 | dependency: transitive 610 | description: 611 | name: uuid 612 | url: "https://pub.dartlang.org" 613 | source: hosted 614 | version: "2.2.2" 615 | vector_math: 616 | dependency: transitive 617 | description: 618 | name: vector_math 619 | url: "https://pub.dartlang.org" 620 | source: hosted 621 | version: "2.1.0-nullsafety.5" 622 | vm_service: 623 | dependency: transitive 624 | description: 625 | name: vm_service 626 | url: "https://pub.dartlang.org" 627 | source: hosted 628 | version: "5.5.0" 629 | watcher: 630 | dependency: transitive 631 | description: 632 | name: watcher 633 | url: "https://pub.dartlang.org" 634 | source: hosted 635 | version: "0.9.7+15" 636 | web_socket_channel: 637 | dependency: transitive 638 | description: 639 | name: web_socket_channel 640 | url: "https://pub.dartlang.org" 641 | source: hosted 642 | version: "1.1.0" 643 | webdriver: 644 | dependency: transitive 645 | description: 646 | name: webdriver 647 | url: "https://pub.dartlang.org" 648 | source: hosted 649 | version: "2.1.2" 650 | win32: 651 | dependency: transitive 652 | description: 653 | name: win32 654 | url: "https://pub.dartlang.org" 655 | source: hosted 656 | version: "1.7.4+1" 657 | xdg_directories: 658 | dependency: transitive 659 | description: 660 | name: xdg_directories 661 | url: "https://pub.dartlang.org" 662 | source: hosted 663 | version: "0.1.2" 664 | xml: 665 | dependency: transitive 666 | description: 667 | name: xml 668 | url: "https://pub.dartlang.org" 669 | source: hosted 670 | version: "4.5.1" 671 | yaml: 672 | dependency: transitive 673 | description: 674 | name: yaml 675 | url: "https://pub.dartlang.org" 676 | source: hosted 677 | version: "2.2.1" 678 | sdks: 679 | dart: ">=2.12.0-0.0 <3.0.0" 680 | flutter: ">=1.22.2" 681 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_pizza_store 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.7.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 | cupertino_icons: ^1.0.1 31 | get_test: ^3.13.3 32 | get_storage: ^1.4.0 33 | flutter_neumorphic: ^3.0.4+1 34 | flutter_icons: 35 | cached_network_image: 36 | ionicons: ^0.1.1 37 | flutter_bloc: ^6.0.0 38 | 39 | dev_dependencies: 40 | flutter_test: 41 | sdk: flutter 42 | integration_test: 43 | sdk: flutter 44 | 45 | # For information on the generic Dart part of this file, see the 46 | # following page: https://dart.dev/tools/pub/pubspec 47 | 48 | # The following section is specific to Flutter. 49 | flutter: 50 | 51 | # The following line ensures that the Material Icons font is 52 | # included with your application, so that you can use the icons in 53 | # the material Icons class. 54 | uses-material-design: true 55 | 56 | # To add assets to your application, add an assets section, like this: 57 | assets: 58 | - images/ 59 | 60 | # An image asset can refer to one or more resolution-specific "variants", see 61 | # https://flutter.dev/assets-and-images/#resolution-aware. 62 | 63 | # For details regarding adding assets from package dependencies, see 64 | # https://flutter.dev/assets-and-images/#from-packages 65 | 66 | # To add custom fonts to your application, add a fonts section here, 67 | # in this "flutter" section. Each entry in this list should have a 68 | # "family" key with the font family name, and a "fonts" key with a 69 | # list giving the asset and other descriptors for the font. For 70 | # example: 71 | fonts: 72 | - family: Lato 73 | fonts: 74 | - asset: assets/fonts/Lato-Regular.ttf 75 | 76 | - family: Caveat 77 | fonts: 78 | - asset: assets/fonts/Caveat-Regular.ttf 79 | # - family: Trajan Pro 80 | # fonts: 81 | # - asset: fonts/TrajanPro.ttf 82 | # - asset: fonts/TrajanPro_Bold.ttf 83 | # weight: 700 84 | # 85 | # For details regarding fonts from package dependencies, 86 | # see https://flutter.dev/custom-fonts/#from-packages 87 | -------------------------------------------------------------------------------- /screenshots/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/screenshots/home.png -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_pizza_store/src/app.dart'; 10 | import 'package:flutter_test/flutter_test.dart'; 11 | 12 | void main() { 13 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 14 | // Build our app and trigger a frame. 15 | await tester.pumpWidget(App()); 16 | 17 | // Verify that our counter starts at 0. 18 | expect(find.text('0'), findsOneWidget); 19 | expect(find.text('1'), findsNothing); 20 | 21 | // Tap the '+' icon and trigger a frame. 22 | await tester.tap(find.byIcon(Icons.add)); 23 | await tester.pump(); 24 | 25 | // Verify that our counter has incremented. 26 | expect(find.text('0'), findsNothing); 27 | expect(find.text('1'), findsOneWidget); 28 | }); 29 | } 30 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lambiengcode/pizza_store_flutter/d7d3a5a95e7ff54cc592ab2b3c59b9703d21d9bb/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | flutter_pizza_store 30 | 31 | 32 | 33 | 36 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "flutter_pizza_store", 3 | "short_name": "flutter_pizza_store", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | } 22 | ] 23 | } 24 | --------------------------------------------------------------------------------