├── .DS_Store ├── .idea ├── Gradison-Food.iml ├── modules.xml ├── vcs.xml └── workspace.xml ├── LICENSE ├── Pizza-Android ├── .gitignore ├── .idea │ ├── .gitignore │ ├── .name │ ├── compiler.xml │ ├── gradle.xml │ ├── misc.xml │ └── vcs.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── android │ │ │ └── ui │ │ │ └── pizza │ │ │ └── ExampleInstrumentedTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── android │ │ │ │ └── ui │ │ │ │ └── pizza │ │ │ │ ├── MainActivity.java │ │ │ │ └── view │ │ │ │ ├── IntroActivity.java │ │ │ │ ├── food │ │ │ │ ├── FoodActivity.java │ │ │ │ ├── FoodSize.java │ │ │ │ └── ViewPagerAdapter.java │ │ │ │ ├── home │ │ │ │ ├── HomeFragment.java │ │ │ │ ├── HomeViewModel.java │ │ │ │ ├── adapter │ │ │ │ │ ├── CategoryAdapter.java │ │ │ │ │ └── RatingAdapter.java │ │ │ │ ├── model │ │ │ │ │ ├── Category.java │ │ │ │ │ └── Rating.java │ │ │ │ └── viewholder │ │ │ │ │ ├── CategoryViewHolder.java │ │ │ │ │ └── RatingViewHolder.java │ │ │ │ ├── notifications │ │ │ │ ├── NotificationsFragment.java │ │ │ │ └── NotificationsViewModel.java │ │ │ │ └── shopping │ │ │ │ ├── ShoppingFragment.java │ │ │ │ └── ShoppingViewModel.java │ │ └── res │ │ │ ├── drawable-v24 │ │ │ ├── arrowleft.png │ │ │ ├── back.jpg │ │ │ ├── cheseburger.png │ │ │ ├── chickenburger.png │ │ │ ├── circle.png │ │ │ ├── heart.png │ │ │ ├── ic_launcher_foreground.xml │ │ │ ├── imagebkg.jpg │ │ │ ├── img.png │ │ │ ├── img_1.png │ │ │ ├── shopping.png │ │ │ └── star.png │ │ │ ├── drawable │ │ │ ├── add_background.xml │ │ │ ├── add_cart_background.xml │ │ │ ├── bottom_nav_bar_corner.xml │ │ │ ├── categories_item_background_normal.xml │ │ │ ├── categories_item_background_pressed.xml │ │ │ ├── filter.xml │ │ │ ├── filter_background.xml │ │ │ ├── flat.xml │ │ │ ├── ic_background.xml │ │ │ ├── ic_baseline_add_24.xml │ │ │ ├── ic_baseline_arrow_forward_ios_24.xml │ │ │ ├── ic_baseline_fastfood_24.xml │ │ │ ├── ic_baseline_keyboard_arrow_down_24.xml │ │ │ ├── ic_baseline_location_on_24.xml │ │ │ ├── ic_baseline_remove_24.xml │ │ │ ├── ic_baseline_search_24.xml │ │ │ ├── ic_baseline_shopping_bag_24.xml │ │ │ ├── ic_dashboard_black_24dp.xml │ │ │ ├── ic_home_black_24dp.xml │ │ │ ├── ic_launcher_background.xml │ │ │ ├── ic_notifications_black_24dp.xml │ │ │ ├── item_no_background.xml │ │ │ ├── pallet_normal.xml │ │ │ ├── pallet_pressed.xml │ │ │ ├── search_background.xml │ │ │ ├── tab_selector.xml │ │ │ └── undraw_on_the_way_re_swjt.xml │ │ │ ├── font │ │ │ ├── advent_pro.xml │ │ │ ├── poppins_medium.xml │ │ │ └── roboto.xml │ │ │ ├── layout │ │ │ ├── activity_food.xml │ │ │ ├── activity_intro.xml │ │ │ ├── activity_main.xml │ │ │ ├── category_item.xml │ │ │ ├── fragment_home.xml │ │ │ ├── fragment_notifications.xml │ │ │ ├── fragment_shopping.xml │ │ │ ├── rating_item.xml │ │ │ └── view_pager_item.xml │ │ │ ├── menu │ │ │ └── bottom_nav_menu.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.webp │ │ │ └── ic_launcher_round.webp │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.webp │ │ │ └── ic_launcher_round.webp │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.webp │ │ │ └── ic_launcher_round.webp │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.webp │ │ │ └── ic_launcher_round.webp │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.webp │ │ │ └── ic_launcher_round.webp │ │ │ ├── navigation │ │ │ └── mobile_navigation.xml │ │ │ ├── values-night │ │ │ └── themes.xml │ │ │ ├── values │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── font_certs.xml │ │ │ ├── preloaded_fonts.xml │ │ │ ├── splash.xml │ │ │ ├── strings.xml │ │ │ └── themes.xml │ │ │ └── xml │ │ │ ├── backup_rules.xml │ │ │ └── data_extraction_rules.xml │ │ └── test │ │ └── java │ │ └── android │ │ └── ui │ │ └── pizza │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── README.md ├── pizza_flutter ├── .gitignore ├── .metadata ├── README.md ├── analysis_options.yaml ├── android │ ├── .gitignore │ ├── app │ │ ├── build.gradle │ │ └── src │ │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ │ ├── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── kotlin │ │ │ │ └── android │ │ │ │ │ └── ui │ │ │ │ │ └── pizza_flutter │ │ │ │ │ └── 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 │ ├── icons │ │ ├── back_icon.png │ │ ├── circle.png │ │ ├── favorite.png │ │ ├── frame.png │ │ ├── home.png │ │ ├── shopping.png │ │ └── star.png │ └── images │ │ ├── back.jpg │ │ ├── cheese.png │ │ ├── chicken.png │ │ ├── chicken_big.png │ │ ├── delivery.png │ │ ├── imagebg.jpg │ │ └── img.png ├── 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 │ ├── app │ │ ├── app.dart │ │ ├── ui │ │ │ ├── food.dart │ │ │ ├── fragments │ │ │ │ └── home.fragment.dart │ │ │ ├── home.dart │ │ │ └── intro_screen.dart │ │ └── widgets │ │ │ ├── categories.card.dart │ │ │ └── grid.view.card.dart │ ├── core │ │ ├── app.assets.dart │ │ ├── app.colors.dart │ │ ├── app.text.styles.dart │ │ ├── app.theme.dart │ │ ├── constants.dart │ │ └── core.dart │ ├── main.dart │ └── utils │ │ └── demo_page_view.dart ├── linux │ ├── .gitignore │ ├── CMakeLists.txt │ ├── flutter │ │ ├── CMakeLists.txt │ │ ├── generated_plugin_registrant.cc │ │ ├── generated_plugin_registrant.h │ │ └── generated_plugins.cmake │ ├── main.cc │ ├── my_application.cc │ └── my_application.h ├── macos │ ├── .gitignore │ ├── Flutter │ │ ├── Flutter-Debug.xcconfig │ │ ├── Flutter-Release.xcconfig │ │ └── GeneratedPluginRegistrant.swift │ ├── Podfile │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── Runner │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── app_icon_1024.png │ │ │ ├── app_icon_128.png │ │ │ ├── app_icon_16.png │ │ │ ├── app_icon_256.png │ │ │ ├── app_icon_32.png │ │ │ ├── app_icon_512.png │ │ │ └── app_icon_64.png │ │ ├── Base.lproj │ │ └── MainMenu.xib │ │ ├── Configs │ │ ├── AppInfo.xcconfig │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── Warnings.xcconfig │ │ ├── DebugProfile.entitlements │ │ ├── Info.plist │ │ ├── MainFlutterWindow.swift │ │ └── Release.entitlements ├── pubspec.lock ├── pubspec.yaml ├── test │ └── widget_test.dart ├── web │ ├── favicon.png │ ├── icons │ │ ├── Icon-192.png │ │ ├── Icon-512.png │ │ ├── Icon-maskable-192.png │ │ └── Icon-maskable-512.png │ ├── index.html │ └── manifest.json └── windows │ ├── .gitignore │ ├── CMakeLists.txt │ ├── flutter │ ├── CMakeLists.txt │ ├── generated_plugin_registrant.cc │ ├── generated_plugin_registrant.h │ └── generated_plugins.cmake │ └── runner │ ├── CMakeLists.txt │ ├── Runner.rc │ ├── flutter_window.cpp │ ├── flutter_window.h │ ├── main.cpp │ ├── resource.h │ ├── resources │ └── app_icon.ico │ ├── runner.exe.manifest │ ├── utils.cpp │ ├── utils.h │ ├── win32_window.cpp │ └── win32_window.h └── screens.png /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/.DS_Store -------------------------------------------------------------------------------- /.idea/Gradison-Food.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 | 19 | 21 | 22 | 24 | 25 | 26 | 29 | { 30 | "keyToString": { 31 | "RunOnceActivity.OpenProjectViewOnStart": "true", 32 | "RunOnceActivity.ShowReadmeOnStart": "true", 33 | "WebServerToolWindowFactoryState": "false", 34 | "dart.analysis.tool.window.visible": "false", 35 | "last_opened_file_path": "C:/Users/Kimi/Desktop/github/Gradison/Pizza-Android", 36 | "show.migrate.to.gradle.popup": "false" 37 | } 38 | } 39 | 40 | 41 | 42 | 43 | 1663801247296 44 | 50 | 51 | 52 | 53 | 55 | 56 | 65 | 66 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Kelvin Eduful 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 | -------------------------------------------------------------------------------- /Pizza-Android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | .cxx 15 | local.properties 16 | -------------------------------------------------------------------------------- /Pizza-Android/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /Pizza-Android/.idea/.name: -------------------------------------------------------------------------------- 1 | Pizza -------------------------------------------------------------------------------- /Pizza-Android/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Pizza-Android/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 19 | 20 | -------------------------------------------------------------------------------- /Pizza-Android/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | -------------------------------------------------------------------------------- /Pizza-Android/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Pizza-Android/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /Pizza-Android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'com.android.application' 3 | } 4 | 5 | android { 6 | namespace 'android.ui.pizza' 7 | compileSdk 33 8 | 9 | defaultConfig { 10 | applicationId "android.ui.pizza" 11 | minSdk 31 12 | targetSdk 33 13 | versionCode 1 14 | versionName "1.0" 15 | 16 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 17 | } 18 | 19 | buildTypes { 20 | release { 21 | minifyEnabled false 22 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 23 | } 24 | } 25 | compileOptions { 26 | sourceCompatibility JavaVersion.VERSION_1_8 27 | targetCompatibility JavaVersion.VERSION_1_8 28 | } 29 | buildFeatures { 30 | viewBinding true 31 | } 32 | } 33 | 34 | dependencies { 35 | 36 | implementation 'androidx.appcompat:appcompat:1.5.1' 37 | implementation 'com.google.android.material:material:1.7.0' 38 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' 39 | implementation 'androidx.core:core-splashscreen:1.0.0' 40 | implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1' 41 | implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' 42 | implementation 'androidx.navigation:navigation-fragment:2.5.2' 43 | implementation 'androidx.navigation:navigation-ui:2.5.2' 44 | testImplementation 'junit:junit:4.13.2' 45 | androidTestImplementation 'androidx.test.ext:junit:1.1.3' 46 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' 47 | } -------------------------------------------------------------------------------- /Pizza-Android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /Pizza-Android/app/src/androidTest/java/android/ui/pizza/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | assertEquals("android.ui.pizza", appContext.getPackageName()); 25 | } 26 | } -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 14 | 17 | 20 | 21 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 37 | 40 | 41 | 42 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/MainActivity.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza; 2 | 3 | import android.os.Bundle; 4 | 5 | import com.google.android.material.bottomnavigation.BottomNavigationView; 6 | 7 | import androidx.appcompat.app.AppCompatActivity; 8 | import androidx.navigation.NavController; 9 | import androidx.navigation.Navigation; 10 | import androidx.navigation.ui.AppBarConfiguration; 11 | import androidx.navigation.ui.NavigationUI; 12 | 13 | import android.ui.pizza.databinding.ActivityMainBinding; 14 | 15 | import java.util.Objects; 16 | 17 | public class MainActivity extends AppCompatActivity { 18 | 19 | ActivityMainBinding binding; 20 | 21 | @Override 22 | protected void onCreate(Bundle savedInstanceState) { 23 | super.onCreate(savedInstanceState); 24 | 25 | binding = ActivityMainBinding.inflate(getLayoutInflater()); 26 | setContentView(binding.getRoot()); 27 | 28 | Objects.requireNonNull(getSupportActionBar()).hide(); 29 | 30 | BottomNavigationView navView = binding.navView; 31 | // Passing each menu ID as a set of Ids because each 32 | // menu should be considered as top level destinations. 33 | AppBarConfiguration appBarConfiguration = new AppBarConfiguration.Builder( 34 | R.id.navigation_home, 35 | R.id.navigation_shopping, 36 | R.id.navigation_notifications 37 | ) 38 | .build(); 39 | NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_activity_main); 40 | NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration); 41 | NavigationUI.setupWithNavController(binding.navView, navController); 42 | } 43 | 44 | } -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/IntroActivity.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view; 2 | 3 | import androidx.appcompat.app.AppCompatActivity; 4 | import androidx.core.splashscreen.SplashScreen; 5 | 6 | import android.content.Intent; 7 | import android.os.Bundle; 8 | //import android.ui.pizza.MainActivity; 9 | import android.ui.pizza.R; 10 | import android.ui.pizza.databinding.ActivityIntroBinding; 11 | import android.ui.pizza.view.food.FoodActivity; 12 | 13 | import java.util.Objects; 14 | 15 | public class IntroActivity extends AppCompatActivity { 16 | 17 | ActivityIntroBinding binding; 18 | 19 | //140.82.121.3 20 | 21 | @Override 22 | protected void onCreate(Bundle savedInstanceState) { 23 | binding = ActivityIntroBinding.inflate(getLayoutInflater()); 24 | super.onCreate(savedInstanceState); 25 | SplashScreen splashScreen = SplashScreen.installSplashScreen(this); 26 | setContentView(binding.getRoot()); 27 | 28 | Objects.requireNonNull(getSupportActionBar()).hide(); 29 | 30 | binding.btnStart.setOnClickListener(view -> { 31 | startActivity(new Intent(this, FoodActivity.class)); 32 | finish(); 33 | }); 34 | } 35 | 36 | @Override 37 | public boolean onSupportNavigateUp() { 38 | onBackPressed(); 39 | return super.onSupportNavigateUp(); 40 | } 41 | } -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/food/FoodActivity.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.food; 2 | 3 | 4 | import androidx.appcompat.app.AppCompatActivity; 5 | import androidx.viewpager.widget.ViewPager; 6 | 7 | import android.content.Intent; 8 | import android.os.Bundle; 9 | import android.ui.pizza.R; 10 | import android.ui.pizza.databinding.ActivityFoodBinding; 11 | import android.ui.pizza.view.IntroActivity; 12 | 13 | import com.google.android.material.tabs.TabLayout; 14 | 15 | import java.util.Objects; 16 | 17 | public class FoodActivity extends AppCompatActivity { 18 | 19 | // enable viewBinding 20 | ActivityFoodBinding binding; 21 | 22 | // creating an object of ViewPager 23 | ViewPager mViewPager; 24 | 25 | // creating an object of TabLayout 26 | TabLayout mTabLayout; 27 | 28 | // images array 29 | int[] images = {R.drawable.chickenburger, R.drawable.cheseburger, R.drawable.img, 30 | R.drawable.imagebkg, R.drawable.shopping}; 31 | 32 | ViewPagerAdapter mViewPagerAdapter; 33 | 34 | @Override 35 | protected void onCreate(Bundle savedInstanceState) { 36 | binding = ActivityFoodBinding.inflate(getLayoutInflater()); 37 | super.onCreate(savedInstanceState); 38 | setContentView(binding.getRoot()); 39 | 40 | binding.ibArrow.setOnClickListener(view -> startActivity(new Intent(this, IntroActivity.class))); 41 | 42 | Objects.requireNonNull(getSupportActionBar()).hide(); 43 | 44 | // Initializing the viewPager object 45 | mViewPager = binding.vpPager; 46 | 47 | // Initializing the TabLayout object 48 | mTabLayout = binding.tabLayout; 49 | 50 | // Initializing the ViewPagerAdapter 51 | mViewPagerAdapter = new ViewPagerAdapter(this, images); 52 | 53 | // adding the adapter to the ViewPager 54 | mViewPager.setAdapter(mViewPagerAdapter); 55 | 56 | // setting up the viewPager with tab layout 57 | mTabLayout.setupWithViewPager(mViewPager); 58 | } 59 | } -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/food/FoodSize.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.food; 2 | 3 | public enum FoodSize { 4 | High, 5 | Medium, 6 | Low 7 | } 8 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/food/ViewPagerAdapter.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.food; 2 | 3 | import android.content.Context; 4 | import android.ui.pizza.R; 5 | import android.view.LayoutInflater; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | import android.widget.ImageView; 9 | import android.widget.LinearLayout; 10 | 11 | import androidx.annotation.NonNull; 12 | import androidx.viewpager.widget.PagerAdapter; 13 | 14 | import java.util.Objects; 15 | 16 | public class ViewPagerAdapter extends PagerAdapter { 17 | 18 | // Context object 19 | Context context; 20 | 21 | // Array of images 22 | int[] images; 23 | 24 | // Layout Inflater 25 | LayoutInflater mLayoutInflater; 26 | 27 | // ViewPager Constructor 28 | public ViewPagerAdapter(Context context, int[] images) { 29 | this.context = context; 30 | this.images = images; 31 | mLayoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 32 | } 33 | @Override 34 | public int getCount() { 35 | // return the number of images 36 | return images.length; 37 | } 38 | 39 | @Override 40 | public boolean isViewFromObject(@NonNull View view, @NonNull Object object) { 41 | return view == ((LinearLayout) object); 42 | } 43 | 44 | @NonNull 45 | @Override 46 | public Object instantiateItem(@NonNull ViewGroup container, int position) { 47 | // inflating the view_pager_item.xml 48 | View itemView = mLayoutInflater.inflate(R.layout.view_pager_item, container, false); 49 | 50 | // referencing the image view from the view_pager_item.xml file 51 | ImageView imageView = itemView.findViewById(R.id.iv_view_pager); 52 | 53 | // setting the image in the imageView 54 | imageView.setImageResource(images[position]); 55 | 56 | // Adding the View 57 | Objects.requireNonNull(container).addView(itemView); 58 | 59 | return itemView; 60 | } 61 | 62 | @Override 63 | public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) { 64 | container.removeView((LinearLayout) object); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/home/HomeFragment.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.home; 2 | 3 | import android.os.Bundle; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | 8 | import androidx.annotation.NonNull; 9 | import androidx.fragment.app.Fragment; 10 | import androidx.lifecycle.ViewModelProvider; 11 | 12 | import android.ui.pizza.databinding.FragmentHomeBinding; 13 | import android.widget.TextView; 14 | 15 | public class HomeFragment extends Fragment { 16 | 17 | private FragmentHomeBinding binding; 18 | 19 | public View onCreateView(@NonNull LayoutInflater inflater, 20 | ViewGroup container, Bundle savedInstanceState) { 21 | HomeViewModel homeViewModel = 22 | new ViewModelProvider(this).get(HomeViewModel.class); 23 | 24 | binding = FragmentHomeBinding.inflate(inflater, container, false); 25 | View root = binding.getRoot(); 26 | 27 | final TextView textView = binding.tvCat; 28 | homeViewModel.getText().observe(getViewLifecycleOwner(), textView::setText); 29 | return root; 30 | } 31 | 32 | @Override 33 | public void onDestroyView() { 34 | super.onDestroyView(); 35 | binding = null; 36 | } 37 | } -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/home/HomeViewModel.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.home; 2 | 3 | import androidx.lifecycle.LiveData; 4 | import androidx.lifecycle.MutableLiveData; 5 | import androidx.lifecycle.ViewModel; 6 | 7 | public class HomeViewModel extends ViewModel { 8 | 9 | private final MutableLiveData mText; 10 | 11 | public HomeViewModel() { 12 | mText = new MutableLiveData<>(); 13 | mText.setValue("Categories"); 14 | } 15 | 16 | public LiveData getText() { 17 | return mText; 18 | } 19 | } -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/home/adapter/CategoryAdapter.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.home.adapter; 2 | 3 | import android.ui.pizza.R; 4 | import android.ui.pizza.view.home.viewholder.CategoryViewHolder; 5 | import android.view.LayoutInflater; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | 9 | import androidx.annotation.NonNull; 10 | import androidx.recyclerview.widget.RecyclerView; 11 | 12 | public class CategoryAdapter extends RecyclerView.Adapter { 13 | @NonNull 14 | @Override 15 | public CategoryViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { 16 | View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.category_item, parent, false); 17 | return new CategoryViewHolder(view); 18 | } 19 | 20 | @Override 21 | public void onBindViewHolder(@NonNull CategoryViewHolder holder, int position) { 22 | 23 | } 24 | 25 | @Override 26 | public int getItemCount() { 27 | return 0; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/home/adapter/RatingAdapter.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.home.adapter; 2 | 3 | import android.ui.pizza.R; 4 | import android.ui.pizza.view.home.viewholder.RatingViewHolder; 5 | import android.view.LayoutInflater; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | 9 | import androidx.annotation.NonNull; 10 | import androidx.recyclerview.widget.RecyclerView; 11 | 12 | public class RatingAdapter extends RecyclerView.Adapter { 13 | @NonNull 14 | @Override 15 | public RatingViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { 16 | View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.rating_item, parent, false); 17 | return new RatingViewHolder(view); 18 | } 19 | 20 | @Override 21 | public void onBindViewHolder(@NonNull RatingViewHolder holder, int position) { 22 | 23 | } 24 | 25 | @Override 26 | public int getItemCount() { 27 | return 0; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/home/model/Category.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.home.model; 2 | 3 | public class Category { 4 | 5 | private int emoji; 6 | private String categoryName; 7 | 8 | public CategoryModel(int emoji, String categoryName) { 9 | this.emoji = emoji; 10 | this.categoryName = categoryName; 11 | } 12 | 13 | public int getEmoji() { 14 | return emoji; 15 | } 16 | 17 | public void setEmoji(int emoji) { 18 | this.emoji = emoji; 19 | } 20 | 21 | public String getCategoryName() { 22 | return categoryName; 23 | } 24 | 25 | public void setCategoryName(String categoryName) { 26 | this.categoryName = categoryName; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/home/model/Rating.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.home.model; 2 | 3 | public class Rating { 4 | 5 | private String rating; 6 | private int burgerImage; 7 | private String burgerName; 8 | private String burgerContent; 9 | private String price; 10 | 11 | public RatingModel(String rating, int burgerImage, String burgerName, String burgerContent, String price) { 12 | this.rating = rating; 13 | this.burgerImage = burgerImage; 14 | this.burgerName = burgerName; 15 | this.burgerContent = burgerContent; 16 | this.price = price; 17 | } 18 | 19 | public String getRating() { 20 | return rating; 21 | } 22 | 23 | public void setRating(String rating) { 24 | this.rating = rating; 25 | } 26 | 27 | public int getBurgerImage() { 28 | return burgerImage; 29 | } 30 | 31 | public void setBurgerImage(int burgerImage) { 32 | this.burgerImage = burgerImage; 33 | } 34 | 35 | public String getBurgerName() { 36 | return burgerName; 37 | } 38 | 39 | public void setBurgerName(String burgerName) { 40 | this.burgerName = burgerName; 41 | } 42 | 43 | public String getBurgerContent() { 44 | return burgerContent; 45 | } 46 | 47 | public void setBurgerContent(String burgerContent) { 48 | this.burgerContent = burgerContent; 49 | } 50 | 51 | public String getPrice() { 52 | return price; 53 | } 54 | 55 | public void setPrice(String price) { 56 | this.price = price; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/home/viewholder/CategoryViewHolder.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.home.viewholder; 2 | 3 | import android.view.View; 4 | 5 | import androidx.annotation.NonNull; 6 | import androidx.recyclerview.widget.RecyclerView; 7 | 8 | public class CategoryViewHolder extends RecyclerView.ViewHolder { 9 | public CategoryViewHolder(@NonNull View itemView) { 10 | super(itemView); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/home/viewholder/RatingViewHolder.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.home.viewholder; 2 | 3 | import android.view.View; 4 | 5 | import androidx.annotation.NonNull; 6 | import androidx.recyclerview.widget.RecyclerView; 7 | 8 | public class RatingViewHolder extends RecyclerView.ViewHolder { 9 | public RatingViewHolder(@NonNull View itemView) { 10 | super(itemView); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/notifications/NotificationsFragment.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.notifications; 2 | 3 | import android.os.Bundle; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.TextView; 8 | 9 | import androidx.annotation.NonNull; 10 | import androidx.fragment.app.Fragment; 11 | import androidx.lifecycle.ViewModelProvider; 12 | 13 | import android.ui.pizza.databinding.FragmentNotificationsBinding; 14 | 15 | public class NotificationsFragment extends Fragment { 16 | 17 | private FragmentNotificationsBinding binding; 18 | 19 | public View onCreateView(@NonNull LayoutInflater inflater, 20 | ViewGroup container, Bundle savedInstanceState) { 21 | NotificationsViewModel notificationsViewModel = 22 | new ViewModelProvider(this).get(NotificationsViewModel.class); 23 | 24 | binding = FragmentNotificationsBinding.inflate(inflater, container, false); 25 | View root = binding.getRoot(); 26 | 27 | final TextView textView = binding.textNotifications; 28 | notificationsViewModel.getText().observe(getViewLifecycleOwner(), textView::setText); 29 | return root; 30 | } 31 | 32 | @Override 33 | public void onDestroyView() { 34 | super.onDestroyView(); 35 | binding = null; 36 | } 37 | } -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/notifications/NotificationsViewModel.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.notifications; 2 | 3 | import androidx.lifecycle.LiveData; 4 | import androidx.lifecycle.MutableLiveData; 5 | import androidx.lifecycle.ViewModel; 6 | 7 | public class NotificationsViewModel extends ViewModel { 8 | 9 | private final MutableLiveData mText; 10 | 11 | public NotificationsViewModel() { 12 | mText = new MutableLiveData<>(); 13 | mText.setValue("This is notifications fragment"); 14 | } 15 | 16 | public LiveData getText() { 17 | return mText; 18 | } 19 | } -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/shopping/ShoppingFragment.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.shopping; 2 | 3 | import android.os.Bundle; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.TextView; 8 | 9 | import androidx.annotation.NonNull; 10 | import androidx.fragment.app.Fragment; 11 | import androidx.lifecycle.ViewModelProvider; 12 | 13 | import android.ui.pizza.databinding.FragmentShoppingBinding; 14 | 15 | public class ShoppingFragment extends Fragment { 16 | 17 | private FragmentShoppingBinding binding; 18 | 19 | public View onCreateView(@NonNull LayoutInflater inflater, 20 | ViewGroup container, Bundle savedInstanceState) { 21 | ShoppingViewModel shoppingViewModel = 22 | new ViewModelProvider(this).get(ShoppingViewModel.class); 23 | 24 | binding = FragmentShoppingBinding.inflate(inflater, container, false); 25 | View root = binding.getRoot(); 26 | 27 | final TextView textView = binding.textDashboard; 28 | shoppingViewModel.getText().observe(getViewLifecycleOwner(), textView::setText); 29 | return root; 30 | } 31 | 32 | @Override 33 | public void onDestroyView() { 34 | super.onDestroyView(); 35 | binding = null; 36 | } 37 | } -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/java/android/ui/pizza/view/shopping/ShoppingViewModel.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza.view.shopping; 2 | 3 | import androidx.lifecycle.LiveData; 4 | import androidx.lifecycle.MutableLiveData; 5 | import androidx.lifecycle.ViewModel; 6 | 7 | public class ShoppingViewModel extends ViewModel { 8 | 9 | private final MutableLiveData mText; 10 | 11 | public ShoppingViewModel() { 12 | mText = new MutableLiveData<>(); 13 | mText.setValue("This is Shopping fragment"); 14 | } 15 | 16 | public LiveData getText() { 17 | return mText; 18 | } 19 | } -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable-v24/arrowleft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/drawable-v24/arrowleft.png -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable-v24/back.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/drawable-v24/back.jpg -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable-v24/cheseburger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/drawable-v24/cheseburger.png -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable-v24/chickenburger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/drawable-v24/chickenburger.png -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable-v24/circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/drawable-v24/circle.png -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable-v24/heart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/drawable-v24/heart.png -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 15 | 18 | 21 | 22 | 23 | 24 | 30 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable-v24/imagebkg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/drawable-v24/imagebkg.jpg -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable-v24/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/drawable-v24/img.png -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable-v24/img_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/drawable-v24/img_1.png -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable-v24/shopping.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/drawable-v24/shopping.png -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable-v24/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/drawable-v24/star.png -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/add_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/add_cart_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/bottom_nav_bar_corner.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/categories_item_background_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/categories_item_background_pressed.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/filter.xml: -------------------------------------------------------------------------------- 1 | 6 | 13 | 20 | 28 | 36 | 37 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/filter_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/ic_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/ic_baseline_add_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/ic_baseline_arrow_forward_ios_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/ic_baseline_fastfood_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/ic_baseline_keyboard_arrow_down_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/ic_baseline_location_on_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/ic_baseline_remove_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/ic_baseline_search_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/ic_baseline_shopping_bag_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/ic_dashboard_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/ic_home_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/ic_notifications_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/item_no_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/pallet_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/pallet_pressed.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/search_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/drawable/tab_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/font/advent_pro.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/font/poppins_medium.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/font/roboto.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/layout/activity_intro.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 20 | 21 | 22 | 28 | 29 | 30 | 31 | 47 | 48 | 49 | 62 | 63 | 64 | 76 | 77 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 22 | 23 | 34 | 35 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/layout/category_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | 23 | 24 | 34 | 35 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/layout/fragment_notifications.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 22 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/layout/fragment_shopping.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 22 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/layout/rating_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 23 | 24 | 32 | 33 | 43 | 44 | 51 | 52 | 59 | 60 | 69 | 70 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/layout/view_pager_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 13 | 14 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/menu/bottom_nav_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 13 | 14 | 18 | 19 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/mipmap-hdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/mipmap-hdpi/ic_launcher.webp -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/mipmap-mdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/mipmap-mdpi/ic_launcher.webp -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/navigation/mobile_navigation.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 16 | 19 | 20 | 21 | 26 | 29 | 32 | 33 | 34 | 39 | 42 | 45 | 46 | 51 | 56 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBB86FC 4 | #FF6200EE 5 | #FF3700B3 6 | #FF03DAC5 7 | #FF018786 8 | #FF000000 9 | #19000000 10 | #FFFFFFFF 11 | #FF9431 12 | #80FFFFFF 13 | #FFFFF1E5 14 | #FF0D0D0D 15 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/values/font_certs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @array/com_google_android_gms_fonts_certs_dev 5 | @array/com_google_android_gms_fonts_certs_prod 6 | 7 | 8 | 9 | MIIEqDCCA5CgAwIBAgIJANWFuGx90071MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAeFw0wODA0MTUyMzM2NTZaFw0zNTA5MDEyMzM2NTZaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBANbOLggKv+IxTdGNs8/TGFy0PTP6DHThvbbR24kT9ixcOd9W+EaBPWW+wPPKQmsHxajtWjmQwWfna8mZuSeJS48LIgAZlKkpFeVyxW0qMBujb8X8ETrWy550NaFtI6t9+u7hZeTfHwqNvacKhp1RbE6dBRGWynwMVX8XW8N1+UjFaq6GCJukT4qmpN2afb8sCjUigq0GuMwYXrFVee74bQgLHWGJwPmvmLHC69EH6kWr22ijx4OKXlSIx2xT1AsSHee70w5iDBiK4aph27yH3TxkXy9V89TDdexAcKk/cVHYNnDBapcavl7y0RiQ4biu8ymM8Ga/nmzhRKya6G0cGw8CAQOjgfwwgfkwHQYDVR0OBBYEFI0cxb6VTEM8YYY6FbBMvAPyT+CyMIHJBgNVHSMEgcEwgb6AFI0cxb6VTEM8YYY6FbBMvAPyT+CyoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJANWFuGx90071MAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBABnTDPEF+3iSP0wNfdIjIz1AlnrPzgAIHVvXxunW7SBrDhEglQZBbKJEk5kT0mtKoOD1JMrSu1xuTKEBahWRbqHsXclaXjoBADb0kkjVEJu/Lh5hgYZnOjvlba8Ld7HCKePCVePoTJBdI4fvugnL8TsgK05aIskyY0hKI9L8KfqfGTl1lzOv2KoWD0KWwtAWPoGChZxmQ+nBli+gwYMzM1vAkP+aayLe0a1EQimlOalO762r0GXO0ks+UeXde2Z4e+8S/pf7pITEI/tP+MxJTALw9QUWEv9lKTk+jkbqxbsh8nfBUapfKqYn0eidpwq2AzVp3juYl7//fKnaPhJD9gs= 10 | 11 | 12 | 13 | 14 | MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEzMzRaFw0zNjAxMDcyMzEzMzRaMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBAKtWLgDYO6IIrgqWbxJOKdoR8qtW0I9Y4sypEwPpt1TTcvZApxsdyxMJZ2JORland2qSGT2y5b+3JKkedxiLDmpHpDsz2WCbdxgxRczfey5YZnTJ4VZbH0xqWVW/8lGmPav5xVwnIiJS6HXk+BVKZF+JcWjAsb/GEuq/eFdpuzSqeYTcfi6idkyugwfYwXFU1+5fZKUaRKYCwkkFQVfcAs1fXA5V+++FGfvjJ/CxURaSxaBvGdGDhfXE28LWuT9ozCl5xw4Yq5OGazvV24mZVSoOO0yZ31j7kYvtwYK6NeADwbSxDdJEqO4k//0zOHKrUiGYXtqw/A0LFFtqoZKFjnkCAQOjgdkwgdYwHQYDVR0OBBYEFMd9jMIhF1Ylmn/Tgt9r45jk14alMIGmBgNVHSMEgZ4wgZuAFMd9jMIhF1Ylmn/Tgt9r45jk14aloXikdjB0MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLR29vZ2xlIEluYy4xEDAOBgNVBAsTB0FuZHJvaWQxEDAOBgNVBAMTB0FuZHJvaWSCCQDC4IdGZEowjTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBAUAA4IBAQBt0lLO74UwLDYKqs6Tm8/yzKkEu116FmH4rkaymUIE0P9KaMftGlMexFlaYjzmB2OxZyl6euNXEsQH8gjwyxCUKRJNexBiGcCEyj6z+a1fuHHvkiaai+KL8W1EyNmgjmyy8AW7P+LLlkR+ho5zEHatRbM/YAnqGcFh5iZBqpknHf1SKMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTbQe3aDQsQcafEQPD+nqActifKZ0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZMcUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3WfMBEmh/9iFBDAaTCK 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/values/preloaded_fonts.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @font/advent_pro 5 | @font/poppins_medium 6 | @font/roboto 7 | 8 | 9 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/values/splash.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Pizza 3 | Home 4 | Shop 5 | Notifications 6 | Find and Get \nYour best Food 7 | 8 | Find the most delicious food \nwith the best quality and free delivery here 9 | Skip 10 | Nevada, US 11 | Order Your Food\nFast and Free 12 | Search 13 | 🍔 14 | Burger 15 | 🍕 16 | SandWich 17 | 🌭 18 | 4.8 19 | Chicken Burger 20 | 200 gr chicken + cheese 21 | Lettuce + tomato 22 | $ 22.oo 23 | $ 25.00 24 | 200 gr meat + lettuce 25 | cheese + onion + tomato 26 | (41 Reviews) 27 | 1 28 | Size 29 | Medium 30 | Energy 31 | 554 KCal 32 | Delivery 33 | 45 min 34 | About 35 | Crispy seasoned chicken breast, topped with mandatory melted cheese and piled onto soft rolls with onion, avocado, lettuce, tomato and garlic mayo \n if(ordered). 36 | Add to Cart 37 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/xml/backup_rules.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 13 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/main/res/xml/data_extraction_rules.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 12 | 13 | 19 | -------------------------------------------------------------------------------- /Pizza-Android/app/src/test/java/android/ui/pizza/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package android.ui.pizza; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /Pizza-Android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | plugins { 3 | id 'com.android.application' version '7.3.1' apply false 4 | id 'com.android.library' version '7.3.1' apply false 5 | } -------------------------------------------------------------------------------- /Pizza-Android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | # AndroidX package structure to make it clearer which packages are bundled with the 15 | # Android operating system, and which are packaged with your app's APK 16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 17 | android.useAndroidX=true 18 | # Enables namespacing of each library's R class so that its R class includes only the 19 | # resources declared in the library itself and none from the library's dependencies, 20 | # thereby reducing the size of the R class for that library 21 | android.nonTransitiveRClass=true -------------------------------------------------------------------------------- /Pizza-Android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/Pizza-Android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Pizza-Android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 12 16:08:39 GMT 2022 2 | distributionBase=GRADLE_USER_HOME 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip 4 | distributionPath=wrapper/dists 5 | zipStorePath=wrapper/dists 6 | zipStoreBase=GRADLE_USER_HOME 7 | -------------------------------------------------------------------------------- /Pizza-Android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /Pizza-Android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | repositories { 3 | gradlePluginPortal() 4 | google() 5 | mavenCentral() 6 | } 7 | } 8 | dependencyResolutionManagement { 9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) 10 | repositories { 11 | google() 12 | mavenCentral() 13 | } 14 | } 15 | rootProject.name = "Pizza" 16 | include ':app' 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Gradison-Food 2 | 3 | A Food Delivery App UI made with both android(java) and flutter. 4 | A Food Delivery App UI made with android(java) and flutter. 5 | ## 6 | ![](screens.png) 7 | -------------------------------------------------------------------------------- /pizza_flutter/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | -------------------------------------------------------------------------------- /pizza_flutter/.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. 5 | 6 | version: 7 | revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 8 | channel: master 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 17 | base_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 18 | - platform: android 19 | create_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 20 | base_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 21 | - platform: ios 22 | create_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 23 | base_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 24 | - platform: linux 25 | create_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 26 | base_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 27 | - platform: macos 28 | create_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 29 | base_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 30 | - platform: web 31 | create_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 32 | base_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 33 | - platform: windows 34 | create_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 35 | base_revision: c4c1b0b0b7e044b42588cbe8fff8ecbc7ba55501 36 | 37 | # User provided section 38 | 39 | # List of Local paths (relative to this file) that should be 40 | # ignored by the migrate tool. 41 | # 42 | # Files that are not part of the templates will be ignored by default. 43 | unmanaged_files: 44 | - 'lib/main.dart' 45 | - 'ios/Runner.xcodeproj/project.pbxproj' 46 | -------------------------------------------------------------------------------- /pizza_flutter/README.md: -------------------------------------------------------------------------------- 1 | # pizza_flutter 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /pizza_flutter/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /pizza_flutter/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 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /pizza_flutter/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 flutter.compileSdkVersion 30 | ndkVersion flutter.ndkVersion 31 | 32 | compileOptions { 33 | sourceCompatibility JavaVersion.VERSION_1_8 34 | targetCompatibility JavaVersion.VERSION_1_8 35 | } 36 | 37 | kotlinOptions { 38 | jvmTarget = '1.8' 39 | } 40 | 41 | sourceSets { 42 | main.java.srcDirs += 'src/main/kotlin' 43 | } 44 | 45 | defaultConfig { 46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 47 | applicationId "android.ui.pizza_flutter" 48 | // You can update the following values to match your application needs. 49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. 50 | minSdkVersion flutter.minSdkVersion 51 | targetSdkVersion flutter.targetSdkVersion 52 | versionCode flutterVersionCode.toInteger() 53 | versionName flutterVersionName 54 | } 55 | 56 | buildTypes { 57 | release { 58 | // TODO: Add your own signing config for the release build. 59 | // Signing with the debug keys for now, so `flutter run --release` works. 60 | signingConfig signingConfigs.debug 61 | } 62 | } 63 | } 64 | 65 | flutter { 66 | source '../..' 67 | } 68 | 69 | dependencies { 70 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 71 | } 72 | -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/main/kotlin/android/ui/pizza_flutter/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package android.ui.pizza_flutter 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /pizza_flutter/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /pizza_flutter/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.7.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.2.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 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 | -------------------------------------------------------------------------------- /pizza_flutter/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /pizza_flutter/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip 6 | -------------------------------------------------------------------------------- /pizza_flutter/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 | -------------------------------------------------------------------------------- /pizza_flutter/assets/icons/back_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/icons/back_icon.png -------------------------------------------------------------------------------- /pizza_flutter/assets/icons/circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/icons/circle.png -------------------------------------------------------------------------------- /pizza_flutter/assets/icons/favorite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/icons/favorite.png -------------------------------------------------------------------------------- /pizza_flutter/assets/icons/frame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/icons/frame.png -------------------------------------------------------------------------------- /pizza_flutter/assets/icons/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/icons/home.png -------------------------------------------------------------------------------- /pizza_flutter/assets/icons/shopping.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/icons/shopping.png -------------------------------------------------------------------------------- /pizza_flutter/assets/icons/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/icons/star.png -------------------------------------------------------------------------------- /pizza_flutter/assets/images/back.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/images/back.jpg -------------------------------------------------------------------------------- /pizza_flutter/assets/images/cheese.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/images/cheese.png -------------------------------------------------------------------------------- /pizza_flutter/assets/images/chicken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/images/chicken.png -------------------------------------------------------------------------------- /pizza_flutter/assets/images/chicken_big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/images/chicken_big.png -------------------------------------------------------------------------------- /pizza_flutter/assets/images/delivery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/images/delivery.png -------------------------------------------------------------------------------- /pizza_flutter/assets/images/imagebg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/images/imagebg.jpg -------------------------------------------------------------------------------- /pizza_flutter/assets/images/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/assets/images/img.png -------------------------------------------------------------------------------- /pizza_flutter/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /pizza_flutter/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 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '11.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 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - path_provider_ios (0.0.1): 4 | - Flutter 5 | 6 | DEPENDENCIES: 7 | - Flutter (from `Flutter`) 8 | - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`) 9 | 10 | EXTERNAL SOURCES: 11 | Flutter: 12 | :path: Flutter 13 | path_provider_ios: 14 | :path: ".symlinks/plugins/path_provider_ios/ios" 15 | 16 | SPEC CHECKSUMS: 17 | Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 18 | path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02 19 | 20 | PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3 21 | 22 | COCOAPODS: 1.11.3 23 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /pizza_flutter/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 | -------------------------------------------------------------------------------- /pizza_flutter/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 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /pizza_flutter/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 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /pizza_flutter/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. -------------------------------------------------------------------------------- /pizza_flutter/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 | -------------------------------------------------------------------------------- /pizza_flutter/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 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Pizza Flutter 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | pizza_flutter 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | CADisableMinimumFrameDurationOnPhone 47 | 48 | UIApplicationSupportsIndirectInputEvents 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /pizza_flutter/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /pizza_flutter/lib/app/app.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | import '/app/ui/intro_screen.dart'; 4 | 5 | class PizzaApp extends StatelessWidget { 6 | const PizzaApp({Key? key}) : super(key: key); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return MaterialApp( 11 | debugShowCheckedModeBanner: false, 12 | title: 'Pizza', 13 | themeMode: ThemeMode.system, 14 | theme: ThemeData.light().copyWith( 15 | textTheme: GoogleFonts.playTextTheme(), 16 | ), 17 | darkTheme: ThemeData.dark().copyWith( 18 | textTheme: GoogleFonts.playTextTheme(), 19 | ), 20 | home: const IntroScreen(), 21 | ); 22 | } 23 | } -------------------------------------------------------------------------------- /pizza_flutter/lib/app/ui/home.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:pizza_flutter/app/ui/fragments/home.fragment.dart'; 3 | import '/core/core.dart'; 4 | 5 | class Home extends StatefulWidget { 6 | const Home({Key? key}) : super(key: key); 7 | 8 | @override 9 | State createState() => _HomeState(); 10 | } 11 | 12 | class _HomeState extends State { 13 | int _selectedIndex = 0; 14 | 15 | final _widgetOptions = [ 16 | const HomeFragment(), 17 | 18 | const SafeArea( 19 | child: Center( 20 | child: Text( 21 | 'Will Implement this feature soon', 22 | style: TextStyle( 23 | color: Colors.black54, 24 | fontSize: 50, 25 | ), 26 | ), 27 | ), 28 | ), 29 | 30 | const SafeArea( 31 | child: Center( 32 | child: Text( 33 | 'Will Implement this feature soon', 34 | style: TextStyle( 35 | color: Colors.black54, 36 | fontSize: 50, 37 | ), 38 | ), 39 | ), 40 | ), 41 | ]; 42 | 43 | void _onItemTapped(int index) { 44 | setState(() { 45 | _selectedIndex = index; 46 | }); 47 | } 48 | 49 | @override 50 | Widget build(BuildContext context) { 51 | return Scaffold( 52 | body: Container( 53 | child: _widgetOptions.elementAt(_selectedIndex), 54 | ), 55 | bottomNavigationBar: Container( 56 | decoration: const BoxDecoration( 57 | borderRadius: BorderRadius.only( 58 | topRight: Radius.circular(30), 59 | topLeft: Radius.circular(30), 60 | ), 61 | boxShadow: [ 62 | BoxShadow( 63 | color: Colors.black38, 64 | spreadRadius: 0, 65 | blurRadius: 10, 66 | ), 67 | ], 68 | ), 69 | child: ClipRRect( 70 | borderRadius: const BorderRadius.only( 71 | topRight: Radius.circular(30), 72 | topLeft: Radius.circular(30), 73 | ), 74 | child: BottomNavigationBar( 75 | backgroundColor: Colors.white, 76 | items: [ 77 | BottomNavigationBarItem( 78 | icon: Image.asset( 79 | AppAssets.kHomeIcon, 80 | width: 35, 81 | height: 35, 82 | ), 83 | label: 'Home', 84 | ), 85 | BottomNavigationBarItem( 86 | icon: Image.asset(AppAssets.kShoppingIcon), 87 | label: 'Shopping', 88 | ), 89 | BottomNavigationBarItem( 90 | icon: Image.asset(AppAssets.kCircleIcon), 91 | label: 'Settings'), 92 | ], 93 | currentIndex: _selectedIndex, 94 | selectedItemColor: AppColors.kPrimary, 95 | onTap: _onItemTapped, 96 | ), 97 | ), 98 | ), 99 | ); 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /pizza_flutter/lib/app/ui/intro_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '/core/core.dart'; 3 | import 'home.dart'; 4 | 5 | class IntroScreen extends StatefulWidget { 6 | const IntroScreen({Key? key}) : super(key: key); 7 | 8 | @override 9 | State createState() => _IntroScreenState(); 10 | } 11 | 12 | class _IntroScreenState extends State { 13 | 14 | final PageController _controller = PageController(); 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return Scaffold( 19 | body: Container( 20 | decoration: BoxDecoration( 21 | image: DecorationImage( 22 | colorFilter: const ColorFilter.mode(Colors.black38, BlendMode.darken), 23 | image: AssetImage( 24 | AppAssets.kBackImage, 25 | ), 26 | fit: BoxFit.fill, 27 | ) 28 | ), 29 | child: Stack( 30 | children: [ 31 | Positioned( 32 | top: AppConstants.sizeConfig(context, 0.88).height, 33 | left: AppConstants.sizeConfig(context, 0.47).width, 34 | child: const Text( 35 | 'Skip', 36 | style: TextStyle( 37 | color: Colors.white54, 38 | fontSize: 15, 39 | ), 40 | ), 41 | ), 42 | const Positioned( 43 | top: 400, 44 | left: 30, 45 | child: Text( 46 | 'Find and Get \nYour best Food', 47 | style: TextStyle( 48 | color: Colors.white, 49 | fontSize: 30, 50 | fontWeight: FontWeight.w500, 51 | ), 52 | ), 53 | ), 54 | const Positioned( 55 | top: 500, 56 | left: 30, 57 | child: Text( 58 | 'Find the most delicious food\nwith the best quality and delivery here', 59 | style: TextStyle( 60 | color: Colors.white, 61 | fontSize: 15, 62 | fontWeight: FontWeight.w500, 63 | ), 64 | ), 65 | ), 66 | ], 67 | ), 68 | ), 69 | floatingActionButton: Padding( 70 | padding: const EdgeInsets.only(bottom: 80.0), 71 | child: FloatingActionButton( 72 | backgroundColor: AppColors.kPrimary, 73 | onPressed: () { 74 | Navigator.push( 75 | context, 76 | MaterialPageRoute(builder: (context) => const Home())); 77 | }, 78 | child: const Icon(Icons.arrow_forward_ios, color: Colors.white,), 79 | ), 80 | ), 81 | 82 | floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat, 83 | ); 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /pizza_flutter/lib/app/widgets/categories.card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '../../core/core.dart'; 4 | 5 | 6 | class CategoryCard extends StatelessWidget { 7 | final Color bgColor; 8 | final String asset; 9 | final String title; 10 | final Color textColor; 11 | 12 | const CategoryCard({ 13 | Key? key, 14 | required this.bgColor, 15 | required this.asset, 16 | required this.title, 17 | required this.textColor 18 | }) 19 | : super(key: key); 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return SizedBox( 24 | width: AppConstants.sizeConfig(context, 0.35).width, 25 | height: AppConstants.sizeConfig(context, 0.05).height, 26 | child: Card( 27 | color: bgColor, 28 | shape: RoundedRectangleBorder( 29 | borderRadius: BorderRadius.circular(10), 30 | ), 31 | child: OutlinedButton( 32 | onPressed: () {}, 33 | style: OutlinedButton.styleFrom( 34 | side: const BorderSide(color: AppColors.kPrimary), 35 | ), 36 | child: Row( 37 | children: [ 38 | Text( 39 | asset, 40 | style: const TextStyle( 41 | fontSize: 20, 42 | ), 43 | ), 44 | Text( 45 | title, 46 | style: TextStyle( 47 | fontSize: 20, 48 | color: textColor, 49 | ), 50 | ), 51 | ], 52 | ), 53 | ), 54 | ), 55 | ); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /pizza_flutter/lib/app/widgets/grid.view.card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '../../core/core.dart'; 4 | 5 | class GridViewCard extends StatelessWidget { 6 | final String image; 7 | final String title; 8 | final String text; 9 | final String amount; 10 | const GridViewCard({ 11 | super.key, 12 | required this.image, 13 | required this.title, 14 | required this.text, 15 | required this.amount, 16 | }); 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return Card( 21 | shape: RoundedRectangleBorder( 22 | borderRadius: BorderRadius.circular(10), 23 | ), 24 | child: SizedBox( 25 | width: 200, 26 | child: Stack( 27 | children: [ 28 | Positioned( 29 | child: Row( 30 | children: const [ 31 | Icon( 32 | Icons.star, 33 | color: Colors.amber, 34 | ), 35 | Text( 36 | '4.8', 37 | style: TextStyle( 38 | fontSize: 18, 39 | ), 40 | ), 41 | ], 42 | ), 43 | ), 44 | Positioned( 45 | top: AppConstants.sizeConfig(context, 0.03).height, 46 | left: AppConstants.sizeConfig(context, 0.12).width, 47 | child: Image.asset(image), 48 | ), 49 | Positioned( 50 | top: AppConstants.sizeConfig(context, 0.109).height, 51 | left: AppConstants.sizeConfig(context, 0.05).width, 52 | child: Column( 53 | children: [ 54 | Text( 55 | title, 56 | style: const TextStyle( 57 | fontSize: 20, 58 | ), 59 | ), 60 | Text( 61 | text, 62 | style: const TextStyle( 63 | fontSize: 13, 64 | ), 65 | ), 66 | ], 67 | ), 68 | ), 69 | Positioned( 70 | top: AppConstants.sizeConfig(context, 0.17).height, 71 | left: AppConstants.sizeConfig(context, 0.03).width, 72 | child: Text( 73 | '\$ $amount', 74 | style: const TextStyle( 75 | color: AppColors.kPrimary, 76 | fontWeight: FontWeight.bold, 77 | fontSize: 20, 78 | ), 79 | ), 80 | ), 81 | Positioned( 82 | top: AppConstants.sizeConfig(context, 0.17).height, 83 | left: AppConstants.sizeConfig(context, 0.35).width, 84 | child: const CircleAvatar( 85 | radius: 15, 86 | backgroundColor: AppColors.kPrimary, 87 | child: Icon( 88 | Icons.add, 89 | color: Colors.white, 90 | ), 91 | ), 92 | ), 93 | ], 94 | ), 95 | ), 96 | ); 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /pizza_flutter/lib/core/app.assets.dart: -------------------------------------------------------------------------------- 1 | 2 | class AppAssets { 3 | // Images 4 | static String kDeliveryImage = 'assets/images/delivery.png'; 5 | static String kBackImage = "assets/images/back.jpg"; 6 | static String kImageBkg = "assets/images/imagebg.jpg"; 7 | static String kImg = "assets/images/img.png"; 8 | static String kCheeseBurger = "assets/images/cheese.png"; 9 | static String kChickenBurger = "assets/images/chicken.png"; 10 | static String kChickenLarge = "assets/images/chicken_big.png"; 11 | 12 | // Icons 13 | static String kStarIcon = "assets/icons/star.png"; 14 | static String kHomeIcon = "assets/icons/home.png"; 15 | static String kShoppingIcon = "assets/icons/shopping.png"; 16 | static String kCircleIcon = "assets/icons/circle.png"; 17 | static String kFilterIcon = 'assets/icons/frame.png'; 18 | static String kBackArrowIcon = 'assets/icons/back_icon.png'; 19 | static String kFavouriteIcon = 'assets/icons/favorite.png'; 20 | } -------------------------------------------------------------------------------- /pizza_flutter/lib/core/app.colors.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class AppColors { 4 | 5 | static const kPrimary = Color(0xFFFF9431); 6 | static const kFoodbg = Color(0xFFFFF1E5); 7 | } -------------------------------------------------------------------------------- /pizza_flutter/lib/core/app.text.styles.dart: -------------------------------------------------------------------------------- 1 | 2 | class AppTextStyles{} -------------------------------------------------------------------------------- /pizza_flutter/lib/core/app.theme.dart: -------------------------------------------------------------------------------- 1 | 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | class AppTheme { 6 | 7 | static final themeData = ThemeData(); 8 | } -------------------------------------------------------------------------------- /pizza_flutter/lib/core/constants.dart: -------------------------------------------------------------------------------- 1 | 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | class AppConstants { 6 | 7 | static Size sizeConfig(BuildContext context, double size){ 8 | var kSpacingX = MediaQuery.of(context).size; 9 | return kSpacingX * size; 10 | } 11 | } -------------------------------------------------------------------------------- /pizza_flutter/lib/core/core.dart: -------------------------------------------------------------------------------- 1 | export 'app.assets.dart'; 2 | export 'app.colors.dart'; 3 | export 'app.text.styles.dart'; 4 | export 'app.theme.dart'; 5 | export 'constants.dart'; -------------------------------------------------------------------------------- /pizza_flutter/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'app/app.dart'; 3 | 4 | void main() { 5 | 6 | ErrorWidget.builder = (FlutterErrorDetails details) => Material( 7 | color: Colors.green.shade200, 8 | child: Center( 9 | child: Text( 10 | details.exception.toString(), 11 | style: const TextStyle( 12 | color: Colors.white, 13 | fontWeight: FontWeight.bold, 14 | fontSize: 20, 15 | ), 16 | ), 17 | ), 18 | ); 19 | 20 | WidgetsFlutterBinding.ensureInitialized(); 21 | runApp(const PizzaApp()); 22 | 23 | } -------------------------------------------------------------------------------- /pizza_flutter/lib/utils/demo_page_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class DemoPageView extends StatefulWidget { 4 | const DemoPageView({Key? key}) : super(key: key); 5 | 6 | @override 7 | State createState() => _DemoPageViewState(); 8 | } 9 | 10 | class _DemoPageViewState extends State { 11 | 12 | final PageController _controller = PageController(); 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return Scaffold( 17 | body: PageView( 18 | scrollDirection: Axis.horizontal, 19 | controller: _controller, 20 | children: [ 21 | Container(color: Colors.redAccent,), 22 | Container(color: Colors.greenAccent,), 23 | Container(color: Colors.black38,), 24 | Container(color: Colors.amberAccent,), 25 | ], 26 | ), 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /pizza_flutter/linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /pizza_flutter/linux/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.10) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | 12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...), 13 | # which isn't available in 3.10. 14 | function(list_prepend LIST_NAME PREFIX) 15 | set(NEW_LIST "") 16 | foreach(element ${${LIST_NAME}}) 17 | list(APPEND NEW_LIST "${PREFIX}${element}") 18 | endforeach(element) 19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) 20 | endfunction() 21 | 22 | # === Flutter Library === 23 | # System-level dependencies. 24 | find_package(PkgConfig REQUIRED) 25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) 27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) 28 | 29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") 30 | 31 | # Published to parent scope for install step. 32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) 36 | 37 | list(APPEND FLUTTER_LIBRARY_HEADERS 38 | "fl_basic_message_channel.h" 39 | "fl_binary_codec.h" 40 | "fl_binary_messenger.h" 41 | "fl_dart_project.h" 42 | "fl_engine.h" 43 | "fl_json_message_codec.h" 44 | "fl_json_method_codec.h" 45 | "fl_message_codec.h" 46 | "fl_method_call.h" 47 | "fl_method_channel.h" 48 | "fl_method_codec.h" 49 | "fl_method_response.h" 50 | "fl_plugin_registrar.h" 51 | "fl_plugin_registry.h" 52 | "fl_standard_message_codec.h" 53 | "fl_standard_method_codec.h" 54 | "fl_string_codec.h" 55 | "fl_value.h" 56 | "fl_view.h" 57 | "flutter_linux.h" 58 | ) 59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") 60 | add_library(flutter INTERFACE) 61 | target_include_directories(flutter INTERFACE 62 | "${EPHEMERAL_DIR}" 63 | ) 64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") 65 | target_link_libraries(flutter INTERFACE 66 | PkgConfig::GTK 67 | PkgConfig::GLIB 68 | PkgConfig::GIO 69 | ) 70 | add_dependencies(flutter flutter_assemble) 71 | 72 | # === Flutter tool backend === 73 | # _phony_ is a non-existent file to force this command to run every time, 74 | # since currently there's no way to get a full input/output list from the 75 | # flutter tool. 76 | add_custom_command( 77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_ 79 | COMMAND ${CMAKE_COMMAND} -E env 80 | ${FLUTTER_TOOL_ENVIRONMENT} 81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" 82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} 83 | VERBATIM 84 | ) 85 | add_custom_target(flutter_assemble DEPENDS 86 | "${FLUTTER_LIBRARY}" 87 | ${FLUTTER_LIBRARY_HEADERS} 88 | ) 89 | -------------------------------------------------------------------------------- /pizza_flutter/linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | 10 | void fl_register_plugins(FlPluginRegistry* registry) { 11 | } 12 | -------------------------------------------------------------------------------- /pizza_flutter/linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void fl_register_plugins(FlPluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /pizza_flutter/linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | ) 7 | 8 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 9 | ) 10 | 11 | set(PLUGIN_BUNDLED_LIBRARIES) 12 | 13 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 14 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 15 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 16 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 18 | endforeach(plugin) 19 | 20 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 21 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 23 | endforeach(ffi_plugin) 24 | -------------------------------------------------------------------------------- /pizza_flutter/linux/main.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | int main(int argc, char** argv) { 4 | g_autoptr(MyApplication) app = my_application_new(); 5 | return g_application_run(G_APPLICATION(app), argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /pizza_flutter/linux/my_application.h: -------------------------------------------------------------------------------- 1 | #ifndef FLUTTER_MY_APPLICATION_H_ 2 | #define FLUTTER_MY_APPLICATION_H_ 3 | 4 | #include 5 | 6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, 7 | GtkApplication) 8 | 9 | /** 10 | * my_application_new: 11 | * 12 | * Creates a new Flutter-based application. 13 | * 14 | * Returns: a new #MyApplication. 15 | */ 16 | MyApplication* my_application_new(); 17 | 18 | #endif // FLUTTER_MY_APPLICATION_H_ 19 | -------------------------------------------------------------------------------- /pizza_flutter/macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import path_provider_macos 9 | 10 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 11 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) 12 | } 13 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Podfile: -------------------------------------------------------------------------------- 1 | platform :osx, '10.13' 2 | 3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 5 | 6 | project 'Runner', { 7 | 'Debug' => :debug, 8 | 'Profile' => :release, 9 | 'Release' => :release, 10 | } 11 | 12 | def flutter_root 13 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) 14 | unless File.exist?(generated_xcode_build_settings_path) 15 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" 16 | end 17 | 18 | File.foreach(generated_xcode_build_settings_path) do |line| 19 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 20 | return matches[1].strip if matches 21 | end 22 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" 23 | end 24 | 25 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 26 | 27 | flutter_macos_podfile_setup 28 | 29 | target 'Runner' do 30 | use_frameworks! 31 | use_modular_headers! 32 | 33 | flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) 34 | end 35 | 36 | post_install do |installer| 37 | installer.pods_project.targets.each do |target| 38 | flutter_additional_macos_build_settings(target) 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "app_icon_16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "app_icon_32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "app_icon_32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "app_icon_64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "app_icon_128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "app_icon_256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "app_icon_256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "app_icon_512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "app_icon_512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "app_icon_1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = pizza_flutter 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = android.ui.pizzaFlutter 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2022 android.ui. All rights reserved. 15 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController.init() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /pizza_flutter/macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /pizza_flutter/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 in the flutter_test package. 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:pizza_flutter/app/app.dart'; 11 | 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(const PizzaApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /pizza_flutter/web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/web/favicon.png -------------------------------------------------------------------------------- /pizza_flutter/web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/web/icons/Icon-192.png -------------------------------------------------------------------------------- /pizza_flutter/web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/web/icons/Icon-512.png -------------------------------------------------------------------------------- /pizza_flutter/web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /pizza_flutter/web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /pizza_flutter/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | pizza_flutter 33 | 34 | 35 | 39 | 40 | 41 | 42 | 43 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /pizza_flutter/web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pizza_flutter", 3 | "short_name": "pizza_flutter", 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 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /pizza_flutter/windows/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral/ 2 | 3 | # Visual Studio user-specific files. 4 | *.suo 5 | *.user 6 | *.userosscache 7 | *.sln.docstates 8 | 9 | # Visual Studio build-related files. 10 | x64/ 11 | x86/ 12 | 13 | # Visual Studio cache files 14 | # files ending in .cache can be ignored 15 | *.[Cc]ache 16 | # but keep track of directories ending in .cache 17 | !*.[Cc]ache/ 18 | -------------------------------------------------------------------------------- /pizza_flutter/windows/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.14) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") 12 | 13 | # === Flutter Library === 14 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") 15 | 16 | # Published to parent scope for install step. 17 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 18 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 19 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 20 | set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) 21 | 22 | list(APPEND FLUTTER_LIBRARY_HEADERS 23 | "flutter_export.h" 24 | "flutter_windows.h" 25 | "flutter_messenger.h" 26 | "flutter_plugin_registrar.h" 27 | "flutter_texture_registrar.h" 28 | ) 29 | list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") 30 | add_library(flutter INTERFACE) 31 | target_include_directories(flutter INTERFACE 32 | "${EPHEMERAL_DIR}" 33 | ) 34 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") 35 | add_dependencies(flutter flutter_assemble) 36 | 37 | # === Wrapper === 38 | list(APPEND CPP_WRAPPER_SOURCES_CORE 39 | "core_implementations.cc" 40 | "standard_codec.cc" 41 | ) 42 | list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") 43 | list(APPEND CPP_WRAPPER_SOURCES_PLUGIN 44 | "plugin_registrar.cc" 45 | ) 46 | list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") 47 | list(APPEND CPP_WRAPPER_SOURCES_APP 48 | "flutter_engine.cc" 49 | "flutter_view_controller.cc" 50 | ) 51 | list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") 52 | 53 | # Wrapper sources needed for a plugin. 54 | add_library(flutter_wrapper_plugin STATIC 55 | ${CPP_WRAPPER_SOURCES_CORE} 56 | ${CPP_WRAPPER_SOURCES_PLUGIN} 57 | ) 58 | apply_standard_settings(flutter_wrapper_plugin) 59 | set_target_properties(flutter_wrapper_plugin PROPERTIES 60 | POSITION_INDEPENDENT_CODE ON) 61 | set_target_properties(flutter_wrapper_plugin PROPERTIES 62 | CXX_VISIBILITY_PRESET hidden) 63 | target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) 64 | target_include_directories(flutter_wrapper_plugin PUBLIC 65 | "${WRAPPER_ROOT}/include" 66 | ) 67 | add_dependencies(flutter_wrapper_plugin flutter_assemble) 68 | 69 | # Wrapper sources needed for the runner. 70 | add_library(flutter_wrapper_app STATIC 71 | ${CPP_WRAPPER_SOURCES_CORE} 72 | ${CPP_WRAPPER_SOURCES_APP} 73 | ) 74 | apply_standard_settings(flutter_wrapper_app) 75 | target_link_libraries(flutter_wrapper_app PUBLIC flutter) 76 | target_include_directories(flutter_wrapper_app PUBLIC 77 | "${WRAPPER_ROOT}/include" 78 | ) 79 | add_dependencies(flutter_wrapper_app flutter_assemble) 80 | 81 | # === Flutter tool backend === 82 | # _phony_ is a non-existent file to force this command to run every time, 83 | # since currently there's no way to get a full input/output list from the 84 | # flutter tool. 85 | set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") 86 | set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) 87 | add_custom_command( 88 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 89 | ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} 90 | ${CPP_WRAPPER_SOURCES_APP} 91 | ${PHONY_OUTPUT} 92 | COMMAND ${CMAKE_COMMAND} -E env 93 | ${FLUTTER_TOOL_ENVIRONMENT} 94 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" 95 | windows-x64 $ 96 | VERBATIM 97 | ) 98 | add_custom_target(flutter_assemble DEPENDS 99 | "${FLUTTER_LIBRARY}" 100 | ${FLUTTER_LIBRARY_HEADERS} 101 | ${CPP_WRAPPER_SOURCES_CORE} 102 | ${CPP_WRAPPER_SOURCES_PLUGIN} 103 | ${CPP_WRAPPER_SOURCES_APP} 104 | ) 105 | -------------------------------------------------------------------------------- /pizza_flutter/windows/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | 10 | void RegisterPlugins(flutter::PluginRegistry* registry) { 11 | } 12 | -------------------------------------------------------------------------------- /pizza_flutter/windows/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void RegisterPlugins(flutter::PluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /pizza_flutter/windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | ) 7 | 8 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 9 | ) 10 | 11 | set(PLUGIN_BUNDLED_LIBRARIES) 12 | 13 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 14 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 15 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 16 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 18 | endforeach(plugin) 19 | 20 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 21 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) 22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 23 | endforeach(ffi_plugin) 24 | -------------------------------------------------------------------------------- /pizza_flutter/windows/runner/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | project(runner LANGUAGES CXX) 3 | 4 | # Define the application target. To change its name, change BINARY_NAME in the 5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer 6 | # work. 7 | # 8 | # Any new source files that you add to the application should be added here. 9 | add_executable(${BINARY_NAME} WIN32 10 | "flutter_window.cpp" 11 | "main.cpp" 12 | "utils.cpp" 13 | "win32_window.cpp" 14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 15 | "Runner.rc" 16 | "runner.exe.manifest" 17 | ) 18 | 19 | # Apply the standard set of build settings. This can be removed for applications 20 | # that need different build settings. 21 | apply_standard_settings(${BINARY_NAME}) 22 | 23 | # Add preprocessor definitions for the build version. 24 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") 25 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") 26 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") 27 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") 28 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") 29 | 30 | # Disable Windows macros that collide with C++ standard library functions. 31 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") 32 | 33 | # Add dependency libraries and include directories. Add any application-specific 34 | # dependencies here. 35 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) 36 | target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") 37 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") 38 | 39 | # Run the Flutter tool portions of the build. This must not be removed. 40 | add_dependencies(${BINARY_NAME} flutter_assemble) 41 | -------------------------------------------------------------------------------- /pizza_flutter/windows/runner/Runner.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #pragma code_page(65001) 4 | #include "resource.h" 5 | 6 | #define APSTUDIO_READONLY_SYMBOLS 7 | ///////////////////////////////////////////////////////////////////////////// 8 | // 9 | // Generated from the TEXTINCLUDE 2 resource. 10 | // 11 | #include "winres.h" 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | #undef APSTUDIO_READONLY_SYMBOLS 15 | 16 | ///////////////////////////////////////////////////////////////////////////// 17 | // English (United States) resources 18 | 19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | 22 | #ifdef APSTUDIO_INVOKED 23 | ///////////////////////////////////////////////////////////////////////////// 24 | // 25 | // TEXTINCLUDE 26 | // 27 | 28 | 1 TEXTINCLUDE 29 | BEGIN 30 | "resource.h\0" 31 | END 32 | 33 | 2 TEXTINCLUDE 34 | BEGIN 35 | "#include ""winres.h""\r\n" 36 | "\0" 37 | END 38 | 39 | 3 TEXTINCLUDE 40 | BEGIN 41 | "\r\n" 42 | "\0" 43 | END 44 | 45 | #endif // APSTUDIO_INVOKED 46 | 47 | 48 | ///////////////////////////////////////////////////////////////////////////// 49 | // 50 | // Icon 51 | // 52 | 53 | // Icon with lowest ID value placed first to ensure application icon 54 | // remains consistent on all systems. 55 | IDI_APP_ICON ICON "resources\\app_icon.ico" 56 | 57 | 58 | ///////////////////////////////////////////////////////////////////////////// 59 | // 60 | // Version 61 | // 62 | 63 | #if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) 64 | #define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD 65 | #else 66 | #define VERSION_AS_NUMBER 1,0,0,0 67 | #endif 68 | 69 | #if defined(FLUTTER_VERSION) 70 | #define VERSION_AS_STRING FLUTTER_VERSION 71 | #else 72 | #define VERSION_AS_STRING "1.0.0" 73 | #endif 74 | 75 | VS_VERSION_INFO VERSIONINFO 76 | FILEVERSION VERSION_AS_NUMBER 77 | PRODUCTVERSION VERSION_AS_NUMBER 78 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 79 | #ifdef _DEBUG 80 | FILEFLAGS VS_FF_DEBUG 81 | #else 82 | FILEFLAGS 0x0L 83 | #endif 84 | FILEOS VOS__WINDOWS32 85 | FILETYPE VFT_APP 86 | FILESUBTYPE 0x0L 87 | BEGIN 88 | BLOCK "StringFileInfo" 89 | BEGIN 90 | BLOCK "040904e4" 91 | BEGIN 92 | VALUE "CompanyName", "android.ui" "\0" 93 | VALUE "FileDescription", "pizza_flutter" "\0" 94 | VALUE "FileVersion", VERSION_AS_STRING "\0" 95 | VALUE "InternalName", "pizza_flutter" "\0" 96 | VALUE "LegalCopyright", "Copyright (C) 2022 android.ui. All rights reserved." "\0" 97 | VALUE "OriginalFilename", "pizza_flutter.exe" "\0" 98 | VALUE "ProductName", "pizza_flutter" "\0" 99 | VALUE "ProductVersion", VERSION_AS_STRING "\0" 100 | END 101 | END 102 | BLOCK "VarFileInfo" 103 | BEGIN 104 | VALUE "Translation", 0x409, 1252 105 | END 106 | END 107 | 108 | #endif // English (United States) resources 109 | ///////////////////////////////////////////////////////////////////////////// 110 | 111 | 112 | 113 | #ifndef APSTUDIO_INVOKED 114 | ///////////////////////////////////////////////////////////////////////////// 115 | // 116 | // Generated from the TEXTINCLUDE 3 resource. 117 | // 118 | 119 | 120 | ///////////////////////////////////////////////////////////////////////////// 121 | #endif // not APSTUDIO_INVOKED 122 | -------------------------------------------------------------------------------- /pizza_flutter/windows/runner/flutter_window.cpp: -------------------------------------------------------------------------------- 1 | #include "flutter_window.h" 2 | 3 | #include 4 | 5 | #include "flutter/generated_plugin_registrant.h" 6 | 7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project) 8 | : project_(project) {} 9 | 10 | FlutterWindow::~FlutterWindow() {} 11 | 12 | bool FlutterWindow::OnCreate() { 13 | if (!Win32Window::OnCreate()) { 14 | return false; 15 | } 16 | 17 | RECT frame = GetClientArea(); 18 | 19 | // The size here must match the window dimensions to avoid unnecessary surface 20 | // creation / destruction in the startup path. 21 | flutter_controller_ = std::make_unique( 22 | frame.right - frame.left, frame.bottom - frame.top, project_); 23 | // Ensure that basic setup of the controller was successful. 24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) { 25 | return false; 26 | } 27 | RegisterPlugins(flutter_controller_->engine()); 28 | SetChildContent(flutter_controller_->view()->GetNativeWindow()); 29 | 30 | flutter_controller_->engine()->SetNextFrameCallback([&]() { 31 | this->Show(); 32 | }); 33 | 34 | return true; 35 | } 36 | 37 | void FlutterWindow::OnDestroy() { 38 | if (flutter_controller_) { 39 | flutter_controller_ = nullptr; 40 | } 41 | 42 | Win32Window::OnDestroy(); 43 | } 44 | 45 | LRESULT 46 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, 47 | WPARAM const wparam, 48 | LPARAM const lparam) noexcept { 49 | // Give Flutter, including plugins, an opportunity to handle window messages. 50 | if (flutter_controller_) { 51 | std::optional result = 52 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, 53 | lparam); 54 | if (result) { 55 | return *result; 56 | } 57 | } 58 | 59 | switch (message) { 60 | case WM_FONTCHANGE: 61 | flutter_controller_->engine()->ReloadSystemFonts(); 62 | break; 63 | } 64 | 65 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); 66 | } 67 | -------------------------------------------------------------------------------- /pizza_flutter/windows/runner/flutter_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_FLUTTER_WINDOW_H_ 2 | #define RUNNER_FLUTTER_WINDOW_H_ 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | #include "win32_window.h" 10 | 11 | // A window that does nothing but host a Flutter view. 12 | class FlutterWindow : public Win32Window { 13 | public: 14 | // Creates a new FlutterWindow hosting a Flutter view running |project|. 15 | explicit FlutterWindow(const flutter::DartProject& project); 16 | virtual ~FlutterWindow(); 17 | 18 | protected: 19 | // Win32Window: 20 | bool OnCreate() override; 21 | void OnDestroy() override; 22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, 23 | LPARAM const lparam) noexcept override; 24 | 25 | private: 26 | // The project to run. 27 | flutter::DartProject project_; 28 | 29 | // The Flutter instance hosted by this window. 30 | std::unique_ptr flutter_controller_; 31 | }; 32 | 33 | #endif // RUNNER_FLUTTER_WINDOW_H_ 34 | -------------------------------------------------------------------------------- /pizza_flutter/windows/runner/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "flutter_window.h" 6 | #include "utils.h" 7 | 8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, 9 | _In_ wchar_t *command_line, _In_ int show_command) { 10 | // Attach to console when present (e.g., 'flutter run') or create a 11 | // new console when running with a debugger. 12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { 13 | CreateAndAttachConsole(); 14 | } 15 | 16 | // Initialize COM, so that it is available for use in the library and/or 17 | // plugins. 18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); 19 | 20 | flutter::DartProject project(L"data"); 21 | 22 | std::vector command_line_arguments = 23 | GetCommandLineArguments(); 24 | 25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); 26 | 27 | FlutterWindow window(project); 28 | Win32Window::Point origin(10, 10); 29 | Win32Window::Size size(1280, 720); 30 | if (!window.Create(L"pizza_flutter", origin, size)) { 31 | return EXIT_FAILURE; 32 | } 33 | window.SetQuitOnClose(true); 34 | 35 | ::MSG msg; 36 | while (::GetMessage(&msg, nullptr, 0, 0)) { 37 | ::TranslateMessage(&msg); 38 | ::DispatchMessage(&msg); 39 | } 40 | 41 | ::CoUninitialize(); 42 | return EXIT_SUCCESS; 43 | } 44 | -------------------------------------------------------------------------------- /pizza_flutter/windows/runner/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Runner.rc 4 | // 5 | #define IDI_APP_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /pizza_flutter/windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/pizza_flutter/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /pizza_flutter/windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PerMonitorV2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /pizza_flutter/windows/runner/utils.cpp: -------------------------------------------------------------------------------- 1 | #include "utils.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | void CreateAndAttachConsole() { 11 | if (::AllocConsole()) { 12 | FILE *unused; 13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) { 14 | _dup2(_fileno(stdout), 1); 15 | } 16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) { 17 | _dup2(_fileno(stdout), 2); 18 | } 19 | std::ios::sync_with_stdio(); 20 | FlutterDesktopResyncOutputStreams(); 21 | } 22 | } 23 | 24 | std::vector GetCommandLineArguments() { 25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. 26 | int argc; 27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); 28 | if (argv == nullptr) { 29 | return std::vector(); 30 | } 31 | 32 | std::vector command_line_arguments; 33 | 34 | // Skip the first argument as it's the binary name. 35 | for (int i = 1; i < argc; i++) { 36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i])); 37 | } 38 | 39 | ::LocalFree(argv); 40 | 41 | return command_line_arguments; 42 | } 43 | 44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) { 45 | if (utf16_string == nullptr) { 46 | return std::string(); 47 | } 48 | int target_length = ::WideCharToMultiByte( 49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 50 | -1, nullptr, 0, nullptr, nullptr); 51 | std::string utf8_string; 52 | if (target_length == 0 || target_length > utf8_string.max_size()) { 53 | return utf8_string; 54 | } 55 | utf8_string.resize(target_length); 56 | int converted_length = ::WideCharToMultiByte( 57 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 58 | -1, utf8_string.data(), 59 | target_length, nullptr, nullptr); 60 | if (converted_length == 0) { 61 | return std::string(); 62 | } 63 | return utf8_string; 64 | } 65 | -------------------------------------------------------------------------------- /pizza_flutter/windows/runner/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_UTILS_H_ 2 | #define RUNNER_UTILS_H_ 3 | 4 | #include 5 | #include 6 | 7 | // Creates a console for the process, and redirects stdout and stderr to 8 | // it for both the runner and the Flutter library. 9 | void CreateAndAttachConsole(); 10 | 11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string 12 | // encoded in UTF-8. Returns an empty std::string on failure. 13 | std::string Utf8FromUtf16(const wchar_t* utf16_string); 14 | 15 | // Gets the command line arguments passed in as a std::vector, 16 | // encoded in UTF-8. Returns an empty std::vector on failure. 17 | std::vector GetCommandLineArguments(); 18 | 19 | #endif // RUNNER_UTILS_H_ 20 | -------------------------------------------------------------------------------- /pizza_flutter/windows/runner/win32_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_WIN32_WINDOW_H_ 2 | #define RUNNER_WIN32_WINDOW_H_ 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | // A class abstraction for a high DPI-aware Win32 Window. Intended to be 11 | // inherited from by classes that wish to specialize with custom 12 | // rendering and input handling 13 | class Win32Window { 14 | public: 15 | struct Point { 16 | unsigned int x; 17 | unsigned int y; 18 | Point(unsigned int x, unsigned int y) : x(x), y(y) {} 19 | }; 20 | 21 | struct Size { 22 | unsigned int width; 23 | unsigned int height; 24 | Size(unsigned int width, unsigned int height) 25 | : width(width), height(height) {} 26 | }; 27 | 28 | Win32Window(); 29 | virtual ~Win32Window(); 30 | 31 | // Creates a win32 window with |title| that is positioned and sized using 32 | // |origin| and |size|. New windows are created on the default monitor. Window 33 | // sizes are specified to the OS in physical pixels, hence to ensure a 34 | // consistent size this function will scale the inputted width and height as 35 | // as appropriate for the default monitor. The window is invisible until 36 | // |Show| is called. Returns true if the window was created successfully. 37 | bool Create(const std::wstring& title, const Point& origin, const Size& size); 38 | 39 | // Show the current window. Returns true if the window was successfully shown. 40 | bool Show(); 41 | 42 | // Release OS resources associated with window. 43 | void Destroy(); 44 | 45 | // Inserts |content| into the window tree. 46 | void SetChildContent(HWND content); 47 | 48 | // Returns the backing Window handle to enable clients to set icon and other 49 | // window properties. Returns nullptr if the window has been destroyed. 50 | HWND GetHandle(); 51 | 52 | // If true, closing this window will quit the application. 53 | void SetQuitOnClose(bool quit_on_close); 54 | 55 | // Return a RECT representing the bounds of the current client area. 56 | RECT GetClientArea(); 57 | 58 | protected: 59 | // Processes and route salient window messages for mouse handling, 60 | // size change and DPI. Delegates handling of these to member overloads that 61 | // inheriting classes can handle. 62 | virtual LRESULT MessageHandler(HWND window, 63 | UINT const message, 64 | WPARAM const wparam, 65 | LPARAM const lparam) noexcept; 66 | 67 | // Called when CreateAndShow is called, allowing subclass window-related 68 | // setup. Subclasses should return false if setup fails. 69 | virtual bool OnCreate(); 70 | 71 | // Called when Destroy is called. 72 | virtual void OnDestroy(); 73 | 74 | private: 75 | friend class WindowClassRegistrar; 76 | 77 | // OS callback called by message pump. Handles the WM_NCCREATE message which 78 | // is passed when the non-client area is being created and enables automatic 79 | // non-client DPI scaling so that the non-client area automatically 80 | // responsponds to changes in DPI. All other messages are handled by 81 | // MessageHandler. 82 | static LRESULT CALLBACK WndProc(HWND const window, 83 | UINT const message, 84 | WPARAM const wparam, 85 | LPARAM const lparam) noexcept; 86 | 87 | // Retrieves a class instance pointer for |window| 88 | static Win32Window* GetThisFromHandle(HWND const window) noexcept; 89 | 90 | // Update the window frame's theme to match the system theme. 91 | static void UpdateTheme(HWND const window); 92 | 93 | bool quit_on_close_ = false; 94 | 95 | // window handle for top level window. 96 | HWND window_handle_ = nullptr; 97 | 98 | // window handle for hosted content. 99 | HWND child_content_ = nullptr; 100 | }; 101 | 102 | #endif // RUNNER_WIN32_WINDOW_H_ 103 | -------------------------------------------------------------------------------- /screens.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevin2-cyber/Gradison/cf27597233ac60bd9ff8ef74a75d56f9dfa39cca/screens.png --------------------------------------------------------------------------------