├── hello_world ├── android │ ├── gradle.properties │ ├── app │ │ ├── src │ │ │ └── main │ │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── helloworld │ │ │ │ │ └── MainActivity.java │ │ │ │ └── AndroidManifest.xml │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ └── build.gradle ├── lib │ ├── DAO │ │ ├── DAO.dart │ │ ├── IngredientsListDao.dart │ │ ├── UserDao.dart │ │ ├── RecipeDao.dart │ │ ├── AdviceDao.dart │ │ ├── FoodDao.dart │ │ └── FavoritesDao.dart │ ├── assets │ │ ├── logo.png │ │ ├── foods │ │ │ ├── su.png │ │ │ ├── elma.png │ │ │ ├── muz.png │ │ │ ├── sut.png │ │ │ ├── tuz.png │ │ │ ├── armut.png │ │ │ ├── badem.png │ │ │ ├── bezelye.png │ │ │ ├── bulgur.png │ │ │ ├── ceviz.png │ │ │ ├── cilek.png │ │ │ ├── dereotu.png │ │ │ ├── domates.png │ │ │ ├── ekmek.png │ │ │ ├── havuc.png │ │ │ ├── kabak.png │ │ │ ├── karpuz.png │ │ │ ├── limon.png │ │ │ ├── nohut.png │ │ │ ├── patates.png │ │ │ ├── pirasa.png │ │ │ ├── salca.png │ │ │ ├── seker.png │ │ │ ├── sucuk.png │ │ │ ├── yogurt.png │ │ │ ├── yumurta.png │ │ │ ├── barbunya.png │ │ │ ├── dana_eti.png │ │ │ ├── hindi_eti.png │ │ │ ├── maydanoz.png │ │ │ ├── patlican.png │ │ │ ├── portakal.png │ │ │ ├── salatalik.png │ │ │ ├── sarimsak.png │ │ │ ├── sivi_yag.png │ │ │ ├── tereyagi.png │ │ │ ├── asma_yapragi.png │ │ │ ├── beyaz_pirinc.png │ │ │ ├── bugday_unu.png │ │ │ ├── dana_kiyma.png │ │ │ ├── karnabahar.png │ │ │ ├── kuru_fasulye.png │ │ │ ├── kuru_sogan.png │ │ │ ├── tavuk_gogus.png │ │ │ ├── tel_sehriye.png │ │ │ ├── yesil_biber.png │ │ │ ├── zeytinyagi.png │ │ │ ├── kasar_peyniri.png │ │ │ ├── kirmizi_biber.png │ │ │ ├── kivircik_marul.png │ │ │ └── bitter_cikolata.png │ │ ├── recipes │ │ │ ├── cacik.png │ │ │ ├── menemen.png │ │ │ ├── icli_kofte.png │ │ │ ├── karniyarik.png │ │ │ ├── sulu_kofte.png │ │ │ ├── tavuk_sote.png │ │ │ ├── cilek_receli.png │ │ │ ├── elmali_hindi.png │ │ │ ├── firin_kofte.png │ │ │ ├── havuc_mucver.png │ │ │ ├── sac_kavurma.png │ │ │ ├── domates_corbasi.png │ │ │ ├── hunkar_begendi.png │ │ │ ├── kivircik_salata.png │ │ │ ├── meyveli_yogurt.png │ │ │ ├── patates_koftesi.png │ │ │ ├── patates_oturtma.png │ │ │ ├── patlican_ezmesi.png │ │ │ ├── sehriyeli_pilav.png │ │ │ ├── tavuk_corbasi.png │ │ │ ├── tavuk_kavurma.png │ │ │ ├── tavuklu_pilav.png │ │ │ ├── tereyagli_manti.png │ │ │ ├── yogurt_corbasi.png │ │ │ ├── etli_kis_turlusu.png │ │ │ ├── etli_kuru_fasulye.png │ │ │ ├── patatesli_yumurta.png │ │ │ ├── patlican_musakka.png │ │ │ ├── kasar_peynirli_omlet.png │ │ │ ├── kasarli_sucuklu_tost.png │ │ │ ├── kiymali_kabak_yemegi.png │ │ │ ├── kiymali_yaprak_sarma.png │ │ │ ├── patates_pureli_kofte.jpg │ │ │ ├── patates_pureli_kofte.png │ │ │ ├── patatesli_et_haslama.png │ │ │ ├── pirincli_kabak_corba.png │ │ │ ├── sebzeli_tavuk_yemegi.png │ │ │ ├── zeytinyagli_barbunya.png │ │ │ ├── zeytinyagli_bezelye.png │ │ │ ├── dereotlu_kabak_yemegi.png │ │ │ ├── kabakli_havuc_salatasi.png │ │ │ ├── nohutlu_bulgur_pilavi.png │ │ │ ├── portakal_muz_salatasi.png │ │ │ ├── domatesli_pirinc_pilavi.png │ │ │ ├── firinda_kizartilmis_elma.png │ │ │ ├── kusbasi_tavuklu_patates.png │ │ │ ├── patlicanli_tavuk_burger.png │ │ │ ├── domatesli_patlican_salatasi.png │ │ │ ├── firinda_peynirli_karnabahar.png │ │ │ ├── sarimsakli_karnabahar_musakka.png │ │ │ └── bitter_cikolatali_portakal_dilimleri.png │ │ └── fonts │ │ │ ├── Poppins-Thin.ttf │ │ │ ├── Poppins-Light.ttf │ │ │ ├── Poppins-Medium.ttf │ │ │ ├── Poppins-Regular.ttf │ │ │ └── Poppins-SemiBold.ttf │ ├── MODEL │ │ ├── User.dart │ │ ├── Food.dart │ │ └── Recipe.dart │ ├── UI │ │ ├── DetailAppBar.dart │ │ ├── Recipes │ │ │ ├── RecipeDetailPage.dart │ │ │ ├── RecipeList.dart │ │ │ ├── PageTransformer.dart │ │ │ ├── RecipeItem.dart │ │ │ ├── deneme2.dart │ │ │ └── RecipeDetailBody.dart │ │ ├── Camera │ │ │ └── camera.dart │ │ ├── Login │ │ │ └── bubble_indication_painter.dart │ │ ├── Foods │ │ │ ├── FoodRow.dart │ │ │ ├── FoodList.dart │ │ │ ├── FoodDetailPage.dart │ │ │ └── FoodDetailBody.dart │ │ └── Ingredients │ │ │ └── ingredients.dart │ ├── Routes.dart │ ├── main.dart │ ├── Theme.dart │ ├── MyHomePage.dart │ ├── backdrop.dart │ └── drawer.dart ├── ios │ ├── Flutter │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── AppFrameworkInfo.plist │ ├── Runner │ │ ├── AppDelegate.h │ │ ├── Assets.xcassets │ │ │ ├── LaunchImage.imageset │ │ │ │ ├── LaunchImage.png │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ ├── README.md │ │ │ │ └── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ │ └── Contents.json │ │ ├── main.m │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ ├── Main.storyboard │ │ │ └── LaunchScreen.storyboard │ │ └── Info.plist │ ├── Runner.xcodeproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ ├── xcshareddata │ │ │ └── xcschemes │ │ │ │ └── Runner.xcscheme │ │ └── project.pbxproj │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── Podfile ├── .metadata ├── test │ └── widget_test.dart ├── .gitignore ├── README.md └── pubspec.yaml ├── report.pdf ├── images ├── home.png ├── drawer.png ├── login.png ├── signup.png ├── advices.png ├── apriori.png ├── favorites.png ├── foods-1.png ├── foods-2.png ├── recipes.png ├── food-detail.png ├── ingredients.png └── recipe-detail.png ├── README.md └── .gitignore /hello_world/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/report.pdf -------------------------------------------------------------------------------- /images/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/home.png -------------------------------------------------------------------------------- /images/drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/drawer.png -------------------------------------------------------------------------------- /images/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/login.png -------------------------------------------------------------------------------- /images/signup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/signup.png -------------------------------------------------------------------------------- /images/advices.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/advices.png -------------------------------------------------------------------------------- /images/apriori.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/apriori.png -------------------------------------------------------------------------------- /images/favorites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/favorites.png -------------------------------------------------------------------------------- /images/foods-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/foods-1.png -------------------------------------------------------------------------------- /images/foods-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/foods-2.png -------------------------------------------------------------------------------- /images/recipes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/recipes.png -------------------------------------------------------------------------------- /images/food-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/food-detail.png -------------------------------------------------------------------------------- /images/ingredients.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/ingredients.png -------------------------------------------------------------------------------- /images/recipe-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/images/recipe-detail.png -------------------------------------------------------------------------------- /hello_world/lib/DAO/DAO.dart: -------------------------------------------------------------------------------- 1 | class DAO { 2 | static String host = "127.0.0.1"; 3 | static String port = "8000"; 4 | } -------------------------------------------------------------------------------- /hello_world/lib/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/logo.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/su.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/su.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/elma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/elma.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/muz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/muz.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/sut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/sut.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/tuz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/tuz.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/armut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/armut.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/badem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/badem.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/bezelye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/bezelye.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/bulgur.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/bulgur.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/ceviz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/ceviz.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/cilek.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/cilek.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/dereotu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/dereotu.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/domates.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/domates.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/ekmek.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/ekmek.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/havuc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/havuc.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/kabak.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/kabak.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/karpuz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/karpuz.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/limon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/limon.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/nohut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/nohut.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/patates.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/patates.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/pirasa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/pirasa.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/salca.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/salca.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/seker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/seker.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/sucuk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/sucuk.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/yogurt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/yogurt.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/yumurta.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/yumurta.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/cacik.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/cacik.png -------------------------------------------------------------------------------- /hello_world/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/barbunya.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/barbunya.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/dana_eti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/dana_eti.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/hindi_eti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/hindi_eti.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/maydanoz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/maydanoz.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/patlican.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/patlican.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/portakal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/portakal.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/salatalik.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/salatalik.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/sarimsak.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/sarimsak.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/sivi_yag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/sivi_yag.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/tereyagi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/tereyagi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/menemen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/menemen.png -------------------------------------------------------------------------------- /hello_world/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /hello_world/lib/assets/fonts/Poppins-Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/fonts/Poppins-Thin.ttf -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/asma_yapragi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/asma_yapragi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/beyaz_pirinc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/beyaz_pirinc.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/bugday_unu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/bugday_unu.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/dana_kiyma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/dana_kiyma.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/karnabahar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/karnabahar.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/kuru_fasulye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/kuru_fasulye.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/kuru_sogan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/kuru_sogan.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/tavuk_gogus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/tavuk_gogus.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/tel_sehriye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/tel_sehriye.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/yesil_biber.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/yesil_biber.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/zeytinyagi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/zeytinyagi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/icli_kofte.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/icli_kofte.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/karniyarik.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/karniyarik.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/sulu_kofte.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/sulu_kofte.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/tavuk_sote.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/tavuk_sote.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /hello_world/lib/assets/fonts/Poppins-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/fonts/Poppins-Light.ttf -------------------------------------------------------------------------------- /hello_world/lib/assets/fonts/Poppins-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/fonts/Poppins-Medium.ttf -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/kasar_peyniri.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/kasar_peyniri.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/kirmizi_biber.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/kirmizi_biber.png -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/kivircik_marul.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/kivircik_marul.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/cilek_receli.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/cilek_receli.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/elmali_hindi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/elmali_hindi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/firin_kofte.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/firin_kofte.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/havuc_mucver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/havuc_mucver.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/sac_kavurma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/sac_kavurma.png -------------------------------------------------------------------------------- /hello_world/lib/DAO/IngredientsListDao.dart: -------------------------------------------------------------------------------- 1 | import '../MODEL/Food.dart'; 2 | 3 | class IngredientsListDao { 4 | static Set ingredients = new Set(); 5 | } 6 | -------------------------------------------------------------------------------- /hello_world/lib/assets/fonts/Poppins-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/fonts/Poppins-Regular.ttf -------------------------------------------------------------------------------- /hello_world/lib/assets/fonts/Poppins-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/fonts/Poppins-SemiBold.ttf -------------------------------------------------------------------------------- /hello_world/lib/assets/foods/bitter_cikolata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/foods/bitter_cikolata.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/domates_corbasi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/domates_corbasi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/hunkar_begendi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/hunkar_begendi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/kivircik_salata.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/kivircik_salata.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/meyveli_yogurt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/meyveli_yogurt.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/patates_koftesi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/patates_koftesi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/patates_oturtma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/patates_oturtma.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/patlican_ezmesi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/patlican_ezmesi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/sehriyeli_pilav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/sehriyeli_pilav.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/tavuk_corbasi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/tavuk_corbasi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/tavuk_kavurma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/tavuk_kavurma.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/tavuklu_pilav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/tavuklu_pilav.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/tereyagli_manti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/tereyagli_manti.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/yogurt_corbasi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/yogurt_corbasi.png -------------------------------------------------------------------------------- /hello_world/lib/DAO/UserDao.dart: -------------------------------------------------------------------------------- 1 | import '../MODEL/User.dart'; 2 | 3 | class UserDao { 4 | static User currentUser = 5 | new User("Admin", "2", "1234"); 6 | } 7 | -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/etli_kis_turlusu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/etli_kis_turlusu.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/etli_kuru_fasulye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/etli_kuru_fasulye.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/patatesli_yumurta.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/patatesli_yumurta.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/patlican_musakka.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/patlican_musakka.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/kasar_peynirli_omlet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/kasar_peynirli_omlet.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/kasarli_sucuklu_tost.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/kasarli_sucuklu_tost.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/kiymali_kabak_yemegi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/kiymali_kabak_yemegi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/kiymali_yaprak_sarma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/kiymali_yaprak_sarma.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/patates_pureli_kofte.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/patates_pureli_kofte.jpg -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/patates_pureli_kofte.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/patates_pureli_kofte.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/patatesli_et_haslama.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/patatesli_et_haslama.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/pirincli_kabak_corba.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/pirincli_kabak_corba.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/sebzeli_tavuk_yemegi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/sebzeli_tavuk_yemegi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/zeytinyagli_barbunya.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/zeytinyagli_barbunya.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/zeytinyagli_bezelye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/zeytinyagli_bezelye.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/dereotlu_kabak_yemegi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/dereotlu_kabak_yemegi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/kabakli_havuc_salatasi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/kabakli_havuc_salatasi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/nohutlu_bulgur_pilavi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/nohutlu_bulgur_pilavi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/portakal_muz_salatasi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/portakal_muz_salatasi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/domatesli_pirinc_pilavi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/domatesli_pirinc_pilavi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/firinda_kizartilmis_elma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/firinda_kizartilmis_elma.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/kusbasi_tavuklu_patates.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/kusbasi_tavuklu_patates.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/patlicanli_tavuk_burger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/patlicanli_tavuk_burger.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/domatesli_patlican_salatasi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/domatesli_patlican_salatasi.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/firinda_peynirli_karnabahar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/firinda_peynirli_karnabahar.png -------------------------------------------------------------------------------- /hello_world/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /hello_world/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /hello_world/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/sarimsakli_karnabahar_musakka.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/sarimsakli_karnabahar_musakka.png -------------------------------------------------------------------------------- /hello_world/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /hello_world/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /hello_world/lib/assets/recipes/bitter_cikolatali_portakal_dilimleri.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/lib/assets/recipes/bitter_cikolatali_portakal_dilimleri.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/muhammet-mucahit/Yemek-Yemek-App/HEAD/hello_world/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /hello_world/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /hello_world/ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /hello_world/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /hello_world/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /hello_world/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hello_world/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildSystemType 6 | Original 7 | 8 | 9 | -------------------------------------------------------------------------------- /hello_world/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hello_world/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildSystemType 6 | Original 7 | 8 | 9 | -------------------------------------------------------------------------------- /hello_world/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 5391447fae6209bb21a89e6a5a6583cac1af9b4b 8 | channel: beta 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /hello_world/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. -------------------------------------------------------------------------------- /hello_world/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /hello_world/lib/MODEL/User.dart: -------------------------------------------------------------------------------- 1 | class User { 2 | final String name; 3 | final String mail; 4 | String password; 5 | 6 | User(this.name, this.mail, this.password); 7 | 8 | User.fromJson(Map json) 9 | : name = json["name"], 10 | mail = json["mail"], 11 | password = json["password"]; 12 | 13 | Map toJson() => { 14 | "name": name, 15 | "mail": mail, 16 | "password": password, 17 | }; 18 | } 19 | -------------------------------------------------------------------------------- /hello_world/android/app/src/main/java/com/example/helloworld/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.helloworld; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /hello_world/ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /hello_world/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /hello_world/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 | -------------------------------------------------------------------------------- /hello_world/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /hello_world/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /hello_world/lib/UI/DetailAppBar.dart: -------------------------------------------------------------------------------- 1 | import '../Theme.dart' as Theme; 2 | import 'package:flutter/material.dart'; 3 | 4 | class DetailAppBar extends StatefulWidget { 5 | const DetailAppBar({Key key}) : super(key: key); 6 | 7 | @override 8 | _DetailAppBar createState() => _DetailAppBar(); 9 | } 10 | 11 | class _DetailAppBar extends State { 12 | @override 13 | Widget build(BuildContext context) { 14 | return Container( 15 | padding: EdgeInsets.only(top: MediaQuery.of(context).padding.top), 16 | child: Row( 17 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 18 | children: [ 19 | BackButton(color: Theme.Colors.appBarIconColor), 20 | ], 21 | ), 22 | ); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Recipes/RecipeDetailPage.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../../MODEL/Recipe.dart'; 3 | import '../../DAO/RecipeDao.dart'; 4 | import 'RecipeDetailBody.dart'; 5 | import '../../Theme.dart' as Theme; 6 | import '../DetailAppBar.dart'; 7 | 8 | class RecipeDetailPage extends StatelessWidget { 9 | final Recipe recipe; 10 | 11 | RecipeDetailPage(String id) : recipe = RecipeDao.getRecipeById(id); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Scaffold( 16 | backgroundColor: Theme.Colors.foodPageBackground, 17 | body: Stack( 18 | children: [ 19 | RecipeDetailBody(recipe), 20 | DetailAppBar(), 21 | ], 22 | ), 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /hello_world/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /hello_world/lib/DAO/RecipeDao.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import '../MODEL/Recipe.dart'; 3 | import 'package:http/http.dart' as http; 4 | import 'UserDao.dart'; 5 | import 'DAO.dart'; 6 | 7 | class RecipeDao { 8 | static List recipes; 9 | 10 | static Future> getRecipes() async { 11 | String basicAuth = 'Basic ' + 12 | base64Encode(utf8.encode( 13 | '${UserDao.currentUser.mail}:${UserDao.currentUser.password}')); 14 | await http.get('http://' + DAO.host + ':' + DAO.port + '/api/v1/recipes', 15 | headers: {'authorization': basicAuth}).then((response) { 16 | List responseJson = jsonDecode(response.body); 17 | recipes = responseJson.map((m) => new Recipe.fromJson(m)).toList(); 18 | }); 19 | return recipes; 20 | } 21 | 22 | static Recipe getRecipeById(id) { 23 | return recipes.where((f) => f.id == int.parse(id)).first; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Camera/camera.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:camera/camera.dart'; 3 | import '../../main.dart'; 4 | 5 | class Camera extends StatefulWidget { 6 | @override 7 | _CameraState createState() => _CameraState(); 8 | } 9 | 10 | class _CameraState extends State { 11 | CameraController controller; 12 | 13 | @override 14 | void initState() { 15 | super.initState(); 16 | controller = CameraController(cameras[0], ResolutionPreset.medium); 17 | controller.initialize().then((_) { 18 | if (!mounted) { 19 | return; 20 | } 21 | setState(() {}); 22 | }); 23 | } 24 | 25 | @override 26 | void dispose() { 27 | controller?.dispose(); 28 | super.dispose(); 29 | } 30 | 31 | @override 32 | Widget build(BuildContext context) { 33 | if (!controller.value.isInitialized) { 34 | return Container(); 35 | } 36 | return AspectRatio( 37 | aspectRatio: controller.value.aspectRatio, 38 | child: CameraPreview(controller)); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /hello_world/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:hello_world/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /hello_world/lib/DAO/AdviceDao.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:http_parser/http_parser.dart'; 3 | import '../MODEL/Recipe.dart'; 4 | import 'package:http/http.dart' as http; 5 | import 'UserDao.dart'; 6 | import 'DAO.dart'; 7 | import 'IngredientsListDao.dart'; 8 | 9 | class AdviceDao { 10 | static List advices = List(); 11 | 12 | static Future> getAdvices(Set ingredients) async { 13 | print(jsonEncode(IngredientsListDao.ingredients.toList())); 14 | String basicAuth = 'Basic ' + 15 | base64Encode(utf8.encode( 16 | '${UserDao.currentUser.mail}:${UserDao.currentUser.password}')); 17 | Map headers = { 18 | 'Content-Type': new MediaType("application", "json").toString(), 19 | 'authorization': basicAuth 20 | }; 21 | 22 | await http 23 | .post('http://' + DAO.host + ':' + DAO.port + '/api/v1/recipe_food', 24 | body: json.encode(ingredients.toList()), headers: headers) 25 | .then((response) { 26 | List responseJson = jsonDecode(response.body); 27 | advices = responseJson.map((m) => new Recipe.fromJson(m)).toList(); 28 | }); 29 | return advices; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /hello_world/lib/MODEL/Food.dart: -------------------------------------------------------------------------------- 1 | class Food { 2 | final String name; 3 | final String image; 4 | final int calorie; 5 | final double carb; 6 | final double protein; 7 | final double fat; 8 | final int healthPoint; 9 | final String description; 10 | final int category; 11 | 12 | const Food( 13 | {this.name, 14 | this.image, 15 | this.calorie, 16 | this.carb, 17 | this.protein, 18 | this.fat, 19 | this.healthPoint, 20 | this.description, 21 | this.category}); 22 | 23 | Food.fromJson(Map json) 24 | : name = json["name"], 25 | image = json["image"], 26 | calorie = json["calorie"], 27 | carb = json["carb"], 28 | protein = json["protein"], 29 | fat = json["fat"], 30 | healthPoint = json["health_point"], 31 | description = json["description"], 32 | category = json["category"]; 33 | 34 | Map toJson() => { 35 | "name": name, 36 | "image": image, 37 | "calorie": calorie, 38 | "carb": carb, 39 | "protein": protein, 40 | "fat": fat, 41 | "health_point": healthPoint, 42 | "description": description, 43 | "category": category, 44 | }; 45 | } 46 | -------------------------------------------------------------------------------- /hello_world/lib/Routes.dart: -------------------------------------------------------------------------------- 1 | import 'package:fluro/fluro.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'UI/Foods/FoodDetailPage.dart'; 4 | import 'UI/Recipes/RecipeDetailPage.dart'; 5 | 6 | class Routes { 7 | static final Router _router = Router(); 8 | 9 | static var foodDetailHandler = 10 | Handler(handlerFunc: (BuildContext context, Map params) { 11 | // debugPrint(params["name"] 12 | // .toString() 13 | // .substring(1, params["name"].toString().length - 1)); 14 | return FoodDetailPage(params["name"] 15 | .toString() 16 | .substring(1, params["name"].toString().length - 1)); 17 | }); 18 | 19 | static var recipeDetailHandler = new Handler( 20 | handlerFunc: (BuildContext context, Map params) { 21 | return RecipeDetailPage(params["id"] 22 | .toString() 23 | .substring(1, params["id"].toString().length - 1)); 24 | }); 25 | 26 | static void initRoutes() { 27 | _router.define("/detailFood/:name", handler: foodDetailHandler); 28 | _router.define("/detailRecipe/:id", handler: recipeDetailHandler); 29 | } 30 | 31 | static void navigateTo(context, String route, {TransitionType transition}) { 32 | _router.navigateTo(context, route, transition: transition); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /hello_world/lib/MODEL/Recipe.dart: -------------------------------------------------------------------------------- 1 | class Recipe { 2 | final int id; 3 | final String name; 4 | final String image; 5 | final int rating; 6 | final int calorie; 7 | final double carb; 8 | final double protein; 9 | final double fat; 10 | final int cookingMinutes; 11 | final String description; 12 | final String userMail; 13 | 14 | const Recipe( 15 | {this.id, 16 | this.name, 17 | this.image, 18 | this.rating, 19 | this.calorie, 20 | this.carb, 21 | this.protein, 22 | this.fat, 23 | this.cookingMinutes, 24 | this.description, 25 | this.userMail}); 26 | 27 | Recipe.fromJson(Map json) 28 | : id = json["id"], 29 | name = json["name"], 30 | image = json["image"], 31 | rating = json["rating"], 32 | calorie = json["calorie"], 33 | carb = json["carb"], 34 | protein = json["protein"], 35 | fat = json["fat"], 36 | cookingMinutes = json["cooking_minutes"], 37 | description = json["description"], 38 | userMail = json["user_mail"]; 39 | 40 | Map toJson() => { 41 | "id": id, 42 | "name": name, 43 | "image": image, 44 | "rating": rating, 45 | "calorie": calorie, 46 | "carb": carb, 47 | "protein": protein, 48 | "fat": fat, 49 | "cooking_minutes": cookingMinutes, 50 | "description": description, 51 | "user_mail": userMail, 52 | }; 53 | } 54 | -------------------------------------------------------------------------------- /hello_world/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:camera/camera.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'Routes.dart'; 4 | import 'Theme.dart' as Theme; 5 | import 'UI/Login/login.dart'; 6 | import 'MyHomePage.dart'; 7 | import 'DAO/RecipeDao.dart'; 8 | import 'DAO/FoodDao.dart'; 9 | import 'package:shared_preferences/shared_preferences.dart'; 10 | 11 | const TITLE = "Yemek Yemek"; 12 | String key = "111"; 13 | 14 | var cameras = List(); 15 | 16 | Future main() async { 17 | FoodDao.getFoods(); 18 | RecipeDao.getRecipes(); 19 | // FavoritesDao.getFavorites(); 20 | // FavoritesDao.getApirioriAdvices(); 21 | cameras = await availableCameras(); 22 | Routes.initRoutes(); 23 | runApp(MyApp()); 24 | } 25 | 26 | class MyApp extends StatefulWidget { 27 | @override 28 | MyAppState createState() => MyAppState(); 29 | } 30 | 31 | class MyAppState extends State { 32 | String mail = ""; 33 | 34 | @override 35 | void initState() { 36 | super.initState(); 37 | _getMailPreference(); 38 | } 39 | 40 | _getMailPreference() async { 41 | final prefs = await SharedPreferences.getInstance(); 42 | setState(() { 43 | mail = (prefs.getString(key) ?? null); 44 | }); 45 | } 46 | 47 | @override 48 | Widget build(BuildContext context) { 49 | return MaterialApp( 50 | debugShowCheckedModeBanner: false, 51 | title: TITLE, 52 | theme: ThemeData( 53 | primaryColor: Theme.Colors.foodCard, 54 | ), 55 | // home: MyHomePage(), 56 | home: mail == null ? LoginPage() : MyHomePage(), 57 | ); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /hello_world/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.lock 4 | *.log 5 | *.pyc 6 | *.swp 7 | .DS_Store 8 | .atom/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # Visual Studio Code related 20 | .vscode/ 21 | 22 | # Flutter/Dart/Pub related 23 | **/doc/api/ 24 | .dart_tool/ 25 | .flutter-plugins 26 | .packages 27 | .pub-cache/ 28 | .pub/ 29 | build/ 30 | 31 | # Android related 32 | **/android/**/gradle-wrapper.jar 33 | **/android/.gradle 34 | **/android/captures/ 35 | **/android/gradlew 36 | **/android/gradlew.bat 37 | **/android/local.properties 38 | **/android/**/GeneratedPluginRegistrant.java 39 | 40 | # iOS/XCode related 41 | **/ios/**/*.mode1v3 42 | **/ios/**/*.mode2v3 43 | **/ios/**/*.moved-aside 44 | **/ios/**/*.pbxuser 45 | **/ios/**/*.perspectivev3 46 | **/ios/**/*sync/ 47 | **/ios/**/.sconsign.dblite 48 | **/ios/**/.tags* 49 | **/ios/**/.vagrant/ 50 | **/ios/**/DerivedData/ 51 | **/ios/**/Icon? 52 | **/ios/**/Pods/ 53 | **/ios/**/.symlinks/ 54 | **/ios/**/profile 55 | **/ios/**/xcuserdata 56 | **/ios/.generated/ 57 | **/ios/Flutter/App.framework 58 | **/ios/Flutter/Flutter.framework 59 | **/ios/Flutter/Generated.xcconfig 60 | **/ios/Flutter/app.flx 61 | **/ios/Flutter/app.zip 62 | **/ios/Flutter/flutter_assets/ 63 | **/ios/ServiceDefinitions.json 64 | **/ios/Runner/GeneratedPluginRegistrant.* 65 | 66 | # Exceptions to above rules. 67 | !**/ios/**/default.mode1v3 68 | !**/ios/**/default.mode2v3 69 | !**/ios/**/default.pbxuser 70 | !**/ios/**/default.perspectivev3 71 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 72 | -------------------------------------------------------------------------------- /hello_world/lib/DAO/FoodDao.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import '../MODEL/Food.dart'; 3 | import 'package:http/http.dart' as http; 4 | import 'UserDao.dart'; 5 | import 'DAO.dart'; 6 | 7 | class FoodDao { 8 | static List foods; 9 | static List ingredients; 10 | 11 | static var recipeIngredientList = Set(); 12 | 13 | static Future getFoods() async { 14 | String basicAuth = 'Basic ' + 15 | base64Encode(utf8.encode( 16 | '${UserDao.currentUser.mail}:${UserDao.currentUser.password}')); 17 | await http.get('http://' + DAO.host + ':' + DAO.port + '/api/v1/foods', 18 | headers: {'authorization': basicAuth}).then((response) { 19 | print(response.body); 20 | List responseJson = jsonDecode(response.body); 21 | foods = responseJson.map((m) => new Food.fromJson(m)).toList(); 22 | }); 23 | return foods; 24 | } 25 | 26 | static Future> getIngredients(int id) async { 27 | String basicAuth = 'Basic ' + 28 | base64Encode(utf8.encode( 29 | '${UserDao.currentUser.mail}:${UserDao.currentUser.password}')); 30 | await http.get( 31 | 'http://' + DAO.host + ':' + DAO.port + '/api/v1/recipe_food/$id', 32 | headers: {'authorization': basicAuth}).then((response) { 33 | List responseJson = jsonDecode(response.body); 34 | ingredients = responseJson.map((m) => new Food.fromJson(m)).toList(); 35 | }); 36 | return ingredients; 37 | } 38 | 39 | static Food getFoodByName(name) { 40 | return foods.where((f) => f.name == name).first; 41 | } 42 | 43 | static List getFoodsByCategory(category) { 44 | return foods.where((f) => f.category == category).toList(); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /hello_world/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 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Login/bubble_indication_painter.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | class TabIndicationPainter extends CustomPainter { 6 | Paint painter; 7 | final double dxTarget; 8 | final double dxEntry; 9 | final double radius; 10 | final double dy; 11 | 12 | final PageController pageController; 13 | 14 | TabIndicationPainter( 15 | {this.dxTarget = 125.0, 16 | this.dxEntry = 25.0, 17 | this.radius = 21.0, 18 | this.dy = 25.0, 19 | this.pageController}) 20 | : super(repaint: pageController) { 21 | painter = new Paint() 22 | ..color = Color(0xFFFFFFFF) 23 | ..style = PaintingStyle.fill; 24 | } 25 | 26 | @override 27 | void paint(Canvas canvas, Size size) { 28 | final pos = pageController.position; 29 | double fullExtent = 30 | (pos.maxScrollExtent - pos.minScrollExtent + pos.viewportDimension); 31 | 32 | double pageOffset = pos.extentBefore / fullExtent; 33 | 34 | bool left2right = dxEntry < dxTarget; 35 | Offset entry = new Offset(left2right ? dxEntry : dxTarget, dy); 36 | Offset target = new Offset(left2right ? dxTarget : dxEntry, dy); 37 | 38 | Path path = new Path(); 39 | path.addArc( 40 | new Rect.fromCircle(center: entry, radius: radius), 0.5 * pi, 1 * pi); 41 | path.addRect( 42 | new Rect.fromLTRB(entry.dx, dy - radius, target.dx, dy + radius)); 43 | path.addArc( 44 | new Rect.fromCircle(center: target, radius: radius), 1.5 * pi, 1 * pi); 45 | 46 | canvas.translate(size.width * pageOffset, 0.0); 47 | canvas.drawPath(path, painter); 48 | } 49 | 50 | @override 51 | bool shouldRepaint(TabIndicationPainter oldDelegate) => true; 52 | } 53 | -------------------------------------------------------------------------------- /hello_world/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | NSCameraUsageDescription 8 | Can I use the camera please? 9 | NSMicrophoneUsageDescription 10 | Can I use the mic please? 11 | NSPhotoLibraryUsageDescription 12 | Can I use the PhotoLibrary please? 13 | CFBundleExecutable 14 | $(EXECUTABLE_NAME) 15 | CFBundleIdentifier 16 | $(PRODUCT_BUNDLE_IDENTIFIER) 17 | CFBundleInfoDictionaryVersion 18 | 6.0 19 | CFBundleName 20 | hello_world 21 | CFBundlePackageType 22 | APPL 23 | CFBundleShortVersionString 24 | $(FLUTTER_BUILD_NAME) 25 | CFBundleSignature 26 | ???? 27 | CFBundleVersion 28 | $(FLUTTER_BUILD_NUMBER) 29 | LSRequiresIPhoneOS 30 | 31 | UILaunchStoryboardName 32 | LaunchScreen 33 | UIMainStoryboardFile 34 | Main 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | UIViewControllerBasedStatusBarAppearance 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /hello_world/README.md: -------------------------------------------------------------------------------- 1 | # hello_world 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://flutter.io/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.io/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | 18 | ## Screenshots 19 | 20 | ![Login](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/login.png) 21 | 22 | ![Signup](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/signup.png) 23 | 24 | ![Home](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/home.png) 25 | 26 | ![Drawer](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/drawer.png) 27 | 28 | ![Foods-1](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/foods-1.png) 29 | 30 | ![Foods-2](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/foods-2.png) 31 | 32 | ![Food-Detail](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/food-detail.png) 33 | 34 | ![Ingredients](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/ingredients.png) 35 | 36 | ![Recipes](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/recipes.png) 37 | 38 | ![Recipe-Detail](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/recipe-detail.png) 39 | 40 | ![Favorites](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/favorites.png) 41 | 42 | ![Advices](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/advices.png) 43 | 44 | ![Apriori](https://github.com/muhammet-mucahit/Yemek-Yemek-App/blob/master/images/apriori.png) 45 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Yemek-Yemek-App 2 | The Flutter App provides some foods, recipes, favorite recipes of users and suggestion of recipe. 3 | 4 | ## App 5 | - [Web Service](https://github.com/muhammet-mucahit/Yemek-Yemek-REST-API) 6 | - [Mobile App](https://github.com/muhammet-mucahit/Yemek-Yemek-App/tree/master/hello_world) 7 | 8 | ## Screenshots 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 | 39 |

-------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.lock 4 | *.log 5 | *.pyc 6 | *.swp 7 | .DS_Store 8 | .atom/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # Visual Studio Code related 20 | .vscode/ 21 | 22 | # Flutter repo-specific 23 | /bin/cache/ 24 | /bin/mingit/ 25 | /dev/benchmarks/mega_gallery/ 26 | /dev/bots/.recipe_deps 27 | /dev/bots/android_tools/ 28 | /dev/docs/doc/ 29 | /dev/docs/flutter.docs.zip 30 | /dev/docs/lib/ 31 | /dev/docs/pubspec.yaml 32 | /packages/flutter/coverage/ 33 | version 34 | 35 | # packages file containing multi-root paths 36 | .packages.generated 37 | 38 | # Flutter/Dart/Pub related 39 | **/doc/api/ 40 | .dart_tool/ 41 | .flutter-plugins 42 | .packages 43 | .pub-cache/ 44 | .pub/ 45 | build/ 46 | flutter_*.png 47 | linked_*.ds 48 | unlinked.ds 49 | unlinked_spec.ds 50 | 51 | # Android related 52 | **/android/**/gradle-wrapper.jar 53 | **/android/.gradle 54 | **/android/captures/ 55 | **/android/gradlew 56 | **/android/gradlew.bat 57 | **/android/local.properties 58 | **/android/**/GeneratedPluginRegistrant.java 59 | **/android/key.properties 60 | *.jks 61 | 62 | # iOS/XCode related 63 | **/ios/**/*.mode1v3 64 | **/ios/**/*.mode2v3 65 | **/ios/**/*.moved-aside 66 | **/ios/**/*.pbxuser 67 | **/ios/**/*.perspectivev3 68 | **/ios/**/*sync/ 69 | **/ios/**/.sconsign.dblite 70 | **/ios/**/.tags* 71 | **/ios/**/.vagrant/ 72 | **/ios/**/DerivedData/ 73 | **/ios/**/Icon? 74 | **/ios/**/Pods/ 75 | **/ios/**/.symlinks/ 76 | **/ios/**/profile 77 | **/ios/**/xcuserdata 78 | **/ios/.generated/ 79 | **/ios/Flutter/App.framework 80 | **/ios/Flutter/Flutter.framework 81 | **/ios/Flutter/Generated.xcconfig 82 | **/ios/Flutter/app.flx 83 | **/ios/Flutter/app.zip 84 | **/ios/Flutter/flutter_assets/ 85 | **/ios/ServiceDefinitions.json 86 | **/ios/Runner/GeneratedPluginRegistrant.* 87 | 88 | # Coverage 89 | coverage/ 90 | 91 | # Exceptions to above rules. 92 | !**/ios/**/default.mode1v3 93 | !**/ios/**/default.mode2v3 94 | !**/ios/**/default.pbxuser 95 | !**/ios/**/default.perspectivev3 96 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 97 | -------------------------------------------------------------------------------- /hello_world/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 27 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.example.helloworld" 37 | minSdkVersion 21 38 | targetSdkVersion 27 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | } 62 | -------------------------------------------------------------------------------- /hello_world/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 15 | 19 | 26 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /hello_world/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | pods_ary = [] 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) { |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | pods_ary.push({:name => podname, :path => podpath}); 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | } 32 | return pods_ary 33 | end 34 | 35 | target 'Runner' do 36 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 37 | # referring to absolute paths on developers' machines. 38 | system('rm -rf .symlinks') 39 | system('mkdir -p .symlinks/plugins') 40 | 41 | # Flutter Pods 42 | generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig') 43 | if generated_xcode_build_settings.empty? 44 | puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first." 45 | end 46 | generated_xcode_build_settings.map { |p| 47 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR' 48 | symlink = File.join('.symlinks', 'flutter') 49 | File.symlink(File.dirname(p[:path]), symlink) 50 | pod 'Flutter', :path => File.join(symlink, File.basename(p[:path])) 51 | end 52 | } 53 | 54 | # Plugin Pods 55 | plugin_pods = parse_KV_file('../.flutter-plugins') 56 | plugin_pods.map { |p| 57 | symlink = File.join('.symlinks', 'plugins', p[:name]) 58 | File.symlink(p[:path], symlink) 59 | pod p[:name], :path => File.join(symlink, 'ios') 60 | } 61 | end 62 | 63 | post_install do |installer| 64 | installer.pods_project.targets.each do |target| 65 | target.build_configurations.each do |config| 66 | config.build_settings['ENABLE_BITCODE'] = 'NO' 67 | end 68 | end 69 | end 70 | -------------------------------------------------------------------------------- /hello_world/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 | -------------------------------------------------------------------------------- /hello_world/lib/DAO/FavoritesDao.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:http_parser/http_parser.dart'; 3 | import '../MODEL/Recipe.dart'; 4 | import '../DAO/UserDao.dart'; 5 | import 'package:http/http.dart' as http; 6 | import 'DAO.dart'; 7 | 8 | class FavoritesDao { 9 | static List favorites = new List(); 10 | static List apirioriFavorites = new List(); 11 | static List favoritesIds = new List(); 12 | 13 | static Future> getFavorites() async { 14 | String basicAuth = 'Basic ' + 15 | base64Encode(utf8.encode( 16 | '${UserDao.currentUser.mail}:${UserDao.currentUser.password}')); 17 | await http.get('http://' + DAO.host + ':' + DAO.port + '/api/v1/favorites', 18 | headers: {'authorization': basicAuth}).then((response) { 19 | // print(response.body); 20 | List responseJson = jsonDecode(response.body); 21 | favorites = responseJson.map((m) => new Recipe.fromJson(m)).toList(); 22 | }); 23 | for (int i = 0; i < favorites.length; i++) 24 | favoritesIds.add(favorites[i].id); 25 | return favorites; 26 | } 27 | 28 | static Future> getApirioriAdvices() async { 29 | String basicAuth = 'Basic ' + 30 | base64Encode(utf8.encode( 31 | '${UserDao.currentUser.mail}:${UserDao.currentUser.password}')); 32 | await http.get('http://' + DAO.host + ':' + DAO.port + '/api/v1/apriori', 33 | headers: {'authorization': basicAuth}).then((response) { 34 | print(response.body); 35 | print("asd"); 36 | List responseJson = jsonDecode(response.body); 37 | apirioriFavorites = 38 | responseJson.map((m) => new Recipe.fromJson(m)).toList(); 39 | }); 40 | return apirioriFavorites; 41 | } 42 | 43 | static String basicAuth = 'Basic ' + 44 | base64Encode(utf8.encode( 45 | '${UserDao.currentUser.mail}:${UserDao.currentUser.password}')); 46 | 47 | static Map headers = { 48 | 'authorization': basicAuth, 49 | 'content-type': new MediaType("application", "json").toString(), 50 | }; 51 | 52 | static Future postFavorites() async { 53 | print(json.encode(favoritesIds)); 54 | await http 55 | .post('http://' + DAO.host + ':' + DAO.port + '/api/v1/favorites', 56 | headers: headers, body: json.encode(favoritesIds)) 57 | .then((response) { 58 | print(response.body); 59 | }); 60 | } 61 | 62 | static Recipe getRecipeById(id) { 63 | return favorites.where((f) => f.id == id).first; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Foods/FoodRow.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../../MODEL/Food.dart'; 3 | import '../../Theme.dart' as Theme; 4 | import '../../Routes.dart'; 5 | import 'package:fluro/fluro.dart'; 6 | 7 | class FoodRow extends StatelessWidget { 8 | final Food food; 9 | 10 | FoodRow(this.food); 11 | 12 | static Color healthPointColor(int healthPoint) { 13 | if (healthPoint > 4) { 14 | return Colors.green; 15 | } else if (healthPoint > 3) { 16 | return Colors.lightGreen; 17 | } else if (healthPoint > 2) { 18 | return Colors.yellow; 19 | } else if (healthPoint > 1) { 20 | return Colors.orange; 21 | } 22 | return Colors.red; 23 | } 24 | 25 | @override 26 | Widget build(BuildContext context) { 27 | final foodThumbnail = Container( 28 | alignment: FractionalOffset(0.0, 0.5), 29 | margin: const EdgeInsets.only(left: 8.0), 30 | child: Hero( 31 | tag: 'food-icon-${food.name}', 32 | child: Image( 33 | image: AssetImage(food.image), 34 | height: Theme.Dimens.foodWidth, 35 | width: Theme.Dimens.foodWidth, 36 | ), 37 | ), 38 | ); 39 | 40 | final foodCard = Container( 41 | margin: const EdgeInsets.only(left: 48.0, right: 24.0), 42 | decoration: BoxDecoration( 43 | color: Theme.Colors.foodCard, 44 | shape: BoxShape.rectangle, 45 | borderRadius: BorderRadius.circular(8.0), 46 | boxShadow: [ 47 | BoxShadow( 48 | color: Colors.black, blurRadius: 10.0, offset: Offset(0.0, 10.0)) 49 | ], 50 | ), 51 | child: Container( 52 | margin: const EdgeInsets.only(top: 16.0, left: 72.0), 53 | constraints: BoxConstraints.expand(), 54 | child: Column( 55 | crossAxisAlignment: CrossAxisAlignment.start, 56 | children: [ 57 | Text(food.name, style: Theme.TextStyles.foodTitle), 58 | Text(food.calorie.toString() + " kcal", 59 | style: Theme.TextStyles.foodLocation), 60 | Container( 61 | color: healthPointColor(food.healthPoint), 62 | width: 24.0, 63 | height: 2.0, 64 | margin: const EdgeInsets.symmetric(vertical: 8.0), 65 | ), 66 | ], 67 | ), 68 | ), 69 | ); 70 | 71 | return Container( 72 | margin: const EdgeInsets.only(top: 12.0, bottom: 12.0), 73 | child: FlatButton( 74 | onPressed: () => _navigateTo(context, food.name), 75 | child: Stack( 76 | children: [ 77 | foodCard, 78 | foodThumbnail, 79 | ], 80 | ), 81 | ), 82 | ); 83 | } 84 | 85 | _navigateTo(context, String name) { 86 | Routes.navigateTo(context, '/detailFood/$name', 87 | transition: TransitionType.fadeIn); 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Recipes/RecipeList.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import "RecipeItem.dart"; 3 | // import "PageTransformer.dart"; 4 | import '../../MODEL/Recipe.dart'; 5 | import '../../Theme.dart' as Theme; 6 | import '../../DAO/FavoritesDao.dart'; 7 | 8 | class RecipeList extends StatefulWidget { 9 | final List recipes; 10 | final title; 11 | 12 | RecipeList(this.recipes, this.title); 13 | 14 | @override 15 | RecipeListState createState() => RecipeListState(); 16 | } 17 | 18 | class RecipeListState extends State { 19 | @override 20 | void dispose() { 21 | FavoritesDao.postFavorites(); 22 | super.dispose(); 23 | } 24 | 25 | @override 26 | Widget build(BuildContext context) { 27 | return Scaffold( 28 | appBar: AppBar( 29 | centerTitle: true, 30 | title: Text( 31 | widget.title, 32 | style: Theme.TextStyles.appBarTitle, 33 | ), 34 | ), 35 | body: Container( 36 | color: Theme.Colors.foodPageBackground, 37 | child: widget.recipes.length == 0 38 | ? Center( 39 | child: Text( 40 | widget.title + " Boş!", 41 | style: Theme.TextStyles.appBarTitle, 42 | ), 43 | ) 44 | : GridView.builder( 45 | gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( 46 | crossAxisCount: 2, 47 | mainAxisSpacing: 10.0, 48 | ), 49 | padding: EdgeInsets.symmetric(vertical: 5.0), 50 | itemCount: widget.recipes.length, 51 | itemBuilder: (BuildContext context, int index) { 52 | return RecipeItem( 53 | recipe: widget.recipes[index], 54 | parent: this, 55 | ); 56 | }, 57 | ), 58 | // Center( 59 | // child: SizedBox.fromSize( 60 | // size: const Size.fromHeight(750.0), 61 | // child: PageTransformer( 62 | // pageViewBuilder: (context, visibilityResolver) { 63 | // return PageView.builder( 64 | // controller: PageController(viewportFraction: 1.0), 65 | // itemCount: widget.recipes.length, 66 | // itemBuilder: (context, index) { 67 | // final recipe = widget.recipes[index]; 68 | // final pageVisibility = 69 | // visibilityResolver.resolvePageVisibility(index); 70 | 71 | // return RecipeItem( 72 | // recipe: recipe, 73 | // pageVisibility: pageVisibility, 74 | // ); 75 | // }, 76 | // ); 77 | // }, 78 | // ), 79 | // ), 80 | // ), 81 | ), 82 | ); 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Foods/FoodList.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../../DAO/FoodDao.dart'; 3 | import 'FoodRow.dart'; 4 | import '../../Theme.dart' as Theme; 5 | import '../../MODEL/Food.dart'; 6 | import '../Ingredients/ingredients.dart'; 7 | 8 | class FoodList extends StatefulWidget { 9 | final List foods; 10 | 11 | FoodList(this.foods); 12 | @override 13 | _FoodList createState() => _FoodList(); 14 | } 15 | 16 | class _FoodList extends State { 17 | Widget tab(int category) { 18 | return Container( 19 | color: Theme.Colors.foodPageBackground, 20 | child: ListView.builder( 21 | itemExtent: 120.0, 22 | itemCount: FoodDao.getFoodsByCategory(category).length, 23 | itemBuilder: (_, index) => 24 | FoodRow(FoodDao.getFoodsByCategory(category)[index]), 25 | ), 26 | ); 27 | } 28 | 29 | @override 30 | Widget build(BuildContext context) { 31 | return DefaultTabController( 32 | length: 8, 33 | child: Scaffold( 34 | appBar: AppBar( 35 | centerTitle: true, 36 | title: Text( 37 | "Besinler", 38 | style: Theme.TextStyles.appBarTitle, 39 | ), 40 | actions: [ 41 | Center( 42 | child: Container( 43 | padding: EdgeInsets.only(right: 10.0), 44 | child: IconButton( 45 | icon: Icon(Icons.list), 46 | onPressed: () { 47 | Navigator.push( 48 | context, 49 | MaterialPageRoute(builder: (context) => Ingredients()), 50 | ); 51 | }, 52 | ), 53 | ), 54 | ), 55 | ], 56 | bottom: TabBar( 57 | isScrollable: true, 58 | tabs: [ 59 | Tab( 60 | text: "Temel", 61 | ), 62 | Tab( 63 | text: "Meyve", 64 | ), 65 | Tab( 66 | text: "Sebze", 67 | ), 68 | Tab( 69 | text: "Baklagil", 70 | ), 71 | Tab( 72 | text: "Et", 73 | ), 74 | Tab( 75 | text: "Süt", 76 | ), 77 | Tab( 78 | text: "Çerez", 79 | ), 80 | Tab( 81 | text: "Yağ", 82 | ), 83 | ], 84 | ), 85 | ), 86 | body: TabBarView( 87 | children: [ 88 | tab(0), 89 | tab(1), 90 | tab(2), 91 | tab(3), 92 | tab(4), 93 | tab(5), 94 | tab(6), 95 | tab(7), 96 | ], 97 | ), 98 | ), 99 | ); 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /hello_world/lib/Theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Colors { 4 | const Colors(); 5 | 6 | static const Color appColor = const Color(0xFF2196F3); 7 | 8 | static const Color appBarTitle = const Color(0xFFFFFFFF); 9 | static const Color appBarIconColor = const Color(0xFFFFFFFF); 10 | static const Color appBarDetailBackground = const Color(0x00FFFFFF); 11 | static const Color appBarGradientStart = const Color(0xFF3383FC); 12 | static const Color appBarGradientEnd = const Color(0xFF00C6FF); 13 | 14 | static const Color foodCard = const Color(0xFF263238); 15 | static const Color foodPageBackground = const Color(0xFF546E7A); 16 | static const Color foodTitle = const Color(0xFFFFFFFF); 17 | static const Color foodLocation = const Color(0x66FFFFFF); 18 | static const Color foodDistance = const Color(0x66FFFFFF); 19 | 20 | static const Color loginGradientStart = const Color(0xFF607D8B); 21 | static const Color loginGradientEnd = const Color(0xFF263238); 22 | 23 | static const primaryGradient = const LinearGradient( 24 | colors: const [loginGradientStart, loginGradientEnd], 25 | stops: const [0.0, 1.0], 26 | begin: Alignment.topCenter, 27 | end: Alignment.bottomCenter, 28 | ); 29 | } 30 | 31 | class Dimens { 32 | const Dimens(); 33 | 34 | static const foodWidth = 85.0; 35 | static const foodHeight = 85.0; 36 | 37 | static const foodWidthDetail = 130.0; 38 | static const foodHeightDetail = 130.0; 39 | } 40 | 41 | class TextStyles { 42 | const TextStyles(); 43 | 44 | static const TextStyle appBarTitle = const TextStyle( 45 | color: Colors.appBarTitle, 46 | fontFamily: 'Poppins', 47 | fontWeight: FontWeight.w600, 48 | fontSize: 24.0); 49 | 50 | static const TextStyle foodTitle = const TextStyle( 51 | color: Colors.foodTitle, 52 | fontFamily: 'Poppins', 53 | fontWeight: FontWeight.w600, 54 | fontSize: 24.0); 55 | 56 | static const TextStyle foodLocation = const TextStyle( 57 | color: Colors.foodLocation, 58 | fontFamily: 'Poppins', 59 | fontWeight: FontWeight.w400, 60 | fontSize: 14.0); 61 | 62 | static const TextStyle foodDistance = const TextStyle( 63 | color: Colors.foodDistance, 64 | fontFamily: 'Poppins', 65 | fontWeight: FontWeight.w300, 66 | fontSize: 12.0); 67 | 68 | static const TextStyle foodTitleDetail = const TextStyle( 69 | color: Colors.foodTitle, 70 | fontFamily: 'Poppins', 71 | fontWeight: FontWeight.w600, 72 | fontSize: 36.0); 73 | 74 | static const TextStyle foodLocationDetail = const TextStyle( 75 | color: Colors.foodLocation, 76 | fontFamily: 'Poppins', 77 | fontWeight: FontWeight.w400, 78 | fontSize: 24.0); 79 | 80 | static const TextStyle foodDistanceDetail = const TextStyle( 81 | color: Colors.foodDistance, 82 | fontFamily: 'Poppins', 83 | fontWeight: FontWeight.w300, 84 | fontSize: 18.0); 85 | 86 | static const TextStyle snackBar = const TextStyle( 87 | color: Colors.foodTitle, 88 | fontFamily: 'Poppins', 89 | fontWeight: FontWeight.w300, 90 | fontSize: 22.0); 91 | } 92 | -------------------------------------------------------------------------------- /hello_world/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 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Recipes/PageTransformer.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:meta/meta.dart'; 3 | 4 | typedef PageView PageViewBuilder( 5 | BuildContext context, PageVisibilityResolver visibilityResolver); 6 | 7 | class PageVisibilityResolver { 8 | PageVisibilityResolver({ 9 | ScrollMetrics metrics, 10 | double viewPortFraction, 11 | }) : this._pageMetrics = metrics, 12 | this._viewPortFraction = viewPortFraction; 13 | 14 | final ScrollMetrics _pageMetrics; 15 | final double _viewPortFraction; 16 | 17 | PageVisibility resolvePageVisibility(int pageIndex) { 18 | final double pagePosition = _calculatePagePosition(pageIndex); 19 | final double visiblePageFraction = 20 | _calculateVisiblePageFraction(pageIndex, pagePosition); 21 | 22 | return PageVisibility( 23 | visibleFraction: visiblePageFraction, 24 | pagePosition: pagePosition, 25 | ); 26 | } 27 | 28 | double _calculateVisiblePageFraction(int index, double pagePosition) { 29 | if (pagePosition > -1.0 && pagePosition <= 1.0) { 30 | return 1.0 - pagePosition.abs(); 31 | } 32 | 33 | return 0.0; 34 | } 35 | 36 | double _calculatePagePosition(int index) { 37 | final double viewPortFraction = _viewPortFraction ?? 1.0; 38 | final double pageViewWidth = 39 | (_pageMetrics?.viewportDimension ?? 1.0) * viewPortFraction; 40 | final double pageX = pageViewWidth * index; 41 | final double scrollX = (_pageMetrics?.pixels ?? 0.0); 42 | final double pagePosition = (pageX - scrollX) / pageViewWidth; 43 | final double safePagePosition = !pagePosition.isNaN ? pagePosition : 0.0; 44 | 45 | if (safePagePosition > 1.0) { 46 | return 1.0; 47 | } else if (safePagePosition < -1.0) { 48 | return -1.0; 49 | } 50 | 51 | return safePagePosition; 52 | } 53 | } 54 | 55 | class PageVisibility { 56 | PageVisibility({ 57 | @required this.visibleFraction, 58 | @required this.pagePosition, 59 | }); 60 | 61 | final double visibleFraction; 62 | final double pagePosition; 63 | } 64 | 65 | class PageTransformer extends StatefulWidget { 66 | PageTransformer({ 67 | @required this.pageViewBuilder, 68 | }); 69 | 70 | final PageViewBuilder pageViewBuilder; 71 | 72 | @override 73 | _PageTransformerState createState() => _PageTransformerState(); 74 | } 75 | 76 | class _PageTransformerState extends State { 77 | PageVisibilityResolver _visibilityResolver; 78 | 79 | @override 80 | Widget build(BuildContext context) { 81 | final pageView = widget.pageViewBuilder( 82 | context, _visibilityResolver ?? PageVisibilityResolver()); 83 | 84 | final controller = pageView.controller; 85 | final viewPortFraction = controller.viewportFraction; 86 | 87 | return NotificationListener( 88 | onNotification: (ScrollNotification notification) { 89 | setState(() { 90 | _visibilityResolver = PageVisibilityResolver( 91 | metrics: notification.metrics, 92 | viewPortFraction: viewPortFraction, 93 | ); 94 | }); 95 | }, 96 | child: pageView, 97 | ); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /hello_world/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Recipes/RecipeItem.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:meta/meta.dart'; 3 | import '../../MODEL/Recipe.dart'; 4 | import '../../Routes.dart'; 5 | import 'package:fluro/fluro.dart'; 6 | import '../../DAO/FavoritesDao.dart'; 7 | import '../../DAO/RecipeDao.dart'; 8 | import 'RecipeList.dart'; 9 | 10 | class RecipeItem extends StatefulWidget { 11 | RecipeItem({ 12 | @required this.recipe, 13 | @required this.parent, 14 | }); 15 | 16 | final Recipe recipe; 17 | final RecipeListState parent; 18 | 19 | @override 20 | _RecipeItemState createState() => _RecipeItemState(); 21 | } 22 | 23 | class _RecipeItemState extends State { 24 | // @override 25 | // void dispose() { 26 | // // FavoritesDao.postFavorites(); 27 | // super.dispose(); 28 | // } 29 | 30 | @override 31 | Widget build(BuildContext context) { 32 | var image = Image.asset( 33 | widget.recipe.image, 34 | fit: BoxFit.cover, 35 | alignment: Alignment.center, 36 | ); 37 | 38 | var imageOverlayGradient = DecoratedBox( 39 | decoration: BoxDecoration( 40 | gradient: LinearGradient( 41 | begin: FractionalOffset.topCenter, 42 | end: FractionalOffset.bottomCenter, 43 | colors: [ 44 | const Color(0x0F000000), 45 | const Color(0xA0000000), 46 | ], 47 | ), 48 | ), 49 | ); 50 | 51 | _navigateTo(context, int id) { 52 | Routes.navigateTo(context, '/detailRecipe/$id', 53 | transition: TransitionType.fadeIn); 54 | } 55 | 56 | Widget favorite(Recipe item) { 57 | final bool alreadySaved = FavoritesDao.favoritesIds.contains(item.id); 58 | return IconButton( 59 | icon: Icon( 60 | alreadySaved ? Icons.favorite : Icons.favorite_border, 61 | color: alreadySaved ? Colors.white : null, 62 | ), 63 | onPressed: () { 64 | widget.parent.setState(() {}); 65 | setState( 66 | () { 67 | if (alreadySaved) { 68 | FavoritesDao.favoritesIds.remove(item.id); 69 | FavoritesDao.favorites 70 | .remove(FavoritesDao.getRecipeById(item.id)); 71 | for (int i = 0; i < FavoritesDao.favoritesIds.length; i++) 72 | print(FavoritesDao.favoritesIds[i]); 73 | print(""); 74 | for (int i = 0; i < FavoritesDao.favorites.length; i++) 75 | print(FavoritesDao.favorites[i].name); 76 | print(""); 77 | } else { 78 | FavoritesDao.favoritesIds.add(item.id); 79 | FavoritesDao.favorites 80 | .add(RecipeDao.getRecipeById(item.id.toString())); 81 | for (int i = 0; i < FavoritesDao.favoritesIds.length; i++) 82 | print(FavoritesDao.favoritesIds[i]); 83 | print(""); 84 | } 85 | // FavoritesDao.asd(); 86 | }, 87 | ); 88 | }, 89 | color: Colors.white, 90 | ); 91 | } 92 | 93 | return FlatButton( 94 | onPressed: () => _navigateTo(context, widget.recipe.id), 95 | child: Material( 96 | elevation: 4.0, 97 | borderRadius: BorderRadius.circular(8.0), 98 | child: Stack( 99 | fit: StackFit.expand, 100 | children: [ 101 | image, 102 | imageOverlayGradient, 103 | Container( 104 | alignment: Alignment.bottomCenter, 105 | padding: EdgeInsets.only(bottom: 10.0), 106 | child: Text( 107 | widget.recipe.name, 108 | textAlign: TextAlign.center, 109 | style: TextStyle( 110 | letterSpacing: 2.0, 111 | fontWeight: FontWeight.w800, 112 | color: Colors.white, 113 | ), 114 | ), 115 | ), 116 | Container( 117 | alignment: Alignment.topLeft, 118 | child: favorite(widget.recipe), 119 | ), 120 | ], 121 | ), 122 | ), 123 | ); 124 | } 125 | } 126 | -------------------------------------------------------------------------------- /hello_world/lib/MyHomePage.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'drawer.dart'; 3 | import 'DAO/RecipeDao.dart'; 4 | import 'Routes.dart'; 5 | import 'package:fluro/fluro.dart'; 6 | 7 | class MyHomePage extends StatefulWidget { 8 | MyHomePage({Key key}) : super(key: key); 9 | 10 | @override 11 | HomePageState createState() => HomePageState(); 12 | } 13 | 14 | Widget logo() { 15 | return Image( 16 | width: 200.0, 17 | image: AssetImage("lib/assets/logo.png"), 18 | ); 19 | } 20 | 21 | class HomePageState extends State { 22 | @override 23 | Widget build(BuildContext context) { 24 | return Scaffold( 25 | appBar: AppBar( 26 | 27 | title: Text("Anasayfa"), 28 | ), 29 | drawer: MyDrawer(), 30 | body: Body(), 31 | ); 32 | } 33 | } 34 | 35 | class Body extends StatelessWidget { 36 | final randomRecipe = RecipeDao.recipes[1]; 37 | @override 38 | Widget build(BuildContext context) { 39 | Widget _applyTextEffects({ 40 | @required double translationFactor, 41 | @required Widget child, 42 | }) { 43 | final double xTranslation = 10.0; 44 | 45 | return Opacity( 46 | opacity: 0.6, 47 | child: Transform( 48 | alignment: FractionalOffset.topLeft, 49 | transform: Matrix4.translationValues( 50 | xTranslation, 51 | 0.0, 52 | 0.0, 53 | ), 54 | child: child, 55 | ), 56 | ); 57 | } 58 | 59 | _buildTextContainer(BuildContext context) { 60 | var textTheme = Theme.of(context).textTheme; 61 | var categoryText = _applyTextEffects( 62 | translationFactor: 300.0, 63 | child: Text( 64 | randomRecipe.name, 65 | style: textTheme.caption.copyWith( 66 | color: Colors.white, 67 | fontWeight: FontWeight.w800, 68 | letterSpacing: 2.0, 69 | fontSize: 24.0, 70 | ), 71 | textAlign: TextAlign.center, 72 | ), 73 | ); 74 | 75 | var titleText = _applyTextEffects( 76 | translationFactor: 200.0, 77 | child: Padding( 78 | padding: const EdgeInsets.only(top: 16.0), 79 | child: Text( 80 | randomRecipe.calorie.toString() + " kcal", 81 | style: textTheme.title 82 | .copyWith(color: Colors.white, fontWeight: FontWeight.bold), 83 | textAlign: TextAlign.center, 84 | ), 85 | ), 86 | ); 87 | 88 | return Positioned( 89 | bottom: 56.0, 90 | left: 32.0, 91 | right: 32.0, 92 | child: Column( 93 | mainAxisSize: MainAxisSize.min, 94 | children: [ 95 | categoryText, 96 | titleText, 97 | ], 98 | ), 99 | ); 100 | } 101 | 102 | var image = Image.asset( 103 | randomRecipe.image, 104 | fit: BoxFit.cover, 105 | alignment: FractionalOffset( 106 | 0.5, 107 | 0.5, 108 | ), 109 | ); 110 | 111 | var imageOverlayGradient = DecoratedBox( 112 | decoration: BoxDecoration( 113 | gradient: LinearGradient( 114 | begin: FractionalOffset.topCenter, 115 | end: FractionalOffset.bottomCenter, 116 | colors: [ 117 | const Color(0xFF000000), 118 | const Color(0x0F000000), 119 | const Color(0xFF000000), 120 | ], 121 | ), 122 | ), 123 | ); 124 | 125 | _navigateTo(context, int id) { 126 | Routes.navigateTo(context, '/detailRecipe/$id', 127 | transition: TransitionType.fadeIn); 128 | } 129 | 130 | return FlatButton( 131 | onPressed: () => _navigateTo(context, randomRecipe.id), 132 | child: Padding( 133 | padding: const EdgeInsets.symmetric( 134 | vertical: 16.0, 135 | horizontal: 8.0, 136 | ), 137 | child: Material( 138 | elevation: 4.0, 139 | borderRadius: BorderRadius.circular(8.0), 140 | child: Stack( 141 | fit: StackFit.expand, 142 | children: [ 143 | image, 144 | imageOverlayGradient, 145 | _buildTextContainer(context), 146 | ], 147 | ), 148 | ), 149 | ), 150 | ); 151 | } 152 | } 153 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Foods/FoodDetailPage.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../../MODEL/Food.dart'; 3 | import '../../DAO/FoodDao.dart'; 4 | import '../DetailAppBar.dart'; 5 | import 'FoodDetailBody.dart'; 6 | import '../../Theme.dart' as Theme; 7 | import '../../DAO/IngredientsListDao.dart'; 8 | 9 | const MAX_INGREDIENTS = 10; 10 | 11 | class FoodDetailPage extends StatelessWidget { 12 | final Food food; 13 | 14 | FoodDetailPage(String name) : food = FoodDao.getFoodByName(name); 15 | 16 | final GlobalKey _scaffoldKey = new GlobalKey(); 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | final String title = "Tarif Listesine Ekle"; 21 | final double barHeight = 50.0; 22 | final double statusbarHeight = MediaQuery.of(context).padding.bottom; 23 | 24 | List healthPointButtonColor() { 25 | if (food.healthPoint > 4) 26 | return [Colors.green[700], Colors.green]; 27 | else if (food.healthPoint > 3) 28 | return [Colors.lightGreen, Colors.lightGreen[500]]; 29 | else if (food.healthPoint > 2) 30 | return [Colors.yellow, Colors.yellow[700]]; 31 | else if (food.healthPoint > 1) 32 | return [Colors.orange, Colors.orangeAccent]; 33 | return [Colors.red, Colors.redAccent]; 34 | } 35 | 36 | void showInSnackBar(String value, Color color) { 37 | FocusScope.of(context).requestFocus(new FocusNode()); 38 | _scaffoldKey.currentState?.removeCurrentSnackBar(); 39 | _scaffoldKey.currentState.showSnackBar( 40 | new SnackBar( 41 | content: new Text( 42 | value, 43 | textAlign: TextAlign.center, 44 | style: Theme.TextStyles.snackBar, 45 | ), 46 | backgroundColor: color, 47 | duration: Duration(seconds: 3), 48 | ), 49 | ); 50 | } 51 | 52 | final addButton = new Container( 53 | alignment: Alignment.bottomCenter, 54 | height: statusbarHeight + barHeight, 55 | child: new Center( 56 | child: FlatButton( 57 | onPressed: () { 58 | for (int i = 0; i < IngredientsListDao.ingredients.length; i++) { 59 | print(IngredientsListDao.ingredients.elementAt(i).name); 60 | } 61 | print(""); 62 | if (IngredientsListDao.ingredients.contains(food)) { 63 | showInSnackBar( 64 | food.name + ', zaten tarif listesinde!', Colors.red); 65 | } else { 66 | if (IngredientsListDao.ingredients.length >= MAX_INGREDIENTS) { 67 | showInSnackBar( 68 | 'Tarif listesine en fazla ' + 69 | MAX_INGREDIENTS.toString() + 70 | ' besin eklenebilir!', 71 | Colors.red, 72 | ); 73 | } else { 74 | IngredientsListDao.ingredients.add(food); 75 | showInSnackBar( 76 | food.name + ', tarif listesine eklendi.', Colors.green); 77 | } 78 | } 79 | }, 80 | child: Row( 81 | mainAxisAlignment: MainAxisAlignment.center, 82 | children: [ 83 | new Text( 84 | title, 85 | style: TextStyle( 86 | color: Colors.white, 87 | fontWeight: FontWeight.w500, 88 | fontSize: 25.0, 89 | ), 90 | ), 91 | new Padding( 92 | padding: EdgeInsets.symmetric(horizontal: 10.0), 93 | ), 94 | new Icon( 95 | Icons.arrow_forward, 96 | color: Colors.white, 97 | ) 98 | ], 99 | ), 100 | ), 101 | ), 102 | decoration: new BoxDecoration( 103 | gradient: new LinearGradient( 104 | colors: healthPointButtonColor(), 105 | begin: const FractionalOffset(0.0, 0.0), 106 | end: const FractionalOffset(0.5, 0.0), 107 | stops: [0.0, 1.0], 108 | tileMode: TileMode.clamp), 109 | ), 110 | ); 111 | 112 | return Scaffold( 113 | key: _scaffoldKey, 114 | backgroundColor: Theme.Colors.foodPageBackground, 115 | body: Stack( 116 | children: [ 117 | ListView( 118 | children: [ 119 | FoodDetailBody(food), 120 | ], 121 | ), 122 | DetailAppBar(), 123 | Align( 124 | alignment: Alignment.bottomCenter, 125 | child: addButton, 126 | ), 127 | ], 128 | ), 129 | ); 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Recipes/deneme2.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:meta/meta.dart'; 3 | import 'PageTransformer.dart'; 4 | import '../../MODEL/Recipe.dart'; 5 | import '../../Routes.dart'; 6 | import 'package:fluro/fluro.dart'; 7 | // import '../../DAO/FavoritesDao.dart'; 8 | 9 | class RecipeItem extends StatefulWidget { 10 | RecipeItem({ 11 | @required this.recipe, 12 | @required this.pageVisibility, 13 | }); 14 | 15 | final Recipe recipe; 16 | final PageVisibility pageVisibility; 17 | 18 | @override 19 | _RecipeItemState createState() => _RecipeItemState(); 20 | } 21 | 22 | class _RecipeItemState extends State { 23 | Widget _applyTextEffects({ 24 | @required double translationFactor, 25 | @required Widget child, 26 | }) { 27 | final double xTranslation = 28 | widget.pageVisibility.pagePosition * translationFactor; 29 | 30 | return Opacity( 31 | opacity: widget.pageVisibility.visibleFraction, 32 | child: Transform( 33 | alignment: FractionalOffset.topLeft, 34 | transform: Matrix4.translationValues( 35 | xTranslation, 36 | 0.0, 37 | 0.0, 38 | ), 39 | child: child, 40 | ), 41 | ); 42 | } 43 | 44 | // Widget favorite(item) { 45 | // final bool alreadySaved = FavoritesDao.saved.contains(item); 46 | // return IconButton( 47 | // icon: Icon( 48 | // alreadySaved ? Icons.favorite : Icons.favorite_border, 49 | // color: alreadySaved ? Colors.white : null, 50 | // ), 51 | // onPressed: () { 52 | // setState(() { 53 | // if (alreadySaved) { 54 | // FavoritesDao.saved..remove(widget.recipe); 55 | // } else { 56 | // FavoritesDao.saved.add(widget.recipe); 57 | // } 58 | // }); 59 | // }, 60 | // color: Colors.white, 61 | // ); 62 | // } 63 | 64 | _buildTextContainer(BuildContext context) { 65 | var textTheme = Theme.of(context).textTheme; 66 | var categoryText = _applyTextEffects( 67 | translationFactor: 300.0, 68 | child: Text( 69 | widget.recipe.name, 70 | style: textTheme.caption.copyWith( 71 | color: Colors.white, 72 | fontWeight: FontWeight.w800, 73 | letterSpacing: 2.0, 74 | fontSize: 24.0, 75 | ), 76 | textAlign: TextAlign.center, 77 | ), 78 | ); 79 | 80 | var titleText = _applyTextEffects( 81 | translationFactor: 200.0, 82 | child: Padding( 83 | padding: const EdgeInsets.only(top: 16.0), 84 | child: Text( 85 | widget.recipe.calorie.toString() + " kcal", 86 | style: textTheme.title 87 | .copyWith(color: Colors.white, fontWeight: FontWeight.bold), 88 | textAlign: TextAlign.center, 89 | ), 90 | ), 91 | ); 92 | 93 | return Positioned( 94 | bottom: 56.0, 95 | left: 32.0, 96 | right: 32.0, 97 | child: Column( 98 | mainAxisSize: MainAxisSize.min, 99 | children: [ 100 | categoryText, 101 | titleText, 102 | // favorite(widget.recipe), 103 | ], 104 | ), 105 | ); 106 | } 107 | 108 | @override 109 | Widget build(BuildContext context) { 110 | var image = Image.asset( 111 | widget.recipe.image, 112 | fit: BoxFit.cover, 113 | alignment: FractionalOffset( 114 | 0.5 + (widget.pageVisibility.pagePosition), 115 | 0.5, 116 | ), 117 | ); 118 | 119 | var imageOverlayGradient = DecoratedBox( 120 | decoration: BoxDecoration( 121 | gradient: LinearGradient( 122 | begin: FractionalOffset.topCenter, 123 | end: FractionalOffset.bottomCenter, 124 | colors: [ 125 | const Color(0xF0000000), 126 | const Color(0x0F000000), 127 | const Color(0xFF000000), 128 | ], 129 | ), 130 | ), 131 | ); 132 | 133 | _navigateTo(context, int id) { 134 | Routes.navigateTo(context, '/detailRecipe/$id', 135 | transition: TransitionType.fadeIn); 136 | } 137 | 138 | return FlatButton( 139 | onPressed: () => _navigateTo(context, widget.recipe.id), 140 | child: Padding( 141 | padding: const EdgeInsets.symmetric( 142 | vertical: 16.0, 143 | horizontal: 8.0, 144 | ), 145 | child: Material( 146 | elevation: 4.0, 147 | borderRadius: BorderRadius.circular(8.0), 148 | child: Stack( 149 | fit: StackFit.expand, 150 | children: [ 151 | image, 152 | imageOverlayGradient, 153 | _buildTextContainer(context), 154 | ], 155 | ), 156 | ), 157 | ), 158 | ); 159 | } 160 | } 161 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Foods/FoodDetailBody.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../../Theme.dart' as Theme; 3 | import '../../MODEL/Food.dart'; 4 | // import '../../DAO/IngredientsListDao.dart'; 5 | import 'FoodRow.dart'; 6 | 7 | class FoodDetailBody extends StatelessWidget { 8 | final Food food; 9 | 10 | FoodDetailBody(this.food); 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | final foodThumbnail = Container( 15 | alignment: Alignment.topCenter, 16 | child: Hero( 17 | tag: 'food-icon-${food.name}', 18 | child: Image( 19 | image: AssetImage(food.image), 20 | height: Theme.Dimens.foodHeightDetail, 21 | width: Theme.Dimens.foodWidthDetail, 22 | ), 23 | ), 24 | ); 25 | 26 | final foodCard = Container( 27 | margin: const EdgeInsets.symmetric(horizontal: 20.0, vertical: 40.0), 28 | decoration: BoxDecoration( 29 | color: Theme.Colors.foodCard, 30 | shape: BoxShape.rectangle, 31 | borderRadius: BorderRadius.circular(8.0), 32 | boxShadow: [ 33 | BoxShadow( 34 | color: Colors.black, blurRadius: 10.0, offset: Offset(0.0, 10.0)) 35 | ], 36 | ), 37 | child: Container( 38 | alignment: Alignment.center, 39 | margin: const EdgeInsets.only(top: 75.0), 40 | constraints: BoxConstraints.expand(), 41 | child: Column( 42 | mainAxisAlignment: MainAxisAlignment.center, 43 | children: [ 44 | Text(food.name, style: Theme.TextStyles.foodTitleDetail), 45 | Text(food.calorie.toString() + " kcal", 46 | style: Theme.TextStyles.foodLocationDetail), 47 | Container( 48 | color: FoodRow.healthPointColor(food.healthPoint), 49 | width: 48.0, 50 | height: 2.0, 51 | margin: const EdgeInsets.symmetric(vertical: 8.0), 52 | ), 53 | Padding( 54 | padding: EdgeInsets.only(top: 15.0), 55 | child: Row( 56 | mainAxisAlignment: MainAxisAlignment.center, 57 | children: [ 58 | Column( 59 | children: [ 60 | Text("Karbonhidrat", 61 | style: Theme.TextStyles.foodDistance), 62 | Text(food.carb.toString(), 63 | style: Theme.TextStyles.foodDistanceDetail), 64 | ], 65 | ), 66 | Container(width: 24.0), 67 | Column( 68 | children: [ 69 | Text("Protein", style: Theme.TextStyles.foodDistance), 70 | Text(food.protein.toString(), 71 | style: Theme.TextStyles.foodDistanceDetail), 72 | ], 73 | ), 74 | Container(width: 24.0), 75 | Column( 76 | children: [ 77 | Text("Yağ", style: Theme.TextStyles.foodDistance), 78 | Text(food.fat.toString(), 79 | style: Theme.TextStyles.foodDistanceDetail), 80 | ], 81 | ), 82 | ], 83 | ), 84 | ), 85 | ], 86 | ), 87 | ), 88 | ); 89 | 90 | final double barHeight = 50.0; 91 | final double statusbarHeight = MediaQuery.of(context).padding.bottom + 10; 92 | 93 | final double paddingBottom = barHeight + statusbarHeight; 94 | 95 | final foodDescription = Container( 96 | margin: EdgeInsets.only(right: 30.0, left: 30.0, bottom: paddingBottom), 97 | constraints: BoxConstraints.expand(), 98 | child: SingleChildScrollView( 99 | child: Column( 100 | crossAxisAlignment: CrossAxisAlignment.start, 101 | children: [ 102 | Text("Tanım", style: Theme.TextStyles.foodTitle), 103 | Container( 104 | color: FoodRow.healthPointColor(food.healthPoint), 105 | width: 48.0, 106 | height: 2.0, 107 | margin: const EdgeInsets.symmetric(vertical: 8.0), 108 | ), 109 | Container( 110 | child: Padding( 111 | padding: EdgeInsets.only(top: 10.0), 112 | child: Row( 113 | children: [ 114 | Flexible( 115 | child: Text( 116 | food.description, 117 | style: TextStyle( 118 | color: Colors.white70, 119 | fontSize: 16.0, 120 | fontWeight: FontWeight.w600), 121 | ), 122 | ), 123 | ], 124 | ), 125 | ), 126 | ), 127 | ], 128 | ), 129 | ), 130 | ); 131 | 132 | final top = MediaQuery.of(context).viewInsets.top + 40; 133 | return Column( 134 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 135 | children: [ 136 | Container( 137 | height: MediaQuery.of(context).size.height / 2, 138 | margin: EdgeInsets.only(top: top), 139 | child: Stack( 140 | children: [ 141 | foodCard, 142 | foodThumbnail, 143 | ], 144 | ), 145 | ), 146 | Container( 147 | height: MediaQuery.of(context).size.height / 2.1, 148 | child: foodDescription, 149 | ), 150 | ], 151 | ); 152 | } 153 | } 154 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Ingredients/ingredients.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../../Theme.dart' as Theme; 3 | import '../../DAO/IngredientsListDao.dart'; 4 | import '../../DAO/AdviceDao.dart'; 5 | import '../Recipes/RecipeList.dart'; 6 | import '../../MODEL/Recipe.dart'; 7 | 8 | class Ingredients extends StatefulWidget { 9 | @override 10 | _IngredientsState createState() => _IngredientsState(); 11 | } 12 | 13 | class _IngredientsState extends State { 14 | final GlobalKey _scaffoldKey = new GlobalKey(); 15 | 16 | void showInSnackBar(String value) { 17 | FocusScope.of(context).requestFocus(new FocusNode()); 18 | _scaffoldKey.currentState?.removeCurrentSnackBar(); 19 | _scaffoldKey.currentState.showSnackBar(new SnackBar( 20 | content: new Text( 21 | value, 22 | textAlign: TextAlign.center, 23 | style: Theme.TextStyles.snackBar, 24 | ), 25 | backgroundColor: Colors.red, 26 | duration: Duration(seconds: 3), 27 | )); 28 | } 29 | 30 | @override 31 | Widget build(BuildContext context) { 32 | return Scaffold( 33 | key: _scaffoldKey, 34 | appBar: AppBar( 35 | centerTitle: true, 36 | title: Text( 37 | "İçindekiler", 38 | style: Theme.TextStyles.appBarTitle, 39 | ), 40 | ), 41 | body: Container( 42 | color: Theme.Colors.foodPageBackground, 43 | child: IngredientsListDao.ingredients.isEmpty 44 | ? Center( 45 | child: Text( 46 | "İçindekiler Listesi Boş!", 47 | style: Theme.TextStyles.appBarTitle, 48 | ), 49 | ) 50 | : ListView.builder( 51 | itemExtent: 80.0, 52 | itemCount: IngredientsListDao.ingredients.length, 53 | itemBuilder: (_, index) { 54 | final foodThumbnail = Container( 55 | alignment: Alignment.centerLeft, 56 | margin: const EdgeInsets.only(left: 32.0), 57 | child: Hero( 58 | tag: 59 | 'food-icon-${IngredientsListDao.ingredients.elementAt(index).name}', 60 | child: Image( 61 | image: AssetImage(IngredientsListDao.ingredients 62 | .elementAt(index) 63 | .image), 64 | height: 35, 65 | width: 35, 66 | ), 67 | ), 68 | ); 69 | 70 | final foodCard = Container( 71 | margin: const EdgeInsets.only(left: 24.0, right: 24.0), 72 | decoration: BoxDecoration( 73 | color: Theme.Colors.foodCard, 74 | shape: BoxShape.rectangle, 75 | borderRadius: BorderRadius.circular(8.0), 76 | boxShadow: [ 77 | BoxShadow( 78 | color: Colors.black, 79 | blurRadius: 10.0, 80 | offset: Offset(0.0, 10.0), 81 | ) 82 | ], 83 | ), 84 | child: Container( 85 | margin: const EdgeInsets.only(top: 12.0), 86 | constraints: BoxConstraints.expand(), 87 | child: Column( 88 | crossAxisAlignment: CrossAxisAlignment.center, 89 | children: [ 90 | Text( 91 | IngredientsListDao.ingredients 92 | .elementAt(index) 93 | .name, 94 | style: Theme.TextStyles.foodTitle, 95 | ), 96 | ], 97 | ), 98 | ), 99 | ); 100 | 101 | final deleteButton = Container( 102 | alignment: Alignment.centerRight, 103 | margin: const EdgeInsets.only(top: 8.0, right: 24.0), 104 | child: IconButton( 105 | icon: Icon( 106 | Icons.cancel, 107 | color: Colors.white, 108 | ), 109 | onPressed: () { 110 | IngredientsListDao.ingredients.remove( 111 | IngredientsListDao.ingredients.elementAt(index)); 112 | setState(() {}); 113 | }, 114 | ), 115 | ); 116 | 117 | return Container( 118 | margin: const EdgeInsets.only(top: 16.0, bottom: 8.0), 119 | child: Stack( 120 | children: [ 121 | foodCard, 122 | foodThumbnail, 123 | deleteButton, 124 | ], 125 | ), 126 | ); 127 | }, 128 | ), 129 | ), 130 | floatingActionButton: FloatingActionButton( 131 | child: Icon(Icons.arrow_forward_ios), 132 | onPressed: () { 133 | if (IngredientsListDao.ingredients.isEmpty) { 134 | showInSnackBar( 135 | "İçindekiler listesinde en az bir besin bulunmalıdır!"); 136 | } else { 137 | Navigator.push( 138 | context, 139 | MaterialPageRoute( 140 | builder: (context) { 141 | return FutureBuilder( 142 | future: 143 | AdviceDao.getAdvices(IngredientsListDao.ingredients), 144 | builder: (context, snapshot) { 145 | if (!snapshot.hasData) { 146 | return Container( 147 | color: Theme.Colors.foodCard, 148 | child: Center( 149 | child: CircularProgressIndicator(), 150 | ), 151 | ); 152 | } else { 153 | List advices = snapshot.data; 154 | return RecipeList(advices, "Tavsiyeler"); 155 | } 156 | }, 157 | ); 158 | }, 159 | ), 160 | ); 161 | } 162 | }, 163 | ), 164 | ); 165 | } 166 | } 167 | -------------------------------------------------------------------------------- /hello_world/lib/backdrop.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math' as math; 2 | import 'package:flutter/material.dart'; 3 | import 'package:meta/meta.dart'; 4 | 5 | const _kFlingVelocity = 2.0; 6 | 7 | class _BackdropPanel extends StatelessWidget { 8 | const _BackdropPanel({ 9 | Key key, 10 | this.onTap, 11 | this.onVerticalDragUpdate, 12 | this.onVerticalDragEnd, 13 | this.title, 14 | this.child, 15 | this.titleHeight, 16 | this.padding, 17 | }) : super(key: key); 18 | 19 | final VoidCallback onTap; 20 | final GestureDragUpdateCallback onVerticalDragUpdate; 21 | final GestureDragEndCallback onVerticalDragEnd; 22 | final Widget title; 23 | final Widget child; 24 | final double titleHeight; 25 | final EdgeInsets padding; 26 | 27 | @override 28 | Widget build(BuildContext context) { 29 | return Padding( 30 | padding: padding, 31 | child: Material( 32 | elevation: 12.0, 33 | borderRadius: BorderRadius.only( 34 | topLeft: Radius.circular(16.0), 35 | topRight: Radius.circular(16.0), 36 | ), 37 | child: Column( 38 | crossAxisAlignment: CrossAxisAlignment.stretch, 39 | children: [ 40 | GestureDetector( 41 | behavior: HitTestBehavior.opaque, 42 | onVerticalDragUpdate: onVerticalDragUpdate, 43 | onVerticalDragEnd: onVerticalDragEnd, 44 | onTap: onTap, 45 | child: Container(height: titleHeight, child: title), 46 | ), 47 | Divider( 48 | height: 1.0, 49 | ), 50 | Expanded( 51 | child: child, 52 | ), 53 | ], 54 | ), 55 | ), 56 | ); 57 | } 58 | } 59 | 60 | class Backdrop extends StatefulWidget { 61 | final Widget frontLayer; 62 | final Widget backLayer; 63 | final Widget frontHeader; 64 | final double frontPanelOpenHeight; 65 | final double frontHeaderHeight; 66 | final bool frontHeaderVisibleClosed; 67 | final EdgeInsets frontPanelPadding; 68 | final ValueNotifier panelVisible; 69 | 70 | Backdrop( 71 | {@required this.frontLayer, 72 | @required this.backLayer, 73 | this.frontPanelOpenHeight = 0.0, 74 | this.frontHeaderHeight = 48.0, 75 | this.frontPanelPadding = const EdgeInsets.all(0.0), 76 | this.frontHeaderVisibleClosed = true, 77 | this.panelVisible, 78 | this.frontHeader}) 79 | : assert(frontLayer != null), 80 | assert(backLayer != null); 81 | 82 | @override 83 | createState() => _BackdropState(); 84 | } 85 | 86 | class _BackdropState extends State 87 | with SingleTickerProviderStateMixin { 88 | final _backdropKey = GlobalKey(debugLabel: 'Backdrop'); 89 | AnimationController _controller; 90 | 91 | @override 92 | void initState() { 93 | super.initState(); 94 | _controller = AnimationController( 95 | duration: Duration(milliseconds: 300), 96 | // value of 0 hides the panel; value of 1 fully shows the panel 97 | value: (widget.panelVisible?.value ?? true) ? 1.0 : 0.0, 98 | vsync: this, 99 | ); 100 | 101 | // Listen on the toggle value notifier if it's not null 102 | 103 | widget.panelVisible?.addListener(_subscribeToValueNotifier); 104 | 105 | // Ensure that the value notifier is updated when the panel is opened or closed 106 | if (widget.panelVisible != null) { 107 | _controller.addStatusListener((status) { 108 | if (status == AnimationStatus.completed) 109 | widget.panelVisible.value = true; 110 | else if (status == AnimationStatus.dismissed) 111 | widget.panelVisible.value = false; 112 | }); 113 | } 114 | } 115 | 116 | void _subscribeToValueNotifier() { 117 | if (widget.panelVisible.value != _backdropPanelVisible) 118 | _toggleBackdropPanelVisibility(); 119 | } 120 | 121 | /// Required for resubscribing when hot reload occurs 122 | @override 123 | void didUpdateWidget(Backdrop oldWidget) { 124 | super.didUpdateWidget(oldWidget); 125 | oldWidget.panelVisible?.removeListener(_subscribeToValueNotifier); 126 | widget.panelVisible?.addListener(_subscribeToValueNotifier); 127 | } 128 | 129 | @override 130 | void dispose() { 131 | _controller.dispose(); 132 | widget.panelVisible?.dispose(); 133 | super.dispose(); 134 | } 135 | 136 | bool get _backdropPanelVisible => 137 | _controller.status == AnimationStatus.completed || 138 | _controller.status == AnimationStatus.forward; 139 | 140 | void _toggleBackdropPanelVisibility() => _controller.fling( 141 | velocity: _backdropPanelVisible ? -_kFlingVelocity : _kFlingVelocity); 142 | 143 | double get _backdropHeight { 144 | final RenderBox renderBox = _backdropKey.currentContext.findRenderObject(); 145 | return renderBox.size.height; 146 | } 147 | 148 | void _handleDragUpdate(DragUpdateDetails details) { 149 | if (!_controller.isAnimating) 150 | _controller.value -= details.primaryDelta / _backdropHeight; 151 | } 152 | 153 | void _handleDragEnd(DragEndDetails details) { 154 | if (_controller.isAnimating || 155 | _controller.status == AnimationStatus.completed) return; 156 | 157 | final double flingVelocity = 158 | details.velocity.pixelsPerSecond.dy / _backdropHeight; 159 | if (flingVelocity < 0.0) 160 | _controller.fling(velocity: math.max(_kFlingVelocity, -flingVelocity)); 161 | else if (flingVelocity > 0.0) 162 | _controller.fling(velocity: math.min(-_kFlingVelocity, -flingVelocity)); 163 | else 164 | _controller.fling( 165 | velocity: 166 | _controller.value < 0.5 ? -_kFlingVelocity : _kFlingVelocity); 167 | } 168 | 169 | @override 170 | Widget build(BuildContext context) { 171 | return LayoutBuilder(builder: (context, constraints) { 172 | final panelSize = constraints.biggest; 173 | final closedPercentage = widget.frontHeaderVisibleClosed 174 | ? (panelSize.height - widget.frontHeaderHeight) / panelSize.height 175 | : 1.0; 176 | final openPercentage = widget.frontPanelOpenHeight / panelSize.height; 177 | 178 | final panelDetailsPosition = Tween( 179 | begin: Offset(0.0, closedPercentage), 180 | end: Offset(0.0, openPercentage), 181 | ).animate(_controller.view); 182 | 183 | return Container( 184 | key: _backdropKey, 185 | child: Stack( 186 | children: [ 187 | widget.backLayer, 188 | SlideTransition( 189 | position: panelDetailsPosition, 190 | child: _BackdropPanel( 191 | onTap: _toggleBackdropPanelVisibility, 192 | onVerticalDragUpdate: _handleDragUpdate, 193 | onVerticalDragEnd: _handleDragEnd, 194 | title: widget.frontHeader, 195 | titleHeight: widget.frontHeaderHeight, 196 | child: widget.frontLayer, 197 | padding: widget.frontPanelPadding, 198 | ), 199 | ), 200 | ], 201 | ), 202 | ); 203 | }); 204 | } 205 | } 206 | -------------------------------------------------------------------------------- /hello_world/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: hello_world 2 | description: A new Flutter project. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # Read more about versioning at semver.org. 10 | version: 1.0.0+1 11 | 12 | environment: 13 | sdk: ">=2.0.0-dev.68.0 <3.0.0" 14 | 15 | dependencies: 16 | flutter: 17 | sdk: flutter 18 | 19 | # The following adds the Cupertino Icons font to your application. 20 | # Use with the CupertinoIcons class for iOS style icons. 21 | cupertino_icons: ^0.1.2 22 | fluro: "^1.1.0" 23 | http: ^0.12.0 24 | font_awesome_flutter: ^8.0.1 25 | camera: ^0.2.6 26 | shared_preferences: ^0.4.2 27 | 28 | dev_dependencies: 29 | flutter_test: 30 | sdk: flutter 31 | 32 | 33 | # For information on the generic Dart part of this file, see the 34 | # following page: https://www.dartlang.org/tools/pub/pubspec 35 | 36 | # The following section is specific to Flutter. 37 | flutter: 38 | 39 | # The following line ensures that the Material Icons font is 40 | # included with your application, so that you can use the icons in 41 | # the material Icons class. 42 | uses-material-design: true 43 | 44 | # To add assets to your application, add an assets section, like this: 45 | # assets: 46 | # - images/a_dot_burr.jpeg 47 | # - images/a_dot_ham.jpeg 48 | 49 | assets: 50 | - lib/assets/logo.png 51 | 52 | - lib/assets/foods/portakal.png 53 | - lib/assets/foods/elma.png 54 | - lib/assets/foods/armut.png 55 | - lib/assets/foods/cilek.png 56 | - lib/assets/foods/karpuz.png 57 | - lib/assets/foods/domates.png 58 | - lib/assets/foods/bitter_cikolata.png 59 | - lib/assets/foods/hindi_eti.png 60 | - lib/assets/foods/kabak.png 61 | - lib/assets/foods/kasar_peyniri.png 62 | - lib/assets/foods/kivircik_marul.png 63 | - lib/assets/foods/bezelye.png 64 | - lib/assets/foods/barbunya.png 65 | - lib/assets/foods/kuru_sogan.png 66 | - lib/assets/foods/limon.png 67 | - lib/assets/foods/maydanoz.png 68 | - lib/assets/foods/patates.png 69 | - lib/assets/foods/patlican.png 70 | - lib/assets/foods/salatalik.png 71 | - lib/assets/foods/salca.png 72 | - lib/assets/foods/sarimsak.png 73 | - lib/assets/foods/seker.png 74 | - lib/assets/foods/sivi_yag.png 75 | - lib/assets/foods/su.png 76 | - lib/assets/foods/tavuk_gogus.png 77 | - lib/assets/foods/tuz.png 78 | - lib/assets/foods/yesil_biber.png 79 | - lib/assets/foods/zeytinyagi.png 80 | - lib/assets/foods/havuc.png 81 | - lib/assets/foods/asma_yapragi.png 82 | - lib/assets/foods/badem.png 83 | - lib/assets/foods/bugday_unu.png 84 | - lib/assets/foods/bulgur.png 85 | - lib/assets/foods/ceviz.png 86 | - lib/assets/foods/cilek.png 87 | - lib/assets/foods/dana_eti.png 88 | - lib/assets/foods/dana_kiyma.png 89 | - lib/assets/foods/dereotu.png 90 | - lib/assets/foods/ekmek.png 91 | - lib/assets/foods/karnabahar.png 92 | - lib/assets/foods/kirmizi_biber.png 93 | - lib/assets/foods/muz.png 94 | - lib/assets/foods/nohut.png 95 | - lib/assets/foods/pirasa.png 96 | - lib/assets/foods/sucuk.png 97 | - lib/assets/foods/sut.png 98 | - lib/assets/foods/tereyagi.png 99 | - lib/assets/foods/yogurt.png 100 | - lib/assets/foods/tel_sehriye.png 101 | - lib/assets/foods/beyaz_pirinc.png 102 | - lib/assets/foods/yumurta.png 103 | - lib/assets/foods/kuru_fasulye.png 104 | 105 | - lib/assets/recipes/bitter_cikolatali_portakal_dilimleri.png 106 | - lib/assets/recipes/elmali_hindi.png 107 | - lib/assets/recipes/kivircik_salata.png 108 | - lib/assets/recipes/patlicanli_tavuk_burger.png 109 | - lib/assets/recipes/zeytinyagli_barbunya.png 110 | - lib/assets/recipes/zeytinyagli_bezelye.png 111 | - lib/assets/recipes/cacik.png 112 | - lib/assets/recipes/cilek_receli.png 113 | - lib/assets/recipes/dereotlu_kabak_yemegi.png 114 | - lib/assets/recipes/domates_corbasi.png 115 | - lib/assets/recipes/domatesli_patlican_salatasi.png 116 | - lib/assets/recipes/domatesli_pirinc_pilavi.png 117 | - lib/assets/recipes/etli_kis_turlusu.png 118 | - lib/assets/recipes/etli_kuru_fasulye.png 119 | - lib/assets/recipes/firin_kofte.png 120 | - lib/assets/recipes/firinda_kizartilmis_elma.png 121 | - lib/assets/recipes/firinda_peynirli_karnabahar.png 122 | - lib/assets/recipes/havuc_mucver.png 123 | - lib/assets/recipes/hunkar_begendi.png 124 | - lib/assets/recipes/icli_kofte.png 125 | - lib/assets/recipes/kabakli_havuc_salatasi.png 126 | - lib/assets/recipes/kasar_peynirli_omlet.png 127 | - lib/assets/recipes/kasarli_sucuklu_tost.png 128 | - lib/assets/recipes/kiymali_kabak_yemegi.png 129 | - lib/assets/recipes/kiymali_yaprak_sarma.png 130 | - lib/assets/recipes/kusbasi_tavuklu_patates.png 131 | - lib/assets/recipes/menemen.png 132 | - lib/assets/recipes/meyveli_yogurt.png 133 | - lib/assets/recipes/nohutlu_bulgur_pilavi.png 134 | - lib/assets/recipes/patates_koftesi.png 135 | - lib/assets/recipes/patates_oturtma.png 136 | - lib/assets/recipes/patates_pureli_kofte.png 137 | - lib/assets/recipes/patatesli_et_haslama.png 138 | - lib/assets/recipes/patatesli_yumurta.png 139 | - lib/assets/recipes/patlican_ezmesi.png 140 | - lib/assets/recipes/patlican_musakka.png 141 | - lib/assets/recipes/pirincli_kabak_corba.png 142 | - lib/assets/recipes/portakal_muz_salatasi.png 143 | - lib/assets/recipes/sac_kavurma.png 144 | - lib/assets/recipes/sarimsakli_karnabahar_musakka.png 145 | - lib/assets/recipes/sebzeli_tavuk_yemegi.png 146 | - lib/assets/recipes/sehriyeli_pilav.png 147 | - lib/assets/recipes/sulu_kofte.png 148 | - lib/assets/recipes/tavuk_corbasi.png 149 | - lib/assets/recipes/tavuk_kavurma.png 150 | - lib/assets/recipes/tavuk_sote.png 151 | - lib/assets/recipes/tavuklu_pilav.png 152 | - lib/assets/recipes/tereyagli_manti.png 153 | - lib/assets/recipes/yogurt_corbasi.png 154 | - lib/assets/recipes/karniyarik.png 155 | 156 | # An image asset can refer to one or more resolution-specific "variants", see 157 | # https://flutter.io/assets-and-images/#resolution-aware. 158 | 159 | # For details regarding adding assets from package dependencies, see 160 | # https://flutter.io/assets-and-images/#from-packages 161 | 162 | # To add custom fonts to your application, add a fonts section here, 163 | # in this "flutter" section. Each entry in this list should have a 164 | # "family" key with the font family name, and a "fonts" key with a 165 | # list giving the asset and other descriptors for the font. For 166 | # example: 167 | # fonts: 168 | # - family: Schyler 169 | # fonts: 170 | # - asset: fonts/Schyler-Regular.ttf 171 | # - asset: fonts/Schyler-Italic.ttf 172 | # style: italic 173 | # - family: Trajan Pro 174 | # fonts: 175 | # - asset: fonts/TrajanPro.ttf 176 | # - asset: fonts/TrajanPro_Bold.ttf 177 | # weight: 700 178 | # 179 | # For details regarding fonts from package dependencies, 180 | # see https://flutter.io/custom-fonts/#from-packages 181 | 182 | fonts: 183 | - family: Poppins 184 | fonts: 185 | - asset: lib/assets/fonts/Poppins-Medium.ttf 186 | weight: 400 187 | - asset: lib/assets/fonts/Poppins-Regular.ttf 188 | weight: 500 189 | - asset: lib/assets/fonts/Poppins-SemiBold.ttf 190 | weight: 600 191 | - asset: lib/assets/fonts/Poppins-Light.ttf 192 | weight: 300 193 | - asset: lib/assets/fonts/Poppins-Thin.ttf 194 | weight: 200 195 | -------------------------------------------------------------------------------- /hello_world/lib/UI/Recipes/RecipeDetailBody.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../../MODEL/Recipe.dart'; 3 | import '../../Theme.dart' as Theme; 4 | import '../../Routes.dart'; 5 | import 'package:fluro/fluro.dart'; 6 | import '../../DAO/FoodDao.dart'; 7 | 8 | class RecipeDetailBody extends StatelessWidget { 9 | final Recipe recipe; 10 | 11 | RecipeDetailBody(this.recipe); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | var image = Image.asset( 16 | recipe.image, 17 | fit: BoxFit.cover, 18 | ); 19 | 20 | var imageOverlay = Opacity( 21 | opacity: 0.8, 22 | child: Container( 23 | color: Colors.black, 24 | ), 25 | ); 26 | 27 | final recipeCard = Container( 28 | margin: const EdgeInsets.only(left: 20.0, right: 20.0, top: 20.0), 29 | decoration: BoxDecoration( 30 | color: Colors.transparent, 31 | shape: BoxShape.rectangle, 32 | borderRadius: BorderRadius.circular(8.0), 33 | border: Border.all(color: Colors.white), 34 | ), 35 | child: Container( 36 | alignment: Alignment.topCenter, 37 | constraints: BoxConstraints.expand(), 38 | child: Column( 39 | mainAxisAlignment: MainAxisAlignment.start, 40 | children: [ 41 | Padding( 42 | padding: EdgeInsets.only(top: 20.0), 43 | ), 44 | Text( 45 | recipe.name, 46 | style: Theme.TextStyles.foodTitle, 47 | textAlign: TextAlign.center, 48 | ), 49 | Text(recipe.calorie.toString() + " kcal", 50 | style: Theme.TextStyles.foodLocationDetail), 51 | Container( 52 | color: const Color(0xFF00C6FF), 53 | width: 48.0, 54 | height: 2.0, 55 | margin: const EdgeInsets.symmetric(vertical: 8.0), 56 | ), 57 | Padding( 58 | padding: EdgeInsets.only(top: 10.0), 59 | child: Row( 60 | mainAxisAlignment: MainAxisAlignment.center, 61 | children: [ 62 | Column( 63 | children: [ 64 | Text("Karbonhidrat", 65 | style: Theme.TextStyles.foodDistance), 66 | Text(recipe.carb.toString(), 67 | style: Theme.TextStyles.foodDistanceDetail), 68 | ], 69 | ), 70 | Container(width: 24.0), 71 | Column( 72 | children: [ 73 | Text("Protein", style: Theme.TextStyles.foodDistance), 74 | Text(recipe.protein.toString(), 75 | style: Theme.TextStyles.foodDistanceDetail), 76 | ], 77 | ), 78 | Container(width: 24.0), 79 | Column( 80 | children: [ 81 | Text("Yağ", style: Theme.TextStyles.foodDistance), 82 | Text(recipe.fat.toString(), 83 | style: Theme.TextStyles.foodDistanceDetail), 84 | ], 85 | ), 86 | ], 87 | ), 88 | ), 89 | Padding( 90 | padding: EdgeInsets.only(top: 10.0), 91 | child: Row( 92 | mainAxisAlignment: MainAxisAlignment.center, 93 | children: [ 94 | Column( 95 | children: [ 96 | Icon( 97 | Icons.access_time, 98 | color: const Color(0xFF00C6FF), 99 | ), 100 | Text(recipe.cookingMinutes.toString() + "dk", 101 | style: Theme.TextStyles.foodDistanceDetail), 102 | ], 103 | ), 104 | Container(width: 24.0), 105 | Column( 106 | children: [ 107 | Icon( 108 | Icons.favorite_border, 109 | color: const Color(0xFF00C6FF), 110 | ), 111 | Text(recipe.rating.toString(), 112 | style: Theme.TextStyles.foodDistanceDetail), 113 | ], 114 | ), 115 | ], 116 | ), 117 | ), 118 | ], 119 | ), 120 | ), 121 | ); 122 | 123 | final recipeDescription = Container( 124 | margin: EdgeInsets.only(left: 22.5, right: 22.5, bottom: 90.0), 125 | constraints: BoxConstraints.expand(), 126 | child: SingleChildScrollView( 127 | child: Column( 128 | crossAxisAlignment: CrossAxisAlignment.center, 129 | children: [ 130 | Text("Hazırlanış", style: Theme.TextStyles.foodTitle), 131 | Container( 132 | color: const Color(0xFF00C6FF), 133 | width: 96.0, 134 | height: 2.0, 135 | margin: const EdgeInsets.symmetric(vertical: 8.0), 136 | ), 137 | Padding( 138 | padding: EdgeInsets.only(top: 10.0), 139 | child: Row( 140 | children: [ 141 | Flexible( 142 | child: Text( 143 | recipe.description, 144 | style: TextStyle( 145 | color: Colors.white70, 146 | fontSize: 15, 147 | fontWeight: FontWeight.w600, 148 | ), 149 | ), 150 | ), 151 | ], 152 | ), 153 | ), 154 | ], 155 | ), 156 | ), 157 | ); 158 | 159 | _navigateTo(context, String name) { 160 | Routes.navigateTo(context, '/detailFood/$name', 161 | transition: TransitionType.fadeIn); 162 | } 163 | 164 | final recipeIngredients = Container( 165 | height: 80.0, 166 | child: new FutureBuilder( 167 | future: FoodDao.getIngredients(recipe.id), 168 | builder: (context, snapshot) { 169 | if (!snapshot.hasData) { 170 | return new Center( 171 | child: new CircularProgressIndicator( 172 | backgroundColor: Colors.white, 173 | ), 174 | ); 175 | } 176 | List ingredients = snapshot.data; 177 | 178 | return ListView.builder( 179 | scrollDirection: Axis.horizontal, 180 | shrinkWrap: true, 181 | itemExtent: 85.0, 182 | itemCount: ingredients.length, 183 | itemBuilder: (_, index) { 184 | return Container( 185 | margin: EdgeInsets.symmetric(horizontal: 5.0), 186 | alignment: Alignment.center, 187 | decoration: BoxDecoration( 188 | color: Colors.transparent, 189 | shape: BoxShape.rectangle, 190 | borderRadius: BorderRadius.circular(8.0), 191 | border: Border.all(color: Colors.white54), 192 | ), 193 | child: ListTile( 194 | title: Image( 195 | image: AssetImage(ingredients[index].image), 196 | ), 197 | onTap: () => _navigateTo(context, ingredients[index].name), 198 | ), 199 | ); 200 | }, 201 | ); 202 | }), 203 | ); 204 | 205 | final top = MediaQuery.of(context).viewInsets.top + 50; 206 | 207 | return Stack( 208 | fit: StackFit.expand, 209 | children: [ 210 | image, 211 | imageOverlay, 212 | Column( 213 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 214 | children: [ 215 | Container( 216 | height: MediaQuery.of(context).size.height / 2.4, 217 | margin: EdgeInsets.only(top: top), 218 | child: recipeCard, 219 | ), 220 | Container( 221 | height: MediaQuery.of(context).size.height / 2.0, 222 | child: recipeDescription, 223 | ), 224 | ], 225 | ), 226 | Align( 227 | alignment: Alignment.bottomCenter, 228 | child: recipeIngredients, 229 | ), 230 | ], 231 | ); 232 | } 233 | } 234 | -------------------------------------------------------------------------------- /hello_world/lib/drawer.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:shared_preferences/shared_preferences.dart'; 3 | import 'UI/Foods/FoodList.dart'; 4 | import 'Theme.dart' as Theme; 5 | import 'UI/Recipes/RecipeList.dart'; 6 | import 'DAO/RecipeDao.dart'; 7 | import 'DAO/FoodDao.dart'; 8 | import 'UI/Login/login.dart'; 9 | import 'UI/Camera/camera.dart'; 10 | import 'UI/Ingredients/ingredients.dart'; 11 | import 'DAO/FavoritesDao.dart'; 12 | import 'main.dart'; 13 | 14 | class MyDrawer extends StatelessWidget { 15 | Widget logo() { 16 | return Image( 17 | image: AssetImage("lib/assets/logo.png"), 18 | ); 19 | } 20 | 21 | _saveMailPreference(String mail) async { 22 | final prefs = await SharedPreferences.getInstance(); 23 | prefs.setString(key, mail); 24 | } 25 | 26 | @override 27 | Widget build(BuildContext context) { 28 | return Drawer( 29 | child: ListView( 30 | padding: EdgeInsets.zero, 31 | children: [ 32 | DrawerHeader( 33 | child: Center( 34 | child: logo(), 35 | ), 36 | decoration: BoxDecoration( 37 | color: Theme.Colors.foodCard, 38 | ), 39 | ), 40 | ListTile( 41 | leading: Icon(Icons.home, size: 24.0), 42 | title: Text( 43 | 'Anasayfa', 44 | style: TextStyle( 45 | fontFamily: 'Poppins', 46 | fontWeight: FontWeight.w500, 47 | fontSize: 20.0), 48 | ), 49 | onTap: () { 50 | Navigator.pop(context); 51 | }, 52 | ), 53 | ListTile( 54 | leading: Icon(Icons.photo_camera, size: 24.0), 55 | title: Text( 56 | 'Akıllı Tarama', 57 | style: TextStyle( 58 | fontFamily: 'Poppins', 59 | fontWeight: FontWeight.w500, 60 | fontSize: 20.0), 61 | ), 62 | onTap: () { 63 | Navigator.pop(context); 64 | Navigator.push( 65 | context, 66 | MaterialPageRoute(builder: (context) => Camera()), 67 | ); 68 | }, 69 | ), 70 | ListTile( 71 | leading: Icon(Icons.fastfood, size: 24.0), 72 | title: Text( 73 | 'Besinler', 74 | style: TextStyle( 75 | fontFamily: 'Poppins', 76 | fontWeight: FontWeight.w500, 77 | fontSize: 20.0), 78 | ), 79 | onTap: () { 80 | // FoodDao.getFoods(); 81 | Navigator.pop(context); 82 | Navigator.push( 83 | context, 84 | MaterialPageRoute( 85 | builder: (context) { 86 | return FoodList(FoodDao.foods); 87 | // if (foods.isNotEmpty) 88 | // return FoodList(FoodDao.foods); 89 | // else 90 | // return FutureBuilder( 91 | // future: FoodDao.getFoods(), 92 | // builder: (context, snapshot) { 93 | // if (!snapshot.hasData) 94 | // return Center( 95 | // child: CircularProgressIndicator(), 96 | // ); 97 | // List foods = snapshot.data; 98 | // return FoodList(foods); 99 | // }, 100 | // ); 101 | }, 102 | ), 103 | ); 104 | }, 105 | ), 106 | ListTile( 107 | leading: Icon(Icons.local_dining, size: 24.0), 108 | title: Text( 109 | 'Tarifler', 110 | style: TextStyle( 111 | fontFamily: 'Poppins', 112 | fontWeight: FontWeight.w500, 113 | fontSize: 20.0), 114 | ), 115 | onTap: () { 116 | Navigator.pop(context); 117 | Navigator.push( 118 | context, 119 | MaterialPageRoute( 120 | builder: (context) { 121 | return RecipeList(RecipeDao.recipes, "Yemek Tarifleri"); 122 | // return RecipeList(RecipeDao.recipes); 123 | // if (recipes.isNotEmpty) 124 | // return new RecipeList(RecipeDao.recipes); 125 | // else 126 | // return new FutureBuilder( 127 | // future: RecipeDao.getRecipes(), 128 | // builder: (context, snapshot) { 129 | // if (!snapshot.hasData) 130 | // return new Center( 131 | // child: new CircularProgressIndicator(), 132 | // ); 133 | // List recipes = snapshot.data; 134 | // return RecipeList(recipes); 135 | // }, 136 | // ); 137 | }, 138 | ), 139 | ); 140 | }, 141 | ), 142 | ListTile( 143 | leading: Icon(Icons.list, size: 24.0), 144 | title: Text( 145 | 'İçindekiler', 146 | style: TextStyle( 147 | fontFamily: 'Poppins', 148 | fontWeight: FontWeight.w500, 149 | fontSize: 20.0), 150 | ), 151 | onTap: () { 152 | Navigator.pop(context); 153 | Navigator.push( 154 | context, 155 | MaterialPageRoute( 156 | builder: (context) { 157 | return Ingredients(); 158 | }, 159 | ), 160 | ); 161 | }, 162 | ), 163 | ListTile( 164 | leading: Icon(Icons.favorite, size: 24.0), 165 | title: Text( 166 | 'Favoriler', 167 | style: TextStyle( 168 | fontFamily: 'Poppins', 169 | fontWeight: FontWeight.w500, 170 | fontSize: 20.0), 171 | ), 172 | onTap: () { 173 | Navigator.pop(context); 174 | Navigator.push( 175 | context, 176 | MaterialPageRoute( 177 | builder: (context) { 178 | return RecipeList(FavoritesDao.favorites, "Favoriler"); 179 | }, 180 | ), 181 | ); 182 | }, 183 | ), 184 | ListTile( 185 | leading: Icon(Icons.grade, size: 24.0), 186 | title: Text( 187 | 'Size Özel', 188 | style: TextStyle( 189 | fontFamily: 'Poppins', 190 | fontWeight: FontWeight.w500, 191 | fontSize: 20.0), 192 | ), 193 | onTap: () { 194 | // Navigator.pop(context); 195 | // Navigator.push( 196 | // context, 197 | // MaterialPageRoute( 198 | // builder: (context) { 199 | // return Container( 200 | // color: Theme.Colors.foodCard, 201 | // child: Center( 202 | // child: CircularProgressIndicator(), 203 | // ), 204 | // ); 205 | // }, 206 | // ), 207 | // ); 208 | Navigator.pop(context); 209 | Navigator.push( 210 | context, 211 | MaterialPageRoute( 212 | builder: (context) { 213 | return FutureBuilder( 214 | future: FavoritesDao.getApirioriAdvices(), 215 | builder: (context, snapshot) { 216 | if (!snapshot.hasData) { 217 | return Container( 218 | color: Theme.Colors.foodCard, 219 | child: Center( 220 | child: CircularProgressIndicator(), 221 | ), 222 | ); 223 | } else { 224 | List apriori = snapshot.data; 225 | return RecipeList(apriori, "Size Özel"); 226 | } 227 | }, 228 | ); 229 | }, 230 | ), 231 | ); 232 | }, 233 | ), 234 | ListTile( 235 | leading: Icon(Icons.power_settings_new, size: 24.0), 236 | title: Text( 237 | 'Çıkış', 238 | style: TextStyle( 239 | fontFamily: 'Poppins', 240 | fontWeight: FontWeight.w500, 241 | fontSize: 20.0), 242 | ), 243 | onTap: () { 244 | FavoritesDao.favorites = List(); 245 | FavoritesDao.favoritesIds = List(); 246 | FavoritesDao.apirioriFavorites = List(); 247 | _saveMailPreference(null); 248 | Navigator.pop(context); 249 | Navigator.push( 250 | context, 251 | MaterialPageRoute( 252 | builder: (context) { 253 | return LoginPage(); 254 | }, 255 | ), 256 | ); 257 | }, 258 | ), 259 | ], 260 | ), 261 | ); 262 | } 263 | } 264 | -------------------------------------------------------------------------------- /hello_world/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 22B82E5821D180F60069A04B /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 12 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; }; 13 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 14 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 15 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 3EC73436396A0B1004699FF1 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A7D2EF3E1583FE0D553BF2A6 /* libPods-Runner.a */; }; 17 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 18 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 19 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 20 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 21 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 22 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXCopyFilesBuildPhase section */ 26 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 27 | isa = PBXCopyFilesBuildPhase; 28 | buildActionMask = 2147483647; 29 | dstPath = ""; 30 | dstSubfolderSpec = 10; 31 | files = ( 32 | 22B82E5821D180F60069A04B /* Flutter.framework in Embed Frameworks */, 33 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 34 | ); 35 | name = "Embed Frameworks"; 36 | runOnlyForDeploymentPostprocessing = 0; 37 | }; 38 | /* End PBXCopyFilesBuildPhase section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 42 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 43 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; }; 44 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 45 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 46 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 47 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 48 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 49 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 50 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 51 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 52 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 54 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 55 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 56 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 57 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | A7D2EF3E1583FE0D553BF2A6 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | /* End PBXFileReference section */ 60 | 61 | /* Begin PBXFrameworksBuildPhase section */ 62 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 67 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 68 | 3EC73436396A0B1004699FF1 /* libPods-Runner.a in Frameworks */, 69 | ); 70 | runOnlyForDeploymentPostprocessing = 0; 71 | }; 72 | /* End PBXFrameworksBuildPhase section */ 73 | 74 | /* Begin PBXGroup section */ 75 | 038FA07E07AF28B6A4192297 /* Pods */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | ); 79 | name = Pods; 80 | sourceTree = ""; 81 | }; 82 | 6CE751B444728957546DCF25 /* Frameworks */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | A7D2EF3E1583FE0D553BF2A6 /* libPods-Runner.a */, 86 | ); 87 | name = Frameworks; 88 | sourceTree = ""; 89 | }; 90 | 9740EEB11CF90186004384FC /* Flutter */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */, 94 | 3B80C3931E831B6300D905FE /* App.framework */, 95 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 96 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 97 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 98 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 99 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 100 | ); 101 | name = Flutter; 102 | sourceTree = ""; 103 | }; 104 | 97C146E51CF9000F007C117D = { 105 | isa = PBXGroup; 106 | children = ( 107 | 9740EEB11CF90186004384FC /* Flutter */, 108 | 97C146F01CF9000F007C117D /* Runner */, 109 | 97C146EF1CF9000F007C117D /* Products */, 110 | 038FA07E07AF28B6A4192297 /* Pods */, 111 | 6CE751B444728957546DCF25 /* Frameworks */, 112 | ); 113 | sourceTree = ""; 114 | }; 115 | 97C146EF1CF9000F007C117D /* Products */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 97C146EE1CF9000F007C117D /* Runner.app */, 119 | ); 120 | name = Products; 121 | sourceTree = ""; 122 | }; 123 | 97C146F01CF9000F007C117D /* Runner */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 127 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 128 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 129 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 130 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 131 | 97C147021CF9000F007C117D /* Info.plist */, 132 | 97C146F11CF9000F007C117D /* Supporting Files */, 133 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 134 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 135 | ); 136 | path = Runner; 137 | sourceTree = ""; 138 | }; 139 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | 97C146F21CF9000F007C117D /* main.m */, 143 | ); 144 | name = "Supporting Files"; 145 | sourceTree = ""; 146 | }; 147 | /* End PBXGroup section */ 148 | 149 | /* Begin PBXNativeTarget section */ 150 | 97C146ED1CF9000F007C117D /* Runner */ = { 151 | isa = PBXNativeTarget; 152 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 153 | buildPhases = ( 154 | 7DB84BA809D882DE32D617E1 /* [CP] Check Pods Manifest.lock */, 155 | 9740EEB61CF901F6004384FC /* Run Script */, 156 | 97C146EA1CF9000F007C117D /* Sources */, 157 | 97C146EB1CF9000F007C117D /* Frameworks */, 158 | 97C146EC1CF9000F007C117D /* Resources */, 159 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 160 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 161 | BE56901BBDBF77954EC7DDF5 /* [CP] Embed Pods Frameworks */, 162 | ); 163 | buildRules = ( 164 | ); 165 | dependencies = ( 166 | ); 167 | name = Runner; 168 | productName = Runner; 169 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 170 | productType = "com.apple.product-type.application"; 171 | }; 172 | /* End PBXNativeTarget section */ 173 | 174 | /* Begin PBXProject section */ 175 | 97C146E61CF9000F007C117D /* Project object */ = { 176 | isa = PBXProject; 177 | attributes = { 178 | LastUpgradeCheck = 1010; 179 | ORGANIZATIONNAME = "The Chromium Authors"; 180 | TargetAttributes = { 181 | 97C146ED1CF9000F007C117D = { 182 | CreatedOnToolsVersion = 7.3.1; 183 | DevelopmentTeam = 5SAYRX5ZA9; 184 | }; 185 | }; 186 | }; 187 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 188 | compatibilityVersion = "Xcode 3.2"; 189 | developmentRegion = English; 190 | hasScannedForEncodings = 0; 191 | knownRegions = ( 192 | en, 193 | Base, 194 | ); 195 | mainGroup = 97C146E51CF9000F007C117D; 196 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 197 | projectDirPath = ""; 198 | projectRoot = ""; 199 | targets = ( 200 | 97C146ED1CF9000F007C117D /* Runner */, 201 | ); 202 | }; 203 | /* End PBXProject section */ 204 | 205 | /* Begin PBXResourcesBuildPhase section */ 206 | 97C146EC1CF9000F007C117D /* Resources */ = { 207 | isa = PBXResourcesBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 211 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 212 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 213 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */, 214 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | }; 218 | /* End PBXResourcesBuildPhase section */ 219 | 220 | /* Begin PBXShellScriptBuildPhase section */ 221 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 222 | isa = PBXShellScriptBuildPhase; 223 | buildActionMask = 2147483647; 224 | files = ( 225 | ); 226 | inputPaths = ( 227 | ); 228 | name = "Thin Binary"; 229 | outputPaths = ( 230 | ); 231 | runOnlyForDeploymentPostprocessing = 0; 232 | shellPath = /bin/sh; 233 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 234 | }; 235 | 7DB84BA809D882DE32D617E1 /* [CP] Check Pods Manifest.lock */ = { 236 | isa = PBXShellScriptBuildPhase; 237 | buildActionMask = 2147483647; 238 | files = ( 239 | ); 240 | inputFileListPaths = ( 241 | ); 242 | inputPaths = ( 243 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 244 | "${PODS_ROOT}/Manifest.lock", 245 | ); 246 | name = "[CP] Check Pods Manifest.lock"; 247 | outputFileListPaths = ( 248 | ); 249 | outputPaths = ( 250 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | shellPath = /bin/sh; 254 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 255 | showEnvVarsInLog = 0; 256 | }; 257 | 9740EEB61CF901F6004384FC /* Run Script */ = { 258 | isa = PBXShellScriptBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | inputPaths = ( 263 | ); 264 | name = "Run Script"; 265 | outputPaths = ( 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | shellPath = /bin/sh; 269 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 270 | }; 271 | BE56901BBDBF77954EC7DDF5 /* [CP] Embed Pods Frameworks */ = { 272 | isa = PBXShellScriptBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | ); 276 | inputFileListPaths = ( 277 | ); 278 | inputPaths = ( 279 | "${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", 280 | "${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework", 281 | ); 282 | name = "[CP] Embed Pods Frameworks"; 283 | outputFileListPaths = ( 284 | ); 285 | outputPaths = ( 286 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework", 287 | ); 288 | runOnlyForDeploymentPostprocessing = 0; 289 | shellPath = /bin/sh; 290 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 291 | showEnvVarsInLog = 0; 292 | }; 293 | /* End PBXShellScriptBuildPhase section */ 294 | 295 | /* Begin PBXSourcesBuildPhase section */ 296 | 97C146EA1CF9000F007C117D /* Sources */ = { 297 | isa = PBXSourcesBuildPhase; 298 | buildActionMask = 2147483647; 299 | files = ( 300 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 301 | 97C146F31CF9000F007C117D /* main.m in Sources */, 302 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | }; 306 | /* End PBXSourcesBuildPhase section */ 307 | 308 | /* Begin PBXVariantGroup section */ 309 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 310 | isa = PBXVariantGroup; 311 | children = ( 312 | 97C146FB1CF9000F007C117D /* Base */, 313 | ); 314 | name = Main.storyboard; 315 | sourceTree = ""; 316 | }; 317 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 318 | isa = PBXVariantGroup; 319 | children = ( 320 | 97C147001CF9000F007C117D /* Base */, 321 | ); 322 | name = LaunchScreen.storyboard; 323 | sourceTree = ""; 324 | }; 325 | /* End PBXVariantGroup section */ 326 | 327 | /* Begin XCBuildConfiguration section */ 328 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 329 | isa = XCBuildConfiguration; 330 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 331 | buildSettings = { 332 | ALWAYS_SEARCH_USER_PATHS = NO; 333 | CLANG_ANALYZER_NONNULL = YES; 334 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 335 | CLANG_CXX_LIBRARY = "libc++"; 336 | CLANG_ENABLE_MODULES = YES; 337 | CLANG_ENABLE_OBJC_ARC = YES; 338 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 339 | CLANG_WARN_BOOL_CONVERSION = YES; 340 | CLANG_WARN_COMMA = YES; 341 | CLANG_WARN_CONSTANT_CONVERSION = YES; 342 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 343 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 344 | CLANG_WARN_EMPTY_BODY = YES; 345 | CLANG_WARN_ENUM_CONVERSION = YES; 346 | CLANG_WARN_INFINITE_RECURSION = YES; 347 | CLANG_WARN_INT_CONVERSION = YES; 348 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 349 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 350 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 351 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 352 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 353 | CLANG_WARN_STRICT_PROTOTYPES = YES; 354 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 355 | CLANG_WARN_UNREACHABLE_CODE = YES; 356 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 357 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 358 | COPY_PHASE_STRIP = NO; 359 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 360 | ENABLE_NS_ASSERTIONS = NO; 361 | ENABLE_STRICT_OBJC_MSGSEND = YES; 362 | GCC_C_LANGUAGE_STANDARD = gnu99; 363 | GCC_NO_COMMON_BLOCKS = YES; 364 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 365 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 366 | GCC_WARN_UNDECLARED_SELECTOR = YES; 367 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 368 | GCC_WARN_UNUSED_FUNCTION = YES; 369 | GCC_WARN_UNUSED_VARIABLE = YES; 370 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 371 | MTL_ENABLE_DEBUG_INFO = NO; 372 | SDKROOT = iphoneos; 373 | TARGETED_DEVICE_FAMILY = "1,2"; 374 | VALIDATE_PRODUCT = YES; 375 | }; 376 | name = Profile; 377 | }; 378 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 379 | isa = XCBuildConfiguration; 380 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 381 | buildSettings = { 382 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 383 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 384 | DEVELOPMENT_TEAM = 5SAYRX5ZA9; 385 | ENABLE_BITCODE = NO; 386 | FRAMEWORK_SEARCH_PATHS = ( 387 | "$(inherited)", 388 | "$(PROJECT_DIR)/Flutter", 389 | ); 390 | INFOPLIST_FILE = Runner/Info.plist; 391 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 392 | LIBRARY_SEARCH_PATHS = ( 393 | "$(inherited)", 394 | "$(PROJECT_DIR)/Flutter", 395 | ); 396 | PRODUCT_BUNDLE_IDENTIFIER = com.mucahit.aktepe.helloWorld; 397 | PRODUCT_NAME = "$(TARGET_NAME)"; 398 | VERSIONING_SYSTEM = "apple-generic"; 399 | }; 400 | name = Profile; 401 | }; 402 | 97C147031CF9000F007C117D /* Debug */ = { 403 | isa = XCBuildConfiguration; 404 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 405 | buildSettings = { 406 | ALWAYS_SEARCH_USER_PATHS = NO; 407 | CLANG_ANALYZER_NONNULL = YES; 408 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 409 | CLANG_CXX_LIBRARY = "libc++"; 410 | CLANG_ENABLE_MODULES = YES; 411 | CLANG_ENABLE_OBJC_ARC = YES; 412 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 413 | CLANG_WARN_BOOL_CONVERSION = YES; 414 | CLANG_WARN_COMMA = YES; 415 | CLANG_WARN_CONSTANT_CONVERSION = YES; 416 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 417 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 418 | CLANG_WARN_EMPTY_BODY = YES; 419 | CLANG_WARN_ENUM_CONVERSION = YES; 420 | CLANG_WARN_INFINITE_RECURSION = YES; 421 | CLANG_WARN_INT_CONVERSION = YES; 422 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 423 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 424 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 425 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 426 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 427 | CLANG_WARN_STRICT_PROTOTYPES = YES; 428 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 429 | CLANG_WARN_UNREACHABLE_CODE = YES; 430 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 431 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 432 | COPY_PHASE_STRIP = NO; 433 | DEBUG_INFORMATION_FORMAT = dwarf; 434 | ENABLE_STRICT_OBJC_MSGSEND = YES; 435 | ENABLE_TESTABILITY = YES; 436 | GCC_C_LANGUAGE_STANDARD = gnu99; 437 | GCC_DYNAMIC_NO_PIC = NO; 438 | GCC_NO_COMMON_BLOCKS = YES; 439 | GCC_OPTIMIZATION_LEVEL = 0; 440 | GCC_PREPROCESSOR_DEFINITIONS = ( 441 | "DEBUG=1", 442 | "$(inherited)", 443 | ); 444 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 445 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 446 | GCC_WARN_UNDECLARED_SELECTOR = YES; 447 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 448 | GCC_WARN_UNUSED_FUNCTION = YES; 449 | GCC_WARN_UNUSED_VARIABLE = YES; 450 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 451 | MTL_ENABLE_DEBUG_INFO = YES; 452 | ONLY_ACTIVE_ARCH = YES; 453 | SDKROOT = iphoneos; 454 | TARGETED_DEVICE_FAMILY = "1,2"; 455 | }; 456 | name = Debug; 457 | }; 458 | 97C147041CF9000F007C117D /* Release */ = { 459 | isa = XCBuildConfiguration; 460 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 461 | buildSettings = { 462 | ALWAYS_SEARCH_USER_PATHS = NO; 463 | CLANG_ANALYZER_NONNULL = YES; 464 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 465 | CLANG_CXX_LIBRARY = "libc++"; 466 | CLANG_ENABLE_MODULES = YES; 467 | CLANG_ENABLE_OBJC_ARC = YES; 468 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 469 | CLANG_WARN_BOOL_CONVERSION = YES; 470 | CLANG_WARN_COMMA = YES; 471 | CLANG_WARN_CONSTANT_CONVERSION = YES; 472 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 473 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 474 | CLANG_WARN_EMPTY_BODY = YES; 475 | CLANG_WARN_ENUM_CONVERSION = YES; 476 | CLANG_WARN_INFINITE_RECURSION = YES; 477 | CLANG_WARN_INT_CONVERSION = YES; 478 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 479 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 480 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 481 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 482 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 483 | CLANG_WARN_STRICT_PROTOTYPES = YES; 484 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 485 | CLANG_WARN_UNREACHABLE_CODE = YES; 486 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 487 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 488 | COPY_PHASE_STRIP = NO; 489 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 490 | ENABLE_NS_ASSERTIONS = NO; 491 | ENABLE_STRICT_OBJC_MSGSEND = YES; 492 | GCC_C_LANGUAGE_STANDARD = gnu99; 493 | GCC_NO_COMMON_BLOCKS = YES; 494 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 495 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 496 | GCC_WARN_UNDECLARED_SELECTOR = YES; 497 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 498 | GCC_WARN_UNUSED_FUNCTION = YES; 499 | GCC_WARN_UNUSED_VARIABLE = YES; 500 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 501 | MTL_ENABLE_DEBUG_INFO = NO; 502 | SDKROOT = iphoneos; 503 | TARGETED_DEVICE_FAMILY = "1,2"; 504 | VALIDATE_PRODUCT = YES; 505 | }; 506 | name = Release; 507 | }; 508 | 97C147061CF9000F007C117D /* Debug */ = { 509 | isa = XCBuildConfiguration; 510 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 511 | buildSettings = { 512 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 513 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 514 | DEVELOPMENT_TEAM = 5SAYRX5ZA9; 515 | ENABLE_BITCODE = NO; 516 | FRAMEWORK_SEARCH_PATHS = ( 517 | "$(inherited)", 518 | "$(PROJECT_DIR)/Flutter", 519 | ); 520 | INFOPLIST_FILE = Runner/Info.plist; 521 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 522 | LIBRARY_SEARCH_PATHS = ( 523 | "$(inherited)", 524 | "$(PROJECT_DIR)/Flutter", 525 | ); 526 | PRODUCT_BUNDLE_IDENTIFIER = com.mucahit.aktepe.helloWorld; 527 | PRODUCT_NAME = "$(TARGET_NAME)"; 528 | VERSIONING_SYSTEM = "apple-generic"; 529 | }; 530 | name = Debug; 531 | }; 532 | 97C147071CF9000F007C117D /* Release */ = { 533 | isa = XCBuildConfiguration; 534 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 535 | buildSettings = { 536 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 537 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 538 | DEVELOPMENT_TEAM = 5SAYRX5ZA9; 539 | ENABLE_BITCODE = NO; 540 | FRAMEWORK_SEARCH_PATHS = ( 541 | "$(inherited)", 542 | "$(PROJECT_DIR)/Flutter", 543 | ); 544 | INFOPLIST_FILE = Runner/Info.plist; 545 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 546 | LIBRARY_SEARCH_PATHS = ( 547 | "$(inherited)", 548 | "$(PROJECT_DIR)/Flutter", 549 | ); 550 | PRODUCT_BUNDLE_IDENTIFIER = com.mucahit.aktepe.helloWorld; 551 | PRODUCT_NAME = "$(TARGET_NAME)"; 552 | VERSIONING_SYSTEM = "apple-generic"; 553 | }; 554 | name = Release; 555 | }; 556 | /* End XCBuildConfiguration section */ 557 | 558 | /* Begin XCConfigurationList section */ 559 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 560 | isa = XCConfigurationList; 561 | buildConfigurations = ( 562 | 97C147031CF9000F007C117D /* Debug */, 563 | 97C147041CF9000F007C117D /* Release */, 564 | 249021D3217E4FDB00AE95B9 /* Profile */, 565 | ); 566 | defaultConfigurationIsVisible = 0; 567 | defaultConfigurationName = Release; 568 | }; 569 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 570 | isa = XCConfigurationList; 571 | buildConfigurations = ( 572 | 97C147061CF9000F007C117D /* Debug */, 573 | 97C147071CF9000F007C117D /* Release */, 574 | 249021D4217E4FDB00AE95B9 /* Profile */, 575 | ); 576 | defaultConfigurationIsVisible = 0; 577 | defaultConfigurationName = Release; 578 | }; 579 | /* End XCConfigurationList section */ 580 | }; 581 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 582 | } 583 | --------------------------------------------------------------------------------