├── linux ├── .gitignore ├── main.cc ├── flutter │ ├── generated_plugin_registrant.h │ ├── generated_plugin_registrant.cc │ ├── generated_plugins.cmake │ └── CMakeLists.txt ├── my_application.h └── my_application.cc ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist └── .gitignore ├── macos ├── Flutter │ ├── Flutter-Debug.xcconfig │ ├── Flutter-Release.xcconfig │ └── GeneratedPluginRegistrant.swift ├── Runner │ ├── Configs │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ ├── Warnings.xcconfig │ │ └── AppInfo.xcconfig │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── app_icon_128.png │ │ │ ├── app_icon_16.png │ │ │ ├── app_icon_256.png │ │ │ ├── app_icon_32.png │ │ │ ├── app_icon_512.png │ │ │ ├── app_icon_64.png │ │ │ ├── app_icon_1024.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Release.entitlements │ ├── DebugProfile.entitlements │ ├── MainFlutterWindow.swift │ └── Info.plist ├── .gitignore ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── Runner.xcodeproj │ ├── project.xcworkspace │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ └── xcschemes │ └── Runner.xcscheme ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ ├── Icon-512.png │ ├── Icon-maskable-192.png │ └── Icon-maskable-512.png ├── manifest.json └── index.html ├── assets ├── image │ ├── admin.png │ ├── banga.png │ ├── clock.png │ ├── f_0.png │ ├── f_1.png │ ├── f_2.png │ ├── f_3.png │ ├── f_4.png │ ├── f_5.png │ ├── f_6.png │ ├── f_7.png │ ├── f_8.png │ ├── image.png │ ├── login.png │ ├── logo.png │ ├── logo1.png │ ├── logo2.png │ ├── logo3.png │ ├── logo4.png │ ├── logo5.png │ ├── logo6.png │ ├── lunch.png │ ├── mask1.png │ ├── mask2.png │ ├── mask3.png │ ├── mask4.png │ ├── mask5.png │ ├── mask6.png │ ├── resto.png │ ├── salad.png │ ├── stack.png │ ├── arsalan.png │ ├── chinese.png │ ├── heart1.png │ ├── heart2.png │ ├── heart3.png │ ├── heart4.png │ ├── heart5.png │ ├── heart6.png │ ├── profil.png │ ├── resto1.png │ ├── resto4.png │ ├── seafood.png │ ├── chinesehub.png │ └── foodmail.png ├── icons │ └── bottom_navbar │ │ ├── shop.svg │ │ ├── favorite.svg │ │ ├── notification.svg │ │ └── home.svg └── svgs │ ├── menu.svg │ ├── facebook.svg │ └── gmail.svg ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── restaurant_app │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── google-services.json │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── windows ├── runner │ ├── resources │ │ └── app_icon.ico │ ├── resource.h │ ├── utils.h │ ├── runner.exe.manifest │ ├── flutter_window.h │ ├── CMakeLists.txt │ ├── main.cpp │ ├── utils.cpp │ ├── flutter_window.cpp │ ├── Runner.rc │ └── win32_window.h ├── .gitignore ├── flutter │ ├── generated_plugin_registrant.h │ ├── generated_plugin_registrant.cc │ ├── generated_plugins.cmake │ └── CMakeLists.txt └── CMakeLists.txt ├── lib ├── core │ ├── constants │ │ ├── duration_items.dart │ │ ├── app_colors.dart │ │ └── image_const.dart │ └── extensions │ │ └── extension.dart ├── feature │ ├── login_register_page │ │ ├── viewModel │ │ │ └── login_view_model.dart │ │ ├── model │ │ │ └── users_model.dart │ │ └── view │ │ │ └── login_view.dart │ ├── favorite_page │ │ ├── viewModel │ │ │ └── favorite_view_model.dart │ │ ├── model │ │ │ └── favorite_model.dart │ │ └── view │ │ │ └── favorite_view.dart │ ├── notification_page │ │ ├── viewModel │ │ │ └── notification_view_model.dart │ │ ├── model │ │ │ └── notification_model.dart │ │ └── view │ │ │ └── notification_view.dart │ ├── profile_page │ │ ├── model │ │ │ └── image_model.dart │ │ └── viewModel │ │ │ └── profil_view_model.dart │ ├── splash_page │ │ └── view │ │ │ └── splash_view.dart │ ├── home_page │ │ ├── model │ │ │ ├── favorite_model.dart │ │ │ ├── open_rest_model.dart │ │ │ ├── category_model.dart │ │ │ └── menu_draw_model.dart │ │ └── viewModel │ │ │ └── home_view_model.dart │ └── reservation_page │ │ ├── model │ │ └── reservation_model.dart │ │ └── viewModel │ │ └── reservation_view_model.dart ├── products │ ├── component │ │ ├── image_card.dart │ │ ├── custom_slider.dart │ │ ├── category_widget.dart │ │ ├── menu_title.dart │ │ ├── menu_list.dart │ │ ├── favorit_widget.dart │ │ ├── slider_column.dart │ │ ├── reservation_title_card.dart │ │ ├── reservation_title.dart │ │ ├── reviews_title_card.dart │ │ ├── notification_card.dart │ │ ├── favorite_card.dart │ │ ├── menu_title_card.dart │ │ ├── time_container_widget.dart │ │ ├── reservation_appbar.dart │ │ ├── reservation_categories.dart │ │ ├── register.dart │ │ ├── reviews_title.dart │ │ ├── reservation_info.dart │ │ └── login.dart │ ├── widgets │ │ ├── app_bar.dart │ │ ├── text_form_field.dart │ │ └── bottom_navbar.dart │ ├── global │ │ └── global.dart │ ├── mixin │ │ └── reservation_category.dart │ └── navigation │ │ └── navigation_custom.dart └── main.dart ├── .gitignore ├── test └── widget_test.dart ├── pubspec.yaml ├── analysis_options.yaml ├── .metadata └── README.md /linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "ephemeral/Flutter-Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "ephemeral/Flutter-Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/web/favicon.png -------------------------------------------------------------------------------- /assets/image/admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/admin.png -------------------------------------------------------------------------------- /assets/image/banga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/banga.png -------------------------------------------------------------------------------- /assets/image/clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/clock.png -------------------------------------------------------------------------------- /assets/image/f_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/f_0.png -------------------------------------------------------------------------------- /assets/image/f_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/f_1.png -------------------------------------------------------------------------------- /assets/image/f_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/f_2.png -------------------------------------------------------------------------------- /assets/image/f_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/f_3.png -------------------------------------------------------------------------------- /assets/image/f_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/f_4.png -------------------------------------------------------------------------------- /assets/image/f_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/f_5.png -------------------------------------------------------------------------------- /assets/image/f_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/f_6.png -------------------------------------------------------------------------------- /assets/image/f_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/f_7.png -------------------------------------------------------------------------------- /assets/image/f_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/f_8.png -------------------------------------------------------------------------------- /assets/image/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/image.png -------------------------------------------------------------------------------- /assets/image/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/login.png -------------------------------------------------------------------------------- /assets/image/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/logo.png -------------------------------------------------------------------------------- /assets/image/logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/logo1.png -------------------------------------------------------------------------------- /assets/image/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/logo2.png -------------------------------------------------------------------------------- /assets/image/logo3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/logo3.png -------------------------------------------------------------------------------- /assets/image/logo4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/logo4.png -------------------------------------------------------------------------------- /assets/image/logo5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/logo5.png -------------------------------------------------------------------------------- /assets/image/logo6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/logo6.png -------------------------------------------------------------------------------- /assets/image/lunch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/lunch.png -------------------------------------------------------------------------------- /assets/image/mask1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/mask1.png -------------------------------------------------------------------------------- /assets/image/mask2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/mask2.png -------------------------------------------------------------------------------- /assets/image/mask3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/mask3.png -------------------------------------------------------------------------------- /assets/image/mask4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/mask4.png -------------------------------------------------------------------------------- /assets/image/mask5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/mask5.png -------------------------------------------------------------------------------- /assets/image/mask6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/mask6.png -------------------------------------------------------------------------------- /assets/image/resto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/resto.png -------------------------------------------------------------------------------- /assets/image/salad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/salad.png -------------------------------------------------------------------------------- /assets/image/stack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/stack.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /assets/image/arsalan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/arsalan.png -------------------------------------------------------------------------------- /assets/image/chinese.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/chinese.png -------------------------------------------------------------------------------- /assets/image/heart1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/heart1.png -------------------------------------------------------------------------------- /assets/image/heart2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/heart2.png -------------------------------------------------------------------------------- /assets/image/heart3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/heart3.png -------------------------------------------------------------------------------- /assets/image/heart4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/heart4.png -------------------------------------------------------------------------------- /assets/image/heart5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/heart5.png -------------------------------------------------------------------------------- /assets/image/heart6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/heart6.png -------------------------------------------------------------------------------- /assets/image/profil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/profil.png -------------------------------------------------------------------------------- /assets/image/resto1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/resto1.png -------------------------------------------------------------------------------- /assets/image/resto4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/resto4.png -------------------------------------------------------------------------------- /assets/image/seafood.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/seafood.png -------------------------------------------------------------------------------- /assets/image/chinesehub.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/chinesehub.png -------------------------------------------------------------------------------- /assets/image/foodmail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/assets/image/foodmail.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /lib/core/constants/duration_items.dart: -------------------------------------------------------------------------------- 1 | class DurationItems extends Duration { 2 | DurationItems.durationNormal() : super(seconds: 4); 3 | } 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evingulcan/restaurant_app_ui/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /linux/main.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | int main(int argc, char** argv) { 4 | g_autoptr(MyApplication) app = my_application_new(); 5 | return g_application_run(G_APPLICATION(app), argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/restaurant_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.restaurant_app 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /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-7.4-all.zip 7 | -------------------------------------------------------------------------------- /macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/feature/login_register_page/viewModel/login_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class LoginViewModel extends ChangeNotifier { 4 | bool? isObsecures = true; 5 | changeObsecure() { 6 | isObsecures = !(isObsecures ?? false); 7 | notifyListeners(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /assets/icons/bottom_navbar/shop.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /windows/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral/ 2 | 3 | # Visual Studio user-specific files. 4 | *.suo 5 | *.user 6 | *.userosscache 7 | *.sln.docstates 8 | 9 | # Visual Studio build-related files. 10 | x64/ 11 | x86/ 12 | 13 | # Visual Studio cache files 14 | # files ending in .cache can be ignored 15 | *.[Cc]ache 16 | # but keep track of directories ending in .cache 17 | !*.[Cc]ache/ 18 | -------------------------------------------------------------------------------- /assets/svgs/menu.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void fl_register_plugins(FlPluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void RegisterPlugins(flutter::PluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | 11 | void RegisterPlugins(flutter::PluginRegistry* registry) { 12 | UrlLauncherWindowsRegisterWithRegistrar( 13 | registry->GetRegistrarForPlugin("UrlLauncherWindows")); 14 | } 15 | -------------------------------------------------------------------------------- /macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /assets/icons/bottom_navbar/favorite.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /linux/my_application.h: -------------------------------------------------------------------------------- 1 | #ifndef FLUTTER_MY_APPLICATION_H_ 2 | #define FLUTTER_MY_APPLICATION_H_ 3 | 4 | #include 5 | 6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, 7 | GtkApplication) 8 | 9 | /** 10 | * my_application_new: 11 | * 12 | * Creates a new Flutter-based application. 13 | * 14 | * Returns: a new #MyApplication. 15 | */ 16 | MyApplication* my_application_new(); 17 | 18 | #endif // FLUTTER_MY_APPLICATION_H_ 19 | -------------------------------------------------------------------------------- /macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController.init() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /assets/svgs/facebook.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/svgs/gmail.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /lib/feature/favorite_page/viewModel/favorite_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/feature/favorite_page/model/favorite_model.dart'; 3 | 4 | class FavoriteViewModel extends ChangeNotifier { 5 | late final List _items = FavoriteItems().items; 6 | List get favoriModel => _items; 7 | 8 | favoriToList(FavoriteModel favoriModel) { 9 | _items.contains(favoriModel); 10 | notifyListeners(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /assets/icons/bottom_navbar/notification.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /lib/feature/notification_page/viewModel/notification_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/feature/notification_page/model/notification_model.dart'; 3 | 4 | class NotificationViewModel extends ChangeNotifier { 5 | late final List _items = NotificationItems().items; 6 | List get ntfModel => _items; 7 | 8 | ntfToList(NotificationModel ntfModel) { 9 | _items.contains(ntfModel); 10 | notifyListeners(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /windows/runner/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Runner.rc 4 | // 5 | #define IDI_APP_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | 11 | void fl_register_plugins(FlPluginRegistry* registry) { 12 | g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = 13 | fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); 14 | url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); 15 | } 16 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /assets/icons/bottom_navbar/home.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /lib/feature/login_register_page/model/users_model.dart: -------------------------------------------------------------------------------- 1 | class UserModel { 2 | String? uid; 3 | String? email; 4 | String? fullName; 5 | 6 | UserModel({ 7 | this.uid, 8 | this.email, 9 | this.fullName, 10 | }); 11 | 12 | factory UserModel.fromMap(map) { 13 | return UserModel( 14 | uid: map['uid'], 15 | email: map['email'], 16 | fullName: map['fullName'], 17 | ); 18 | } 19 | 20 | Map toMap() { 21 | return { 22 | 'uid': uid, 23 | 'email': email, 24 | 'fullName': fullName, 25 | }; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /lib/products/component/image_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/core/extensions/extension.dart'; 3 | import 'package:restaurant_app/feature/profile_page/model/image_model.dart'; 4 | 5 | class ImageCard extends StatelessWidget { 6 | const ImageCard({ 7 | Key? key, 8 | required ImageModel model, 9 | }) : _model = model, 10 | super(key: key); 11 | final ImageModel _model; 12 | @override 13 | Widget build(BuildContext context) { 14 | return Padding( 15 | padding: context.cardPadding, 16 | child: _model.imagePath, 17 | ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = restaurant_app 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.restaurantApp 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2022 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /windows/runner/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_UTILS_H_ 2 | #define RUNNER_UTILS_H_ 3 | 4 | #include 5 | #include 6 | 7 | // Creates a console for the process, and redirects stdout and stderr to 8 | // it for both the runner and the Flutter library. 9 | void CreateAndAttachConsole(); 10 | 11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string 12 | // encoded in UTF-8. Returns an empty std::string on failure. 13 | std::string Utf8FromUtf16(const wchar_t* utf16_string); 14 | 15 | // Gets the command line arguments passed in as a std::vector, 16 | // encoded in UTF-8. Returns an empty std::vector on failure. 17 | std::vector GetCommandLineArguments(); 18 | 19 | #endif // RUNNER_UTILS_H_ 20 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.6.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.1.2' 10 | classpath 'com.google.gms:google-services:4.3.13' 11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | rootProject.buildDir = '../build' 23 | subprojects { 24 | project.buildDir = "${rootProject.buildDir}/${project.name}" 25 | } 26 | subprojects { 27 | project.evaluationDependsOn(':app') 28 | } 29 | 30 | task clean(type: Delete) { 31 | delete rootProject.buildDir 32 | } 33 | -------------------------------------------------------------------------------- /linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | url_launcher_linux 7 | ) 8 | 9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 10 | ) 11 | 12 | set(PLUGIN_BUNDLED_LIBRARIES) 13 | 14 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 19 | endforeach(plugin) 20 | 21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 24 | endforeach(ffi_plugin) 25 | -------------------------------------------------------------------------------- /windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | url_launcher_windows 7 | ) 8 | 9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 10 | ) 11 | 12 | set(PLUGIN_BUNDLED_LIBRARIES) 13 | 14 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 19 | endforeach(plugin) 20 | 21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) 23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 24 | endforeach(ffi_plugin) 25 | -------------------------------------------------------------------------------- /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 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/products/component/custom_slider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/extensions/extension.dart'; 4 | 5 | class CustomSlider extends StatelessWidget { 6 | final double percentage; 7 | 8 | const CustomSlider({ 9 | Key? key, 10 | required this.percentage, 11 | }) : super(key: key); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Container( 16 | width: context.dynamicWidth(0.49), 17 | height: MediaQuery.of(context).size.height / 80, 18 | decoration: context.slidermiddelDecoraiton, 19 | child: Row( 20 | mainAxisSize: MainAxisSize.max, 21 | children: [ 22 | Container( 23 | decoration: context.sliderDecoraiton, 24 | width: (percentage / 100) * 200.0, 25 | ), 26 | ], 27 | ), 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/products/widgets/app_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/core/constants/app_string.dart'; 3 | 4 | class AppBarWidget extends StatelessWidget { 5 | const AppBarWidget({Key? key, required this.color}) : super(key: key); 6 | final Color color; 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return Row( 11 | mainAxisAlignment: MainAxisAlignment.start, 12 | children: [ 13 | IconButton( 14 | onPressed: () {}, 15 | icon: Icon( 16 | Icons.arrow_back_ios_new_rounded, 17 | color: color, 18 | size: 20, 19 | )), 20 | Text( 21 | StringConstant.back, 22 | style: Theme.of(context) 23 | .textTheme 24 | .titleLarge 25 | ?.copyWith(color: color, fontWeight: FontWeight.bold), 26 | ), 27 | ], 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PerMonitorV2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Web related 36 | lib/generated_plugin_registrant.dart 37 | 38 | # Symbolication related 39 | app.*.symbols 40 | 41 | # Obfuscation related 42 | app.*.map.json 43 | 44 | # Android Studio will place build artifacts here 45 | /android/app/debug 46 | /android/app/profile 47 | /android/app/release 48 | -------------------------------------------------------------------------------- /lib/products/component/category_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/extensions/extension.dart'; 4 | import 'package:restaurant_app/feature/home_page/model/category_model.dart'; 5 | 6 | class CategoryWidget extends StatelessWidget { 7 | const CategoryWidget({Key? key, required CategoryModel model}) 8 | : _model = model, 9 | super(key: key); 10 | 11 | final CategoryModel _model; 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Padding( 16 | padding: context.pagePaddingRigth, 17 | child: Column( 18 | children: [ 19 | CircleAvatar( 20 | radius: 32, 21 | child: _model.imagePath, 22 | ), 23 | SizedBox( 24 | height: context.dynamicHeight(0.01), 25 | ), 26 | Text(_model.title), 27 | ], 28 | ), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/feature/profile_page/model/image_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:restaurant_app/core/constants/image_const.dart'; 3 | 4 | class ImageModel { 5 | final Widget imagePath; 6 | 7 | ImageModel({ 8 | required this.imagePath, 9 | }); 10 | } 11 | 12 | class ImageModelItems { 13 | late final List items; 14 | 15 | ImageModelItems() { 16 | items = [ 17 | ImageModel(imagePath: const PngImage(name: ImageItems.mask1)), 18 | ImageModel( 19 | imagePath: const PngImage(name: ImageItems.mask2), 20 | ), 21 | ImageModel( 22 | imagePath: const PngImage(name: ImageItems.mask3), 23 | ), 24 | ImageModel( 25 | imagePath: const PngImage(name: ImageItems.mask4), 26 | ), 27 | ImageModel( 28 | imagePath: const PngImage(name: ImageItems.mask5), 29 | ), 30 | ImageModel( 31 | imagePath: const PngImage(name: ImageItems.mask6), 32 | ), 33 | ]; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /lib/feature/profile_page/viewModel/profil_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/feature/profile_page/model/image_model.dart'; 3 | import 'package:cloud_firestore/cloud_firestore.dart'; 4 | import 'package:firebase_auth/firebase_auth.dart'; 5 | import '../../login_register_page/model/users_model.dart'; 6 | 7 | class ProfileViewModel extends ChangeNotifier { 8 | late final List _items = ImageModelItems().items; 9 | List get imgModel => _items; 10 | 11 | User? user = FirebaseAuth.instance.currentUser; 12 | UserModel loggedInUser = UserModel(); 13 | 14 | profileToList(ImageModel imgModel) { 15 | _items.contains(imgModel); 16 | notifyListeners(); 17 | } 18 | 19 | firebaseName() { 20 | FirebaseFirestore.instance 21 | .collection("users") 22 | .doc(user!.uid) 23 | .get() 24 | .then((value) { 25 | loggedInUser = UserModel.fromMap(value.data()); 26 | notifyListeners(); 27 | }); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/products/component/menu_title.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/core/constants/app_colors.dart'; 3 | import 'package:restaurant_app/core/extensions/extension.dart'; 4 | 5 | class MenuCategoryItem extends StatelessWidget { 6 | const MenuCategoryItem({ 7 | Key? key, 8 | required this.title, 9 | required this.items, 10 | }) : super(key: key); 11 | 12 | final String title; 13 | final List items; 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Column( 18 | crossAxisAlignment: CrossAxisAlignment.start, 19 | children: [ 20 | Padding( 21 | padding: context.paddingNormalVertical, 22 | child: Text( 23 | title, 24 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 25 | color: AppColors.black, 26 | fontWeight: FontWeight.w600, 27 | ), 28 | ), 29 | ), 30 | ...items, 31 | ], 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /lib/products/component/menu_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/core/constants/app_colors.dart'; 3 | 4 | import 'package:restaurant_app/core/extensions/extension.dart'; 5 | import 'package:restaurant_app/feature/home_page/model/menu_draw_model.dart'; 6 | 7 | class MenuList extends StatelessWidget { 8 | const MenuList({Key? key, required DrawModel model}) 9 | : _model = model, 10 | super(key: key); 11 | 12 | final DrawModel _model; 13 | @override 14 | Widget build(BuildContext context) { 15 | return Padding( 16 | padding: context.middlePadding, 17 | child: Align( 18 | alignment: Alignment.centerLeft, 19 | child: TextButton.icon( 20 | onPressed: null, 21 | icon: _model.icon, 22 | label: Text( 23 | _model.title, 24 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 25 | color: AppColors.white, 26 | ), 27 | ), 28 | ), 29 | ), 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "restaurant_app", 3 | "short_name": "restaurant_app", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /windows/runner/flutter_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_FLUTTER_WINDOW_H_ 2 | #define RUNNER_FLUTTER_WINDOW_H_ 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | #include "win32_window.h" 10 | 11 | // A window that does nothing but host a Flutter view. 12 | class FlutterWindow : public Win32Window { 13 | public: 14 | // Creates a new FlutterWindow hosting a Flutter view running |project|. 15 | explicit FlutterWindow(const flutter::DartProject& project); 16 | virtual ~FlutterWindow(); 17 | 18 | protected: 19 | // Win32Window: 20 | bool OnCreate() override; 21 | void OnDestroy() override; 22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, 23 | LPARAM const lparam) noexcept override; 24 | 25 | private: 26 | // The project to run. 27 | flutter::DartProject project_; 28 | 29 | // The Flutter instance hosted by this window. 30 | std::unique_ptr flutter_controller_; 31 | }; 32 | 33 | #endif // RUNNER_FLUTTER_WINDOW_H_ 34 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /lib/feature/splash_page/view/splash_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/core/constants/duration_items.dart'; 3 | import 'package:restaurant_app/core/constants/image_const.dart'; 4 | import 'package:restaurant_app/feature/login_register_page/view/login_view.dart'; 5 | 6 | class SplashPage extends StatefulWidget { 7 | const SplashPage({Key? key}) : super(key: key); 8 | 9 | @override 10 | State createState() => _SplashPageState(); 11 | } 12 | 13 | class _SplashPageState extends State { 14 | @override 15 | void initState() { 16 | super.initState(); 17 | Future.delayed(DurationItems.durationNormal(), () { 18 | Navigator.push( 19 | context, MaterialPageRoute(builder: (context) => const LoginPage())); 20 | }); 21 | } 22 | 23 | @override 24 | Widget build(BuildContext context) { 25 | return Scaffold( 26 | body: Stack(children: const [ 27 | Center( 28 | child: LottieImage( 29 | name: ImageItems.knife, 30 | ), 31 | ), 32 | ])); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /lib/core/constants/app_colors.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class AppColors { 4 | static const palatinateBlue = Color(0xff2B33EF); 5 | static const white = Color(0xffFFFFFF); 6 | static const consumedByFire = Color(0xffF38219); 7 | static const blueMetallic = Color(0xff092C4C); 8 | static const porpoise = Color(0xffDADADA); 9 | static const silverlined = Color(0xffBCC0C3); 10 | static const darkGrey = Color(0xff4e5d6a); 11 | static const consumed = Color(0xffF38219); 12 | static const flataluminum = Color(0xffC3C9CE); 13 | static const red = Color(0xffff0000); 14 | static const chanceofrain = Color(0xff9FA6AC); 15 | static const california = Color(0xffFFA216); 16 | static const metropolitan = Color(0xff3E4145); 17 | static const russet = Color(0xff814915); 18 | static const gravelfint = Color(0xffBBBBBB); 19 | static const poppypower = Color(0xffE72940); 20 | static const outoftheblue = Color(0xff16A3F2); 21 | static const springforth = Color(0xff0ABC1C); 22 | static const black = Color(0xff000000); 23 | static const anon = Color(0xffBBC1C7); 24 | } 25 | -------------------------------------------------------------------------------- /lib/feature/home_page/model/favorite_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | import 'package:restaurant_app/core/constants/app_string.dart'; 3 | import 'package:restaurant_app/core/constants/image_const.dart'; 4 | 5 | class HomeFavoriteModel { 6 | final Widget imagePath; 7 | final String title; 8 | 9 | HomeFavoriteModel({required this.imagePath, required this.title}); 10 | } 11 | 12 | class HomeFavoriteItems { 13 | late final List items; 14 | 15 | HomeFavoriteItems() { 16 | items = [ 17 | HomeFavoriteModel( 18 | imagePath: const PngImage(name: ImageItems.foodmail), 19 | title: StringConstant.food), 20 | HomeFavoriteModel( 21 | imagePath: const PngImage(name: ImageItems.chinesehub), 22 | title: StringConstant.chinesehub), 23 | HomeFavoriteModel( 24 | imagePath: const PngImage(name: ImageItems.lunch), 25 | title: StringConstant.lunch), 26 | HomeFavoriteModel( 27 | imagePath: const PngImage(name: ImageItems.lunch), 28 | title: StringConstant.banga), 29 | ]; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/products/component/favorit_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/extensions/extension.dart'; 4 | import 'package:restaurant_app/feature/home_page/model/favorite_model.dart'; 5 | 6 | class FavoriteWidget extends StatelessWidget { 7 | const FavoriteWidget({Key? key, required HomeFavoriteModel model}) 8 | : _model = model, 9 | super(key: key); 10 | 11 | final HomeFavoriteModel _model; 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Padding( 16 | padding: context.pagePaddingRigth, 17 | child: Column( 18 | children: [ 19 | Container( 20 | height: context.dynamicHeight(0.20), 21 | decoration: BoxDecoration( 22 | borderRadius: BorderRadius.circular(20), 23 | ), 24 | child: _model.imagePath, 25 | ), 26 | SizedBox( 27 | height: context.dynamicHeight(0.01), 28 | ), 29 | Text(_model.title), 30 | ], 31 | ), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import cloud_firestore 9 | import firebase_auth 10 | import firebase_core 11 | import firebase_storage 12 | import package_info_plus_macos 13 | import path_provider_macos 14 | import url_launcher_macos 15 | 16 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 17 | FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin")) 18 | FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin")) 19 | FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin")) 20 | FLTFirebaseStoragePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseStoragePlugin")) 21 | FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin")) 22 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) 23 | UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) 24 | } 25 | -------------------------------------------------------------------------------- /lib/products/global/global.dart: -------------------------------------------------------------------------------- 1 | import 'package:provider/provider.dart'; 2 | import 'package:provider/single_child_widget.dart'; 3 | import 'package:restaurant_app/feature/favorite_page/viewModel/favorite_view_model.dart'; 4 | import 'package:restaurant_app/feature/home_page/viewModel/home_view_model.dart'; 5 | import 'package:restaurant_app/feature/login_register_page/viewModel/login_view_model.dart'; 6 | import 'package:restaurant_app/feature/notification_page/viewModel/notification_view_model.dart'; 7 | import 'package:restaurant_app/feature/profile_page/viewModel/profil_view_model.dart'; 8 | import 'package:restaurant_app/feature/reservation_page/viewModel/reservation_view_model.dart'; 9 | 10 | class MultiProviderInit { 11 | final List providers = [ 12 | ChangeNotifierProvider(create: (_) => NotificationViewModel()), 13 | ChangeNotifierProvider(create: (_) => FavoriteViewModel()), 14 | ChangeNotifierProvider(create: (_) => ReservationViewModel()), 15 | ChangeNotifierProvider(create: (_) => ProfileViewModel()), 16 | ChangeNotifierProvider(create: (_) => LoginViewModel()), 17 | ChangeNotifierProvider(create: (_) => HomeViewModel()), 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /android/app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "789775148109", 4 | "project_id": "restaurantapp-ca88a", 5 | "storage_bucket": "restaurantapp-ca88a.appspot.com" 6 | }, 7 | "client": [ 8 | { 9 | "client_info": { 10 | "mobilesdk_app_id": "1:789775148109:android:f72a4dfa036a445bf42804", 11 | "android_client_info": { 12 | "package_name": "com.example.restaurant_app" 13 | } 14 | }, 15 | "oauth_client": [ 16 | { 17 | "client_id": "789775148109-9rd6suqavgtjit8j114necpgq80lcq01.apps.googleusercontent.com", 18 | "client_type": 3 19 | } 20 | ], 21 | "api_key": [ 22 | { 23 | "current_key": "AIzaSyBJTIQ9KMUf0Z9Iwa9cO_R6wOEb6Dl-nr8" 24 | } 25 | ], 26 | "services": { 27 | "appinvite_service": { 28 | "other_platform_oauth_client": [ 29 | { 30 | "client_id": "789775148109-9rd6suqavgtjit8j114necpgq80lcq01.apps.googleusercontent.com", 31 | "client_type": 3 32 | } 33 | ] 34 | } 35 | } 36 | } 37 | ], 38 | "configuration_version": "1" 39 | } -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility in the flutter_test package. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:restaurant_app/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(const MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /lib/feature/home_page/model/open_rest_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/core/constants/app_colors.dart'; 3 | import 'package:restaurant_app/core/constants/app_string.dart'; 4 | import 'package:restaurant_app/core/constants/image_const.dart'; 5 | 6 | class OpenRestModel { 7 | final Widget imagePath; 8 | 9 | final String text; 10 | final String title; 11 | final Color color; 12 | 13 | OpenRestModel( 14 | {required this.imagePath, 15 | required this.text, 16 | required this.title, 17 | required this.color}); 18 | } 19 | 20 | class OpenRestItems { 21 | late final List items; 22 | 23 | OpenRestItems() { 24 | items = [ 25 | OpenRestModel( 26 | imagePath: const PngImage(name: ImageItems.resto), 27 | text: StringConstant.awesome, 28 | title: StringConstant.restoHouse, 29 | color: AppColors.poppypower), 30 | OpenRestModel( 31 | imagePath: const PngImage(name: ImageItems.arsalan), 32 | text: StringConstant.supercafe, 33 | title: StringConstant.arsalan, 34 | color: AppColors.outoftheblue) 35 | ]; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /lib/feature/home_page/model/category_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | import 'package:restaurant_app/core/constants/app_string.dart'; 3 | import 'package:restaurant_app/core/constants/image_const.dart'; 4 | 5 | class CategoryModel { 6 | final Widget imagePath; 7 | final String title; 8 | 9 | CategoryModel({required this.imagePath, required this.title}); 10 | } 11 | 12 | class CategoryItems { 13 | late final List items; 14 | 15 | CategoryItems() { 16 | items = [ 17 | CategoryModel( 18 | imagePath: const PngImage(name: ImageItems.seafood), 19 | title: StringConstant.all), 20 | CategoryModel( 21 | imagePath: const PngImage(name: ImageItems.chinese), 22 | title: StringConstant.chinese), 23 | CategoryModel( 24 | imagePath: const PngImage(name: ImageItems.seafood), 25 | title: StringConstant.seafood), 26 | CategoryModel( 27 | imagePath: const PngImage(name: ImageItems.salad), 28 | title: StringConstant.salad), 29 | CategoryModel( 30 | imagePath: const PngImage(name: ImageItems.salad), 31 | title: StringConstant.vegetarian), 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /lib/products/component/slider_column.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/products/component/custom_slider.dart'; 5 | 6 | class SliderColumnWidget extends StatefulWidget { 7 | final String text; 8 | final double num; 9 | const SliderColumnWidget({ 10 | Key? key, 11 | required this.text, 12 | required this.num, 13 | }) : super(key: key); 14 | 15 | @override 16 | State createState() => _SliderColumnWidgetState(); 17 | } 18 | 19 | class _SliderColumnWidgetState extends State { 20 | @override 21 | Widget build(BuildContext context) { 22 | return Row( 23 | children: [ 24 | Text( 25 | widget.text, 26 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 27 | color: AppColors.black, 28 | fontWeight: FontWeight.bold, 29 | ), 30 | ), 31 | SizedBox( 32 | width: context.dynamicWidth(0.02), 33 | ), 34 | CustomSlider( 35 | percentage: widget.num, 36 | ), 37 | ], 38 | ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: restaurant_app 2 | description: A new Flutter project. 3 | 4 | publish_to: "none" 5 | version: 1.0.0+1 6 | 7 | environment: 8 | sdk: ">=2.17.6 <3.0.0" 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | 14 | cupertino_icons: ^1.0.2 15 | 16 | #state 17 | provider: ^6.0.3 18 | 19 | #Context 20 | kartal: ^2.3.2 21 | 22 | #Animation 23 | lottie: ^1.4.2 24 | 25 | #Google 26 | google_fonts: ^3.0.1 27 | image_picker: ^0.8.5 28 | flutter_svg: ^1.1.1+1 29 | contained_tab_bar_view: ^0.8.0 30 | 31 | #Firebase 32 | firebase_core: ^1.14.1 33 | firebase_auth: ^3.3.14 34 | cloud_firestore: ^3.1.12 35 | firebase_storage: ^10.2.12 36 | 37 | #Core 38 | uuid: ^3.0.6 39 | fluttertoast: ^8.0.9 40 | page_transition: ^2.0.9 41 | intl: ^0.17.0 42 | 43 | #DateTime 44 | datetime_picker_formfield: ^2.0.0 45 | carousel_slider: ^4.1.1 46 | flutter_datetime_picker: ^1.5.1 47 | linear_step_indicator: ^1.0.0+3 48 | 49 | dev_dependencies: 50 | flutter_test: 51 | sdk: flutter 52 | 53 | flutter_lints: ^2.0.0 54 | 55 | flutter: 56 | uses-material-design: true 57 | assets: 58 | - assets/image/ 59 | - assets/svgs/ 60 | - assets/icons/bottom_navbar/ 61 | - assets/lotties/ 62 | -------------------------------------------------------------------------------- /lib/products/mixin/reservation_category.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:restaurant_app/feature/reservation_page/model/reservation_model.dart'; 4 | import 'package:restaurant_app/feature/reservation_page/viewModel/reservation_view_model.dart'; 5 | 6 | final scrollController = ScrollController(); 7 | List breackPoints = []; 8 | mixin ReservationCategory on State { 9 | double restoInfoHeight = 200 + 170 - kToolbarHeight; 10 | 11 | @override 12 | void initState() { 13 | super.initState(); 14 | createBreackPoints(); 15 | scrollController.addListener(() { 16 | context 17 | .read() 18 | .updateCategoryIndexOnScroll(scrollController.offset); 19 | }); 20 | } 21 | 22 | void createBreackPoints() { 23 | double firstBreackPoint = 24 | restoInfoHeight + 50 + (116 * allCategoryMenus[0].items.length); 25 | breackPoints.add(firstBreackPoint); 26 | for (var i = 1; i < allCategoryMenus.length; i++) { 27 | double breackPoint = 28 | breackPoints.last + 50 + (116 * allCategoryMenus[0].items.length); 29 | breackPoints.add(breackPoint); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /windows/runner/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | project(runner LANGUAGES CXX) 3 | 4 | # Define the application target. To change its name, change BINARY_NAME in the 5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer 6 | # work. 7 | # 8 | # Any new source files that you add to the application should be added here. 9 | add_executable(${BINARY_NAME} WIN32 10 | "flutter_window.cpp" 11 | "main.cpp" 12 | "utils.cpp" 13 | "win32_window.cpp" 14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 15 | "Runner.rc" 16 | "runner.exe.manifest" 17 | ) 18 | 19 | # Apply the standard set of build settings. This can be removed for applications 20 | # that need different build settings. 21 | apply_standard_settings(${BINARY_NAME}) 22 | 23 | # Disable Windows macros that collide with C++ standard library functions. 24 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") 25 | 26 | # Add dependency libraries and include directories. Add any application-specific 27 | # dependencies here. 28 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) 29 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") 30 | 31 | # Run the Flutter tool portions of the build. This must not be removed. 32 | add_dependencies(${BINARY_NAME} flutter_assemble) 33 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_core/firebase_core.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter/services.dart'; 4 | import 'package:provider/provider.dart'; 5 | import 'package:restaurant_app/core/constants/app_string.dart'; 6 | import 'package:restaurant_app/feature/splash_page/view/splash_view.dart'; 7 | import 'package:restaurant_app/products/global/global.dart'; 8 | import 'package:restaurant_app/products/navigation/navigation_custom.dart'; 9 | 10 | Future main() async { 11 | SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle( 12 | statusBarColor: Colors.transparent, 13 | )); 14 | WidgetsFlutterBinding.ensureInitialized(); 15 | await Firebase.initializeApp(); 16 | runApp(const MyApp()); 17 | } 18 | 19 | class MyApp extends StatelessWidget with NavigatorCustom { 20 | const MyApp({Key? key}) : super(key: key); 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | return MultiProvider( 25 | providers: MultiProviderInit().providers, 26 | child: MaterialApp( 27 | title: StringConstant.main, 28 | debugShowCheckedModeBanner: false, 29 | theme: ThemeData( 30 | primarySwatch: Colors.orange, 31 | ), 32 | initialRoute: '/', 33 | routes: { 34 | "/": (context) => const SplashPage(), 35 | }, 36 | onGenerateRoute: onGenerateRoute), 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /windows/runner/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "flutter_window.h" 6 | #include "utils.h" 7 | 8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, 9 | _In_ wchar_t *command_line, _In_ int show_command) { 10 | // Attach to console when present (e.g., 'flutter run') or create a 11 | // new console when running with a debugger. 12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { 13 | CreateAndAttachConsole(); 14 | } 15 | 16 | // Initialize COM, so that it is available for use in the library and/or 17 | // plugins. 18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); 19 | 20 | flutter::DartProject project(L"data"); 21 | 22 | std::vector command_line_arguments = 23 | GetCommandLineArguments(); 24 | 25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); 26 | 27 | FlutterWindow window(project); 28 | Win32Window::Point origin(10, 10); 29 | Win32Window::Size size(1280, 720); 30 | if (!window.CreateAndShow(L"restaurant_app", origin, size)) { 31 | return EXIT_FAILURE; 32 | } 33 | window.SetQuitOnClose(true); 34 | 35 | ::MSG msg; 36 | while (::GetMessage(&msg, nullptr, 0, 0)) { 37 | ::TranslateMessage(&msg); 38 | ::DispatchMessage(&msg); 39 | } 40 | 41 | ::CoUninitialize(); 42 | return EXIT_SUCCESS; 43 | } 44 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /lib/products/component/reservation_title_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/core/constants/app_colors.dart'; 3 | import 'package:restaurant_app/core/extensions/extension.dart'; 4 | 5 | class ReservationCard extends StatelessWidget { 6 | const ReservationCard({ 7 | Key? key, 8 | required this.image, 9 | required this.name, 10 | required this.title, 11 | required this.price, 12 | }) : super(key: key); 13 | 14 | final String image, title, name; 15 | final double price; 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Row( 20 | children: [ 21 | Expanded( 22 | child: DefaultTextStyle( 23 | style: const TextStyle(color: AppColors.silverlined), 24 | child: Column( 25 | crossAxisAlignment: CrossAxisAlignment.start, 26 | children: [ 27 | Text( 28 | title, 29 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 30 | color: AppColors.black, 31 | fontWeight: FontWeight.w600, 32 | ), 33 | ), 34 | Padding( 35 | padding: context.paddingLowVertical, 36 | child: Text( 37 | name, 38 | maxLines: 5, 39 | overflow: TextOverflow.ellipsis, 40 | ), 41 | ), 42 | ], 43 | ), 44 | ), 45 | ) 46 | ], 47 | ); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /lib/feature/home_page/viewModel/home_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/feature/home_page/model/category_model.dart'; 3 | import 'package:restaurant_app/feature/home_page/model/favorite_model.dart'; 4 | import 'package:restaurant_app/feature/home_page/model/menu_draw_model.dart'; 5 | import 'package:restaurant_app/feature/home_page/model/open_rest_model.dart'; 6 | 7 | class HomeViewModel extends ChangeNotifier { 8 | late final List _catItem = CategoryItems().items; 9 | List get catModel => _catItem; 10 | 11 | late final List _favItem = HomeFavoriteItems().items; 12 | List get favModel => _favItem; 13 | 14 | late final List _openItem = OpenRestItems().items; 15 | List get openModel => _openItem; 16 | 17 | late final List _drawItem = DrawItems().items; 18 | List get drawModel => _drawItem; 19 | 20 | categoryToList(CategoryModel catModel) { 21 | _catItem.contains(catModel); 22 | notifyListeners(); 23 | } 24 | 25 | favoriteToList(HomeFavoriteModel favModel) { 26 | _favItem.contains(favModel); 27 | notifyListeners(); 28 | } 29 | 30 | openToList(OpenRestModel openModel) { 31 | _openItem.contains(openModel); 32 | notifyListeners(); 33 | } 34 | 35 | drawToList(DrawModel drawModel) { 36 | _drawItem.contains(drawModel); 37 | notifyListeners(); 38 | } 39 | 40 | bool menuOpenMi = false; 41 | menuOpenClose() { 42 | menuOpenMi = !menuOpenMi; 43 | notifyListeners(); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "app_icon_16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "app_icon_32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "app_icon_32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "app_icon_64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "app_icon_128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "app_icon_256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "app_icon_256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "app_icon_512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "app_icon_512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "app_icon_1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /lib/feature/home_page/model/menu_draw_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/core/constants/app_colors.dart'; 3 | import 'package:restaurant_app/core/constants/app_string.dart'; 4 | 5 | class DrawModel { 6 | final String title; 7 | final Widget icon; 8 | 9 | DrawModel({ 10 | required this.title, 11 | required this.icon, 12 | }); 13 | } 14 | 15 | class DrawItems { 16 | late final List items; 17 | 18 | DrawItems() { 19 | items = [ 20 | DrawModel( 21 | icon: const Icon( 22 | Icons.home_outlined, 23 | color: AppColors.russet, 24 | ), 25 | title: StringConstant.myHome), 26 | DrawModel( 27 | icon: const Icon( 28 | Icons.search, 29 | color: AppColors.russet, 30 | ), 31 | title: StringConstant.yourOrder), 32 | DrawModel( 33 | icon: const Icon( 34 | Icons.settings_outlined, 35 | color: AppColors.russet, 36 | ), 37 | title: StringConstant.setting), 38 | DrawModel( 39 | icon: const Icon( 40 | Icons.help_outline, 41 | color: AppColors.russet, 42 | ), 43 | title: StringConstant.whish), 44 | DrawModel( 45 | icon: const Icon( 46 | Icons.alarm, 47 | color: AppColors.russet, 48 | ), 49 | title: StringConstant.menu), 50 | DrawModel( 51 | icon: const Icon( 52 | Icons.logout, 53 | color: AppColors.russet, 54 | ), 55 | title: StringConstant.logout), 56 | ]; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled. 5 | 6 | version: 7 | revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 8 | channel: stable 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 17 | base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 18 | - platform: android 19 | create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 20 | base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 21 | - platform: ios 22 | create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 23 | base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 24 | - platform: linux 25 | create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 26 | base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 27 | - platform: macos 28 | create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 29 | base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 30 | - platform: web 31 | create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 32 | base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 33 | - platform: windows 34 | create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 35 | base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 36 | 37 | # User provided section 38 | 39 | # List of Local paths (relative to this file) that should be 40 | # ignored by the migrate tool. 41 | # 42 | # Files that are not part of the templates will be ignored by default. 43 | unmanaged_files: 44 | - 'lib/main.dart' 45 | - 'ios/Runner.xcodeproj/project.pbxproj' 46 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Restaurant App 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | restaurant_app 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | CADisableMinimumFrameDurationOnPhone 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /lib/products/component/reservation_title.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/constants/app_string.dart'; 5 | import 'package:restaurant_app/products/component/time_container_widget.dart'; 6 | 7 | class ReservationCategoryItem extends StatelessWidget { 8 | const ReservationCategoryItem({ 9 | Key? key, 10 | required this.title, 11 | required this.items, 12 | }) : super(key: key); 13 | 14 | final String title; 15 | final List items; 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Column( 20 | crossAxisAlignment: CrossAxisAlignment.start, 21 | children: [ 22 | Row( 23 | children: [ 24 | const Icon( 25 | Icons.date_range_outlined, 26 | color: AppColors.outoftheblue, 27 | ), 28 | SizedBox( 29 | width: context.dynamicWidth(0.03), 30 | ), 31 | Text( 32 | StringConstant.book, 33 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 34 | color: AppColors.outoftheblue, 35 | fontWeight: FontWeight.bold, 36 | ), 37 | ), 38 | SizedBox( 39 | width: context.dynamicWidth(0.03), 40 | ), 41 | Text( 42 | StringConstant.timestoday, 43 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 44 | color: AppColors.outoftheblue, 45 | fontWeight: FontWeight.bold, 46 | ), 47 | ), 48 | ], 49 | ), 50 | const TimeContainer(), 51 | ...items, 52 | ], 53 | ); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /windows/runner/utils.cpp: -------------------------------------------------------------------------------- 1 | #include "utils.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | void CreateAndAttachConsole() { 11 | if (::AllocConsole()) { 12 | FILE *unused; 13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) { 14 | _dup2(_fileno(stdout), 1); 15 | } 16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) { 17 | _dup2(_fileno(stdout), 2); 18 | } 19 | std::ios::sync_with_stdio(); 20 | FlutterDesktopResyncOutputStreams(); 21 | } 22 | } 23 | 24 | std::vector GetCommandLineArguments() { 25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. 26 | int argc; 27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); 28 | if (argv == nullptr) { 29 | return std::vector(); 30 | } 31 | 32 | std::vector command_line_arguments; 33 | 34 | // Skip the first argument as it's the binary name. 35 | for (int i = 1; i < argc; i++) { 36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i])); 37 | } 38 | 39 | ::LocalFree(argv); 40 | 41 | return command_line_arguments; 42 | } 43 | 44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) { 45 | if (utf16_string == nullptr) { 46 | return std::string(); 47 | } 48 | int target_length = ::WideCharToMultiByte( 49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 50 | -1, nullptr, 0, nullptr, nullptr); 51 | std::string utf8_string; 52 | if (target_length == 0 || target_length > utf8_string.max_size()) { 53 | return utf8_string; 54 | } 55 | utf8_string.resize(target_length); 56 | int converted_length = ::WideCharToMultiByte( 57 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 58 | -1, utf8_string.data(), 59 | target_length, nullptr, nullptr); 60 | if (converted_length == 0) { 61 | return std::string(); 62 | } 63 | return utf8_string; 64 | } 65 | -------------------------------------------------------------------------------- /lib/products/component/reviews_title_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/constants/app_string.dart'; 5 | 6 | class ReviewsCard extends StatelessWidget { 7 | const ReviewsCard({ 8 | Key? key, 9 | required this.image, 10 | required this.title, 11 | required this.name, 12 | required this.price, 13 | }) : super(key: key); 14 | 15 | final String image, title, name; 16 | final double price; 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return Column(children: [ 21 | SizedBox(height: context.dynamicHeight(0.03)), 22 | Column(mainAxisAlignment: MainAxisAlignment.start, children: [ 23 | Row(children: [ 24 | CircleAvatar( 25 | radius: 30, 26 | backgroundColor: AppColors.blueMetallic.withOpacity(0.4), 27 | child: Text( 28 | StringConstant.dl, 29 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 30 | color: AppColors.white, 31 | fontWeight: FontWeight.bold, 32 | ), 33 | ), 34 | ), 35 | SizedBox(width: context.dynamicWidth(0.03)), 36 | Column( 37 | crossAxisAlignment: CrossAxisAlignment.start, 38 | children: [ 39 | Text(title), 40 | Text( 41 | name, 42 | maxLines: 2, 43 | overflow: TextOverflow.ellipsis, 44 | ), 45 | ], 46 | ), 47 | ]), 48 | SizedBox(height: context.dynamicHeight(0.02)), 49 | Row( 50 | children: [ 51 | for (int i = 0; i < 5; i++) 52 | Icon(Icons.star, 53 | size: 20, 54 | color: i == 4 ? Colors.black45 : AppColors.california), 55 | ], 56 | ), 57 | ]), 58 | ]); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /windows/runner/flutter_window.cpp: -------------------------------------------------------------------------------- 1 | #include "flutter_window.h" 2 | 3 | #include 4 | 5 | #include "flutter/generated_plugin_registrant.h" 6 | 7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project) 8 | : project_(project) {} 9 | 10 | FlutterWindow::~FlutterWindow() {} 11 | 12 | bool FlutterWindow::OnCreate() { 13 | if (!Win32Window::OnCreate()) { 14 | return false; 15 | } 16 | 17 | RECT frame = GetClientArea(); 18 | 19 | // The size here must match the window dimensions to avoid unnecessary surface 20 | // creation / destruction in the startup path. 21 | flutter_controller_ = std::make_unique( 22 | frame.right - frame.left, frame.bottom - frame.top, project_); 23 | // Ensure that basic setup of the controller was successful. 24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) { 25 | return false; 26 | } 27 | RegisterPlugins(flutter_controller_->engine()); 28 | SetChildContent(flutter_controller_->view()->GetNativeWindow()); 29 | return true; 30 | } 31 | 32 | void FlutterWindow::OnDestroy() { 33 | if (flutter_controller_) { 34 | flutter_controller_ = nullptr; 35 | } 36 | 37 | Win32Window::OnDestroy(); 38 | } 39 | 40 | LRESULT 41 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, 42 | WPARAM const wparam, 43 | LPARAM const lparam) noexcept { 44 | // Give Flutter, including plugins, an opportunity to handle window messages. 45 | if (flutter_controller_) { 46 | std::optional result = 47 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, 48 | lparam); 49 | if (result) { 50 | return *result; 51 | } 52 | } 53 | 54 | switch (message) { 55 | case WM_FONTCHANGE: 56 | flutter_controller_->engine()->ReloadSystemFonts(); 57 | break; 58 | } 59 | 60 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); 61 | } 62 | -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | restaurant_app 33 | 34 | 35 | 39 | 40 | 41 | 42 | 43 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /lib/feature/favorite_page/model/favorite_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:restaurant_app/core/constants/app_string.dart'; 3 | import 'package:restaurant_app/core/constants/image_const.dart'; 4 | 5 | class FavoriteModel { 6 | final Widget imagePath; 7 | final String title; 8 | final String price; 9 | final String point; 10 | 11 | FavoriteModel( 12 | {required this.point, 13 | required this.price, 14 | required this.imagePath, 15 | required this.title}); 16 | } 17 | 18 | class FavoriteItems { 19 | late final List items; 20 | 21 | FavoriteItems() { 22 | items = [ 23 | FavoriteModel( 24 | imagePath: const PngImage(name: ImageItems.favorite1), 25 | point: StringConstant.point, 26 | title: StringConstant.favoriName, 27 | price: StringConstant.prices, 28 | ), 29 | FavoriteModel( 30 | imagePath: const PngImage(name: ImageItems.favorite2), 31 | point: StringConstant.point, 32 | title: StringConstant.favoriName, 33 | price: StringConstant.prices, 34 | ), 35 | FavoriteModel( 36 | imagePath: const PngImage(name: ImageItems.favorite3), 37 | point: StringConstant.point, 38 | title: StringConstant.favoriName, 39 | price: StringConstant.prices, 40 | ), 41 | FavoriteModel( 42 | imagePath: const PngImage(name: ImageItems.favorite4), 43 | point: StringConstant.point, 44 | title: StringConstant.favoriName, 45 | price: StringConstant.prices, 46 | ), 47 | FavoriteModel( 48 | imagePath: const PngImage(name: ImageItems.favorite5), 49 | point: StringConstant.point, 50 | title: StringConstant.favoriName, 51 | price: StringConstant.prices, 52 | ), 53 | FavoriteModel( 54 | imagePath: const PngImage(name: ImageItems.favorite6), 55 | point: StringConstant.point, 56 | title: StringConstant.favoriName, 57 | price: StringConstant.prices, 58 | ), 59 | ]; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /lib/feature/reservation_page/model/reservation_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:restaurant_app/core/constants/app_string.dart'; 2 | 3 | class Menu { 4 | final String title, image, name; 5 | final double price; 6 | 7 | Menu( 8 | {required this.name, 9 | required this.title, 10 | required this.image, 11 | required this.price}); 12 | } 13 | 14 | class CategoryMenu { 15 | final String category; 16 | final List items; 17 | 18 | CategoryMenu({required this.category, required this.items}); 19 | } 20 | 21 | final List allCategoryMenus = [ 22 | CategoryMenu( 23 | category: StringConstant.reservaName, 24 | items: [], 25 | ), 26 | CategoryMenu( 27 | category: StringConstant.menuName, 28 | items: [], 29 | ), 30 | CategoryMenu( 31 | category: StringConstant.reviewsName, 32 | items: [], 33 | ), 34 | ]; 35 | 36 | final List demoCategoryMenus = [ 37 | CategoryMenu( 38 | category: StringConstant.menuName, 39 | items: [ 40 | Menu( 41 | price: 7.4, 42 | image: "assets/image/f_6.png", 43 | title: StringConstant.oysterDish, 44 | name: '', 45 | ), 46 | Menu( 47 | price: 9.0, 48 | image: "assets/image/f_7.png", 49 | title: StringConstant.oysterOn, 50 | name: '', 51 | ), 52 | Menu( 53 | price: 8.5, 54 | image: "assets/image/f_8.png", 55 | title: StringConstant.friendRice, 56 | name: '', 57 | ), 58 | ], 59 | ), 60 | ]; 61 | final List reserCategoryMenus = [ 62 | CategoryMenu( 63 | category: StringConstant.booked, 64 | items: [ 65 | Menu( 66 | price: 7.4, 67 | image: "", 68 | title: StringConstant.notesDay, 69 | name: StringConstant.notesName * 5, 70 | ), 71 | ], 72 | ), 73 | ]; 74 | 75 | final List reviewsCategoryMenus = [ 76 | CategoryMenu( 77 | category: StringConstant.reviewsName, 78 | items: [ 79 | Menu( 80 | price: 7.4, 81 | image: "", 82 | title: StringConstant.name, 83 | name: StringConstant.comment, 84 | ), 85 | ], 86 | ), 87 | ]; 88 | -------------------------------------------------------------------------------- /lib/feature/notification_page/model/notification_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:restaurant_app/core/constants/image_const.dart'; 3 | 4 | class NotificationModel { 5 | final Widget imagePath; 6 | final String title; 7 | final String text; 8 | final String date; 9 | 10 | NotificationModel( 11 | {required this.date, 12 | required this.text, 13 | required this.imagePath, 14 | required this.title}); 15 | } 16 | 17 | class NotificationItems { 18 | late final List items; 19 | 20 | NotificationItems() { 21 | items = [ 22 | NotificationModel( 23 | imagePath: const PngImage(name: ImageItems.logo), 24 | date: 'Just now', 25 | title: 'Banjour Creperie has accept your order', 26 | text: '', 27 | ), 28 | NotificationModel( 29 | imagePath: const PngImage(name: ImageItems.logo1), 30 | date: 'Just now', 31 | title: 'Your Order is arriving soon', 32 | text: 'Delivery boy has almost reached your location with your order', 33 | ), 34 | NotificationModel( 35 | imagePath: const PngImage(name: ImageItems.logo2), 36 | date: '28 May, 2022', 37 | title: 'Your Order is on the way!', 38 | text: 'Tap here to track your order from Hello Bangla', 39 | ), 40 | NotificationModel( 41 | imagePath: const PngImage(name: ImageItems.logo3), 42 | date: '20 May, 2022', 43 | title: 'Message form the Cheesy', 44 | text: 'I am waiting at the door,please collect your', 45 | ), 46 | NotificationModel( 47 | imagePath: const PngImage(name: ImageItems.logo4), 48 | date: '16 May, 2020', 49 | title: 'Super Haji Biryani', 50 | text: 'Tap here to track your order form Super haji biryani', 51 | ), 52 | NotificationModel( 53 | imagePath: const PngImage(name: ImageItems.logo5), 54 | date: '12 May, 2020', 55 | title: 'Delivered to you in wrap speed!', 56 | text: 57 | 'Your order was teleported to you in 18 minutesi Enjoy it while we beam our delivery captain back', 58 | ), 59 | ]; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /lib/feature/notification_page/view/notification_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/constants/app_string.dart'; 5 | import 'package:restaurant_app/core/constants/image_const.dart'; 6 | import 'package:restaurant_app/core/extensions/extension.dart'; 7 | import 'package:restaurant_app/feature/notification_page/viewModel/notification_view_model.dart'; 8 | import 'package:restaurant_app/products/component/notification_card.dart'; 9 | import 'package:restaurant_app/products/widgets/app_bar.dart'; 10 | import 'package:restaurant_app/products/widgets/bottom_navbar.dart'; 11 | 12 | class NotificationPage extends StatelessWidget { 13 | const NotificationPage({Key? key}) : super(key: key); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | var ntfList = context.read().ntfModel; 18 | return Scaffold( 19 | bottomNavigationBar: const BottomNavbar(pageid: 4), 20 | body: Column( 21 | children: [ 22 | Stack( 23 | children: [ 24 | const PngImage(name: ImageItems.stackImage), 25 | Padding( 26 | padding: context.pageTopPadding, 27 | child: const AppBarWidget( 28 | color: AppColors.white, 29 | ), 30 | ), 31 | Padding( 32 | padding: context.pagePaddingTopLeft, 33 | child: Text( 34 | StringConstant.notificationTitle, 35 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 36 | color: AppColors.white, fontWeight: FontWeight.bold), 37 | ), 38 | ), 39 | ], 40 | ), 41 | Expanded( 42 | child: Consumer( 43 | builder: ((context, value, child) { 44 | return ListView.builder( 45 | itemCount: ntfList.length, 46 | itemBuilder: (context, index) { 47 | return NotificationCard(model: ntfList[index]); 48 | }); 49 | }), 50 | ), 51 | ) 52 | ], 53 | ), 54 | ); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /lib/products/component/notification_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/constants/image_const.dart'; 5 | import 'package:restaurant_app/core/extensions/extension.dart'; 6 | import 'package:restaurant_app/feature/notification_page/model/notification_model.dart'; 7 | 8 | class NotificationCard extends StatelessWidget { 9 | const NotificationCard({Key? key, required NotificationModel model}) 10 | : _model = model, 11 | super(key: key); 12 | 13 | final NotificationModel _model; 14 | @override 15 | Widget build(BuildContext context) { 16 | return Padding( 17 | padding: context.pagePadding, 18 | child: Row( 19 | mainAxisAlignment: MainAxisAlignment.start, 20 | children: [ 21 | _model.imagePath, 22 | SizedBox( 23 | width: context.dynamicWidth(0.05), 24 | ), 25 | SizedBox( 26 | width: context.dynamicWidth(0.70), 27 | child: Column( 28 | crossAxisAlignment: CrossAxisAlignment.start, 29 | children: [ 30 | Text( 31 | _model.title, 32 | style: Theme.of(context).textTheme.titleMedium?.copyWith( 33 | color: AppColors.darkGrey, fontWeight: FontWeight.bold), 34 | ), 35 | Text( 36 | _model.text, 37 | style: Theme.of(context).textTheme.bodyMedium?.copyWith( 38 | color: AppColors.darkGrey, fontWeight: FontWeight.bold), 39 | ), 40 | Row( 41 | children: [ 42 | const PngImage(name: ImageItems.clock), 43 | SizedBox( 44 | width: context.dynamicWidth(0.03), 45 | ), 46 | Text( 47 | _model.date, 48 | style: Theme.of(context).textTheme.bodyLarge?.copyWith( 49 | color: AppColors.chanceofrain, 50 | fontWeight: FontWeight.bold), 51 | ), 52 | ], 53 | ), 54 | ], 55 | ), 56 | ), 57 | ], 58 | ), 59 | ); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /lib/products/widgets/text_form_field.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/feature/login_register_page/viewModel/login_view_model.dart'; 5 | 6 | class AuthTextField extends StatefulWidget { 7 | const AuthTextField({ 8 | Key? key, 9 | required this.controller, 10 | required this.hintText, 11 | required this.changeObscureCallBack, 12 | this.isObsecure, 13 | required this.validator, 14 | required Null Function(dynamic value) onSaved, 15 | }) : super(key: key); 16 | 17 | final TextEditingController controller; 18 | final String hintText; 19 | 20 | final bool? isObsecure; 21 | final VoidCallback changeObscureCallBack; 22 | final String? Function(String?)? validator; 23 | 24 | @override 25 | State createState() => _AuthTextFieldState(); 26 | } 27 | 28 | class _AuthTextFieldState extends State { 29 | @override 30 | Widget build(BuildContext context) { 31 | return Consumer( 32 | builder: ((context, value, child) { 33 | return TextFormField( 34 | controller: widget.controller, 35 | validator: widget.validator, 36 | decoration: InputDecoration( 37 | hintText: widget.hintText, 38 | hintStyle: Theme.of(context).textTheme.titleLarge?.copyWith( 39 | color: AppColors.silverlined, 40 | fontWeight: FontWeight.w600, 41 | ), 42 | suffixIcon: widget.hintText == "Şifre" 43 | ? context.watch().isObsecures ?? false 44 | ? IconButton( 45 | onPressed: () => 46 | context.read().changeObsecure(), 47 | icon: const Icon(Icons.visibility_off_rounded), 48 | ) 49 | : IconButton( 50 | onPressed: () => 51 | context.read().changeObsecure(), 52 | icon: const Icon(Icons.visibility), 53 | ) 54 | : const SizedBox(), 55 | ), 56 | obscureText: context.watch().isObsecures ?? false, 57 | ); 58 | }), 59 | ); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /lib/products/widgets/bottom_navbar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_svg/flutter_svg.dart'; 3 | import 'package:kartal/kartal.dart'; 4 | import 'package:restaurant_app/core/constants/app_colors.dart'; 5 | import 'package:restaurant_app/feature/home_page/view/home_view.dart'; 6 | 7 | class BottomNavbar extends StatefulWidget { 8 | final int pageid; 9 | const BottomNavbar({Key? key, required this.pageid}) : super(key: key); 10 | 11 | @override 12 | State createState() => _BottomNavbarState(); 13 | } 14 | 15 | class _BottomNavbarState extends State { 16 | @override 17 | Widget build(BuildContext context) { 18 | return Container( 19 | color: AppColors.white, 20 | height: context.dynamicHeight(0.07), 21 | padding: EdgeInsets.only(top: context.height / 100), 22 | child: Row( 23 | mainAxisAlignment: MainAxisAlignment.spaceAround, 24 | crossAxisAlignment: CrossAxisAlignment.start, 25 | children: [ 26 | item( 27 | icon: 'person', 28 | pageName: "profilePage", 29 | id: 0, 30 | ), 31 | item( 32 | icon: 'shop', 33 | pageName: "shopPage", 34 | id: 1, 35 | ), 36 | item( 37 | icon: 'home', 38 | pageName: "homePage", 39 | id: 2, 40 | ), 41 | item( 42 | icon: 'favorite', 43 | pageName: "favoritePage", 44 | id: 3, 45 | ), 46 | item( 47 | icon: 'notification', 48 | pageName: "notificationPage", 49 | id: 4, 50 | ), 51 | ], 52 | ), 53 | ); 54 | } 55 | 56 | Widget item({ 57 | required String icon, 58 | required String pageName, 59 | required int id, 60 | }) { 61 | return InkWell( 62 | onTap: () { 63 | id != 2 64 | ? Navigator.pushNamedAndRemoveUntil( 65 | context, "/$pageName", (route) => false) 66 | : Navigator.pushReplacement( 67 | context, 68 | MaterialPageRoute( 69 | builder: (context) => const HomePage(), 70 | )); 71 | }, 72 | child: SvgPicture.asset( 73 | 'assets/icons/bottom_navbar/$icon.svg', 74 | height: 25, 75 | color: 76 | widget.pageid == id ? AppColors.consumed : AppColors.flataluminum, 77 | ), 78 | ); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /lib/products/navigation/navigation_custom.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:page_transition/page_transition.dart'; 3 | import 'package:restaurant_app/core/constants/app_string.dart'; 4 | import 'package:restaurant_app/feature/favorite_page/view/favorite_view.dart'; 5 | import 'package:restaurant_app/feature/home_page/view/home_view.dart'; 6 | import 'package:restaurant_app/feature/notification_page/view/notification_view.dart'; 7 | import 'package:restaurant_app/feature/profile_page/view/profile_view.dart'; 8 | import 'package:restaurant_app/feature/reservation_page/view/reservation_view.dart'; 9 | import 'package:restaurant_app/main.dart'; 10 | 11 | mixin NavigatorCustom on Widget { 12 | Route? onGenerateRoute(RouteSettings routeSettings) { 13 | List filtered = routeSettings.name!.split("/"); 14 | switch (filtered[1]) { 15 | case "/": 16 | return PageTransition( 17 | child: const HomePage(), 18 | type: PageTransitionType.fade, 19 | settings: routeSettings, 20 | reverseDuration: const Duration(seconds: 0), 21 | ); 22 | case StringConstant.profil: 23 | return PageTransition( 24 | child: const ProfilePage(), 25 | type: PageTransitionType.fade, 26 | settings: routeSettings, 27 | reverseDuration: const Duration(seconds: 0), 28 | ); 29 | case StringConstant.shop: 30 | return PageTransition( 31 | child: const ReservationsPage(), 32 | type: PageTransitionType.fade, 33 | settings: routeSettings, 34 | reverseDuration: const Duration(seconds: 0), 35 | ); 36 | case StringConstant.home: 37 | return PageTransition( 38 | child: const HomePage(), 39 | type: PageTransitionType.fade, 40 | settings: routeSettings, 41 | reverseDuration: const Duration(seconds: 0), 42 | ); 43 | 44 | case StringConstant.favorite: 45 | return PageTransition( 46 | child: const FavoritePage(), 47 | type: PageTransitionType.fade, 48 | settings: routeSettings, 49 | reverseDuration: const Duration(seconds: 0), 50 | ); 51 | case StringConstant.notification: 52 | return PageTransition( 53 | child: const NotificationPage(), 54 | type: PageTransitionType.fade, 55 | settings: routeSettings, 56 | reverseDuration: const Duration(seconds: 0), 57 | ); 58 | } 59 | return null; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'com.google.gms.google-services' 26 | apply plugin: 'kotlin-android' 27 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 28 | 29 | android { 30 | compileSdkVersion 31 31 | ndkVersion flutter.ndkVersion 32 | 33 | compileOptions { 34 | sourceCompatibility JavaVersion.VERSION_1_8 35 | targetCompatibility JavaVersion.VERSION_1_8 36 | } 37 | 38 | kotlinOptions { 39 | jvmTarget = '1.8' 40 | } 41 | 42 | sourceSets { 43 | main.java.srcDirs += 'src/main/kotlin' 44 | } 45 | 46 | defaultConfig { 47 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 48 | applicationId "com.example.restaurant_app" 49 | // You can update the following values to match your application needs. 50 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. 51 | minSdkVersion 21 52 | multiDexEnabled true 53 | targetSdkVersion 31 54 | versionCode flutterVersionCode.toInteger() 55 | versionName flutterVersionName 56 | } 57 | 58 | buildTypes { 59 | release { 60 | // TODO: Add your own signing config for the release build. 61 | // Signing with the debug keys for now, so `flutter run --release` works. 62 | signingConfig signingConfigs.debug 63 | } 64 | } 65 | } 66 | 67 | flutter { 68 | source '../..' 69 | } 70 | 71 | dependencies { 72 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 73 | implementation 'com.google.firebase:firebase-analytics' 74 | } 75 | -------------------------------------------------------------------------------- /lib/products/component/favorite_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/extensions/extension.dart'; 5 | import 'package:restaurant_app/feature/favorite_page/model/favorite_model.dart'; 6 | 7 | class FavoriteCard extends StatelessWidget { 8 | const FavoriteCard({ 9 | Key? key, 10 | required FavoriteModel model, 11 | }) : _model = model, 12 | super(key: key); 13 | final FavoriteModel _model; 14 | @override 15 | Widget build(BuildContext context) { 16 | return Padding( 17 | padding: context.cardPadding, 18 | child: Container( 19 | height: context.dynamicHeight(0.20), 20 | width: context.dynamicWidth(0.4), 21 | decoration: BoxDecoration( 22 | color: AppColors.white, 23 | borderRadius: BorderRadius.circular(10), 24 | boxShadow: const [ 25 | BoxShadow( 26 | offset: Offset( 27 | 0, 28 | 0, 29 | ), 30 | color: AppColors.anon, 31 | blurRadius: 10) 32 | ], 33 | ), 34 | child: Column( 35 | mainAxisAlignment: MainAxisAlignment.start, 36 | crossAxisAlignment: CrossAxisAlignment.start, 37 | children: [ 38 | _model.imagePath, 39 | Padding( 40 | padding: context.pagePaddingLeftTopRigth, 41 | child: Row( 42 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 43 | children: [ 44 | Text( 45 | _model.title, 46 | ), 47 | Container( 48 | width: context.dynamicWidth(0.08), 49 | decoration: context.cardDecoraiton, 50 | child: Center( 51 | child: Text( 52 | _model.point, 53 | style: Theme.of(context) 54 | .textTheme 55 | .titleSmall 56 | ?.copyWith(color: AppColors.white), 57 | ), 58 | ), 59 | ), 60 | ], 61 | ), 62 | ), 63 | Padding( 64 | padding: context.pagePaddingLeftTop, 65 | child: Text('\$ ${_model.price}'), 66 | ), 67 | ], 68 | ), 69 | ), 70 | ); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /lib/core/constants/image_const.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_svg/svg.dart'; 3 | import 'package:lottie/lottie.dart'; 4 | 5 | class ImageItems { 6 | final loginlogoImage = "image"; 7 | final gamil = 'gmail'; 8 | final facebook = 'facebook'; 9 | final admin = 'admin'; 10 | final menu = 'menu'; 11 | static const logo = 'logo'; 12 | static const logo1 = 'logo1'; 13 | static const logo2 = 'logo2'; 14 | static const logo3 = 'logo3'; 15 | static const logo4 = 'logo4'; 16 | static const logo5 = 'logo5'; 17 | static const logo6 = 'logo6'; 18 | static const clock = 'clock'; 19 | static const favorite1 = 'heart1'; 20 | static const favorite2 = 'heart2'; 21 | static const favorite3 = 'heart3'; 22 | static const favorite4 = 'heart4'; 23 | static const favorite5 = 'heart5'; 24 | static const favorite6 = 'heart6'; 25 | static const profileImage = 'profil'; 26 | static const stackImage = 'stack'; 27 | static const logImage = 'logo'; 28 | static const mask1 = 'mask1'; 29 | static const mask2 = 'mask2'; 30 | static const mask3 = 'mask3'; 31 | static const mask4 = 'mask4'; 32 | static const mask5 = 'mask5'; 33 | static const mask6 = 'mask6'; 34 | static const resto1 = 'resto1'; 35 | static const resto4 = 'resto4'; 36 | static const chinese = 'chinese'; 37 | static const seafood = 'seafood'; 38 | static const salad = 'salad'; 39 | static const foodmail = 'foodmail'; 40 | static const chinesehub = 'chinesehub'; 41 | static const lunch = 'lunch'; 42 | static const resto = 'resto'; 43 | static const arsalan = 'arsalan'; 44 | static const knife = 'knife'; 45 | } 46 | 47 | class PngImage extends StatelessWidget { 48 | const PngImage({Key? key, required this.name}) : super(key: key); 49 | final String name; 50 | @override 51 | Widget build(BuildContext context) { 52 | return Image.asset(_nameWithPath, fit: BoxFit.fitHeight); 53 | } 54 | 55 | String get _nameWithPath => 'assets/image/$name.png'; 56 | } 57 | 58 | class SvgImage extends StatelessWidget { 59 | const SvgImage({Key? key, required this.name}) : super(key: key); 60 | final String name; 61 | @override 62 | Widget build(BuildContext context) { 63 | return SvgPicture.asset(_nameWithPath, fit: BoxFit.cover); 64 | } 65 | 66 | String get _nameWithPath => 'assets/svgs/$name.svg'; 67 | } 68 | 69 | class LottieImage extends StatelessWidget { 70 | const LottieImage({Key? key, required this.name}) : super(key: key); 71 | final String name; 72 | @override 73 | Widget build(BuildContext context) { 74 | return Lottie.asset(_nameWithPath, fit: BoxFit.cover); 75 | } 76 | 77 | String get _nameWithPath => 'assets/lotties/$name.json'; 78 | } 79 | -------------------------------------------------------------------------------- /lib/products/component/menu_title_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/constants/app_string.dart'; 5 | 6 | class MenuCard extends StatelessWidget { 7 | const MenuCard({ 8 | Key? key, 9 | required this.image, 10 | required this.title, 11 | required this.price, 12 | }) : super(key: key); 13 | 14 | final String image, title; 15 | final double price; 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Row( 20 | children: [ 21 | SizedBox( 22 | width: context.dynamicWidth(0.30), 23 | height: context.dynamicHeight(0.13), 24 | child: Image.asset(image), 25 | ), 26 | SizedBox(width: context.dynamicWidth(0.05)), 27 | Expanded( 28 | child: DefaultTextStyle( 29 | style: const TextStyle(color: AppColors.silverlined), 30 | child: Column( 31 | crossAxisAlignment: CrossAxisAlignment.start, 32 | children: [ 33 | Text( 34 | title, 35 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 36 | color: AppColors.black, 37 | fontWeight: FontWeight.w500, 38 | ), 39 | ), 40 | SizedBox( 41 | height: context.dynamicHeight(0.01), 42 | ), 43 | const Text( 44 | StringConstant.shortbread, 45 | maxLines: 2, 46 | overflow: TextOverflow.ellipsis, 47 | ), 48 | SizedBox( 49 | height: context.dynamicHeight(0.01), 50 | ), 51 | Row( 52 | children: [ 53 | const Text(StringConstant.price), 54 | SizedBox( 55 | width: context.dynamicWidth(0.02), 56 | ), 57 | const CircleAvatar( 58 | radius: 2, 59 | backgroundColor: AppColors.darkGrey, 60 | ), 61 | SizedBox( 62 | width: context.dynamicWidth(0.02), 63 | ), 64 | const Text(StringConstant.chinese), 65 | const Spacer(), 66 | Text( 67 | "USD$price", 68 | style: Theme.of(context).textTheme.bodyLarge?.copyWith( 69 | color: AppColors.california, 70 | fontWeight: FontWeight.w500, 71 | ), 72 | ) 73 | ], 74 | ) 75 | ], 76 | ), 77 | ), 78 | ) 79 | ], 80 | ); 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

Restaurant App UI

2 |

This project is a restaurant application and is designed for a simple restaurant harmony. Those who want to come to the restaurant can easily make a reservation.

3 |

Star ⭐ the repo if you like what you see 😉

4 |
5 |

Libraries Used

6 |
    7 |
  • Design UI -> Figma
  • 8 |
  • State Management -> Provider
  • 9 |
  • Authentification -> Firebase Auth
  • 10 |
  • Design Pattern -> MVVM
  • 11 |
12 | 13 | 14 |

Features

15 | 16 |

Splash Page - Login Page - Register Page

17 |
18 | 19 |     20 |     21 | 22 |
23 | 24 | 25 |

Home Page - Menu Page - Profil Page

26 |
27 |     28 |     29 | 30 |
31 | 32 |

Reservation Page - Menu - Review - Date

33 |
34 |     35 |     36 |     37 | 38 |
39 | 40 |

Notifications Page - Favorite Page

41 |
42 |     43 | 44 |
45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /lib/feature/reservation_page/viewModel/reservation_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:intl/intl.dart'; 3 | import 'package:restaurant_app/feature/reservation_page/model/reservation_model.dart'; 4 | import 'package:restaurant_app/products/mixin/reservation_category.dart'; 5 | 6 | class ReservationViewModel extends ChangeNotifier { 7 | List toTimeList = [ 8 | "1", 9 | "2", 10 | "3", 11 | "4", 12 | "5", 13 | "6", 14 | "7", 15 | "8", 16 | "9", 17 | "10", 18 | "11", 19 | "12", 20 | "13", 21 | "14" 22 | ]; 23 | 24 | List toTimeListSelect = [ 25 | false, 26 | true, 27 | false, 28 | false, 29 | false, 30 | false, 31 | false, 32 | false, 33 | false, 34 | false, 35 | false, 36 | false, 37 | false, 38 | false, 39 | ]; 40 | 41 | var formattedDate = DateFormat(' h:mm a, d MMM, EEEE').format(DateTime.now()); 42 | String selectedToTime = "2"; 43 | int selectedCategoryIndex = 0; 44 | 45 | double restoInfoHeight = 200 + 170 - kToolbarHeight; 46 | 47 | updateToList(int index) { 48 | toTimeListSelect[index] = !toTimeListSelect[index]; 49 | toTimeListSelect[index] == true 50 | ? selectedToTime = toTimeList[index] 51 | : selectedToTime = ' '; 52 | notifyListeners(); 53 | 54 | for (int i = 0; i < toTimeListSelect.length; i++) { 55 | toTimeListSelect[i] = false; 56 | notifyListeners(); 57 | } 58 | toTimeListSelect[index] = !toTimeListSelect[index]; 59 | toTimeListSelect[index] == true 60 | ? selectedToTime = toTimeList[index] 61 | : selectedToTime = ' '; 62 | notifyListeners(); 63 | } 64 | 65 | dateToList(DateTime dateTime) { 66 | formattedDate = dateTime as String; 67 | notifyListeners(); 68 | } 69 | 70 | scrollToCategory(int index) { 71 | if (selectedCategoryIndex != index) { 72 | int totalItems = 0; 73 | 74 | for (var i = 0; i < index; i++) { 75 | totalItems += allCategoryMenus[i].items.length; 76 | } 77 | scrollController.animateTo( 78 | restoInfoHeight + (116 * totalItems) + (50 * index), 79 | duration: const Duration(milliseconds: 500), 80 | curve: Curves.ease, 81 | ); 82 | 83 | selectedCategoryIndex = index; 84 | notifyListeners(); 85 | } 86 | } 87 | 88 | updateCategoryIndexOnScroll(double offset) { 89 | for (var i = 0; i < allCategoryMenus.length; i++) { 90 | if (i == 0) { 91 | if ((offset < breackPoints.first) & (selectedCategoryIndex != 0)) { 92 | selectedCategoryIndex = 0; 93 | notifyListeners(); 94 | } 95 | } else { 96 | if ((breackPoints[i - 1] <= offset) & (offset < breackPoints[i])) { 97 | if (selectedCategoryIndex != i) { 98 | selectedCategoryIndex = i; 99 | notifyListeners(); 100 | } 101 | } 102 | } 103 | } 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /lib/products/component/time_container_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/extensions/extension.dart'; 5 | 6 | class TimeContainer extends StatefulWidget { 7 | const TimeContainer({Key? key}) : super(key: key); 8 | 9 | @override 10 | State createState() => _TimeContainerState(); 11 | } 12 | 13 | class _TimeContainerState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [ 17 | SingleChildScrollView( 18 | scrollDirection: Axis.horizontal, 19 | child: Padding( 20 | padding: context.paddingLowHorizontalVertical, 21 | child: Row(children: [ 22 | const TimeWidget( 23 | time: '11:00', 24 | ), 25 | SizedBox( 26 | width: context.dynamicWidth(0.03), 27 | ), 28 | const TimeWidget( 29 | time: '11:15', 30 | ), 31 | SizedBox( 32 | width: context.dynamicWidth(0.03), 33 | ), 34 | const TimeWidget( 35 | time: '11:30', 36 | ), 37 | SizedBox( 38 | width: context.dynamicWidth(0.03), 39 | ), 40 | const TimeWidget( 41 | time: '11:45', 42 | ), 43 | SizedBox( 44 | width: context.dynamicWidth(0.03), 45 | ), 46 | const TimeWidget( 47 | time: '12:00', 48 | ), 49 | SizedBox( 50 | width: context.dynamicWidth(0.03), 51 | ), 52 | const TimeWidget( 53 | time: '12:15', 54 | ), 55 | SizedBox( 56 | width: context.dynamicWidth(0.03), 57 | ), 58 | const TimeWidget( 59 | time: '12:30', 60 | ), 61 | SizedBox( 62 | width: context.dynamicWidth(0.03), 63 | ), 64 | const TimeWidget( 65 | time: '12:45', 66 | ), 67 | SizedBox( 68 | width: context.dynamicWidth(0.03), 69 | ), 70 | ]), 71 | ), 72 | ), 73 | ]); 74 | } 75 | } 76 | 77 | class TimeWidget extends StatelessWidget { 78 | final String time; 79 | const TimeWidget({ 80 | Key? key, 81 | required this.time, 82 | }) : super(key: key); 83 | 84 | @override 85 | Widget build(BuildContext context) { 86 | return Container( 87 | height: context.dynamicHeight(0.05), 88 | width: context.dynamicWidth(0.18), 89 | decoration: context.timeDecoraiton, 90 | child: Center( 91 | child: Text( 92 | time, 93 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 94 | color: AppColors.white, 95 | ), 96 | )), 97 | ); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /linux/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.10) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | 12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...), 13 | # which isn't available in 3.10. 14 | function(list_prepend LIST_NAME PREFIX) 15 | set(NEW_LIST "") 16 | foreach(element ${${LIST_NAME}}) 17 | list(APPEND NEW_LIST "${PREFIX}${element}") 18 | endforeach(element) 19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) 20 | endfunction() 21 | 22 | # === Flutter Library === 23 | # System-level dependencies. 24 | find_package(PkgConfig REQUIRED) 25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) 26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) 27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) 28 | 29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") 30 | 31 | # Published to parent scope for install step. 32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) 36 | 37 | list(APPEND FLUTTER_LIBRARY_HEADERS 38 | "fl_basic_message_channel.h" 39 | "fl_binary_codec.h" 40 | "fl_binary_messenger.h" 41 | "fl_dart_project.h" 42 | "fl_engine.h" 43 | "fl_json_message_codec.h" 44 | "fl_json_method_codec.h" 45 | "fl_message_codec.h" 46 | "fl_method_call.h" 47 | "fl_method_channel.h" 48 | "fl_method_codec.h" 49 | "fl_method_response.h" 50 | "fl_plugin_registrar.h" 51 | "fl_plugin_registry.h" 52 | "fl_standard_message_codec.h" 53 | "fl_standard_method_codec.h" 54 | "fl_string_codec.h" 55 | "fl_value.h" 56 | "fl_view.h" 57 | "flutter_linux.h" 58 | ) 59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") 60 | add_library(flutter INTERFACE) 61 | target_include_directories(flutter INTERFACE 62 | "${EPHEMERAL_DIR}" 63 | ) 64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") 65 | target_link_libraries(flutter INTERFACE 66 | PkgConfig::GTK 67 | PkgConfig::GLIB 68 | PkgConfig::GIO 69 | ) 70 | add_dependencies(flutter flutter_assemble) 71 | 72 | # === Flutter tool backend === 73 | # _phony_ is a non-existent file to force this command to run every time, 74 | # since currently there's no way to get a full input/output list from the 75 | # flutter tool. 76 | add_custom_command( 77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_ 79 | COMMAND ${CMAKE_COMMAND} -E env 80 | ${FLUTTER_TOOL_ENVIRONMENT} 81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" 82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} 83 | VERBATIM 84 | ) 85 | add_custom_target(flutter_assemble DEPENDS 86 | "${FLUTTER_LIBRARY}" 87 | ${FLUTTER_LIBRARY_HEADERS} 88 | ) 89 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/products/component/reservation_appbar.dart: -------------------------------------------------------------------------------- 1 | import 'package:carousel_slider/carousel_slider.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/constants/app_string.dart'; 5 | import 'package:restaurant_app/core/constants/image_const.dart'; 6 | import 'package:kartal/kartal.dart'; 7 | import 'package:restaurant_app/core/extensions/extension.dart'; 8 | 9 | class RestaruantAppBar extends StatelessWidget { 10 | const RestaruantAppBar({ 11 | Key? key, 12 | }) : super(key: key); 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | List list = [ 17 | const PngImage(name: ImageItems.resto4), 18 | const PngImage(name: ImageItems.resto1), 19 | ]; 20 | return SliverAppBar( 21 | expandedHeight: context.dynamicHeight(0.21), 22 | backgroundColor: AppColors.white, 23 | elevation: 0, 24 | pinned: true, 25 | flexibleSpace: FlexibleSpaceBar( 26 | background: _stackWidget(list, context), 27 | ), 28 | leading: Padding( 29 | padding: context.paddingNormalLeft, 30 | child: CircleAvatar( 31 | backgroundColor: AppColors.white, 32 | child: IconButton( 33 | icon: const Icon(Icons.arrow_back_ios_rounded), 34 | onPressed: () {}, 35 | ), 36 | ), 37 | ), 38 | actions: [ 39 | CircleAvatar( 40 | backgroundColor: AppColors.white, 41 | child: IconButton( 42 | icon: const Icon(Icons.bookmark_outline), 43 | onPressed: () {}, 44 | ), 45 | ), 46 | Padding( 47 | padding: context.paddingLowHorizontal, 48 | child: CircleAvatar( 49 | backgroundColor: AppColors.white, 50 | child: IconButton( 51 | icon: const Icon(Icons.share), 52 | onPressed: () {}, 53 | ), 54 | ), 55 | ), 56 | ], 57 | ); 58 | } 59 | 60 | Stack _stackWidget(List list, BuildContext context) { 61 | return Stack( 62 | children: [ 63 | CarouselSlider( 64 | options: CarouselOptions( 65 | viewportFraction: 1.0, 66 | enlargeCenterPage: false, 67 | ), 68 | items: list 69 | .map((item) => SizedBox( 70 | height: context.dynamicHeight(0.10), 71 | width: MediaQuery.of(context).size.width, 72 | child: item)) 73 | .toList(), 74 | ), 75 | Padding( 76 | padding: context.pagePaddingTop, 77 | child: Center( 78 | child: Container( 79 | height: context.dynamicHeight(0.04), 80 | width: context.dynamicWidth(0.40), 81 | decoration: context.middelDecoraiton, 82 | child: Center( 83 | child: Text( 84 | StringConstant.seeAll, 85 | style: Theme.of(context).textTheme.titleMedium?.copyWith( 86 | color: AppColors.white, 87 | ), 88 | ), 89 | ), 90 | ), 91 | ), 92 | ), 93 | ], 94 | ); 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /lib/products/component/reservation_categories.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/core/constants/app_colors.dart'; 3 | import 'package:restaurant_app/core/extensions/extension.dart'; 4 | import 'package:restaurant_app/feature/reservation_page/model/reservation_model.dart'; 5 | 6 | class RestaurantCategories extends SliverPersistentHeaderDelegate { 7 | final ValueChanged onChanged; 8 | final int selectedIndex; 9 | RestaurantCategories({ 10 | required this.onChanged, 11 | required this.selectedIndex, 12 | }); 13 | 14 | @override 15 | Widget build( 16 | BuildContext context, double shrinkOffset, bool overlapsContent) { 17 | return Container( 18 | height: 52, 19 | color: AppColors.white, 20 | child: Categories(onChanged: onChanged, selectedIndex: selectedIndex)); 21 | } 22 | 23 | @override 24 | double get maxExtent => 52; 25 | 26 | @override 27 | double get minExtent => 52; 28 | 29 | @override 30 | bool shouldRebuild(covariant SliverPersistentHeaderDelegate oldDelegate) { 31 | return true; 32 | } 33 | } 34 | 35 | class Categories extends StatefulWidget { 36 | final ValueChanged onChanged; 37 | final int selectedIndex; 38 | const Categories( 39 | {Key? key, required this.onChanged, required this.selectedIndex}) 40 | : super(key: key); 41 | 42 | @override 43 | State createState() => _CategoriesState(); 44 | } 45 | 46 | class _CategoriesState extends State { 47 | late ScrollController controller; 48 | 49 | @override 50 | void initState() { 51 | controller = ScrollController(); 52 | super.initState(); 53 | } 54 | 55 | @override 56 | void didUpdateWidget(covariant Categories oldWidget) { 57 | controller.animateTo(80.0 * widget.selectedIndex, 58 | duration: const Duration(milliseconds: 200), curve: Curves.ease); 59 | super.didUpdateWidget(oldWidget); 60 | } 61 | 62 | @override 63 | void dispose() { 64 | controller.dispose(); 65 | super.dispose(); 66 | } 67 | 68 | @override 69 | Widget build(BuildContext context) { 70 | return Column( 71 | children: [ 72 | SingleChildScrollView( 73 | controller: controller, 74 | scrollDirection: Axis.horizontal, 75 | child: Row( 76 | children: List.generate( 77 | allCategoryMenus.length, 78 | (index) => Padding( 79 | padding: context.pagePaddingLeft, 80 | child: TextButton( 81 | onPressed: () { 82 | widget.onChanged(index); 83 | }, 84 | style: TextButton.styleFrom( 85 | foregroundColor: widget.selectedIndex == index 86 | ? AppColors.poppypower 87 | : AppColors.chanceofrain), 88 | child: Text( 89 | allCategoryMenus[index].category, 90 | style: const TextStyle(fontSize: 20), 91 | ), 92 | ), 93 | ), 94 | ), 95 | ), 96 | ), 97 | ], 98 | ); 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /lib/products/component/register.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/constants/app_string.dart'; 5 | 6 | import 'package:restaurant_app/core/extensions/extension.dart'; 7 | 8 | import 'package:restaurant_app/products/mixin/validation.dart'; 9 | 10 | class RegisterComponent extends StatefulWidget { 11 | const RegisterComponent({Key? key}) : super(key: key); 12 | 13 | @override 14 | State createState() => _RegisterComponentState(); 15 | } 16 | 17 | class _RegisterComponentState extends State with Validation { 18 | @override 19 | Widget build(BuildContext context) { 20 | return Column( 21 | crossAxisAlignment: CrossAxisAlignment.start, 22 | children: [ 23 | Container( 24 | padding: context.pagePaddingLetfTopRigth, 25 | child: Text( 26 | StringConstant.registerText, 27 | style: Theme.of(context).textTheme.headlineMedium?.copyWith( 28 | color: AppColors.blueMetallic, fontWeight: FontWeight.bold), 29 | )), 30 | SizedBox( 31 | height: context.dynamicHeight(0.03), 32 | ), 33 | Container( 34 | height: context.dynamicHeight(0.45), 35 | width: context.dynamicWidth(0.85), 36 | decoration: context.boxDecoraiton, 37 | child: Padding( 38 | padding: context.largePadding, 39 | child: Column(children: [ 40 | SizedBox( 41 | height: context.dynamicHeight(0.02), 42 | ), 43 | Form( 44 | key: formKey, 45 | child: Padding( 46 | padding: context.pagePadding, 47 | child: Column( 48 | mainAxisAlignment: MainAxisAlignment.center, 49 | crossAxisAlignment: CrossAxisAlignment.center, 50 | children: [ 51 | fullNameField, 52 | emailField, 53 | passwordField, 54 | ], 55 | ), 56 | ), 57 | ), 58 | SizedBox( 59 | height: context.dynamicHeight(0.03), 60 | ), 61 | Material( 62 | child: Container( 63 | color: AppColors.palatinateBlue, 64 | height: context.dynamicHeight(0.06), 65 | width: context.dynamicWidth(0.60), 66 | child: MaterialButton( 67 | onPressed: () { 68 | signUp(emailEditingController.text, 69 | passwordEditingController.text); 70 | }, 71 | child: Text( 72 | StringConstant.continu, 73 | textAlign: TextAlign.center, 74 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 75 | color: AppColors.white, 76 | fontWeight: FontWeight.bold, 77 | ), 78 | )), 79 | ), 80 | ) 81 | ]), 82 | ), 83 | ), 84 | ], 85 | ); 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /windows/runner/Runner.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #pragma code_page(65001) 4 | #include "resource.h" 5 | 6 | #define APSTUDIO_READONLY_SYMBOLS 7 | ///////////////////////////////////////////////////////////////////////////// 8 | // 9 | // Generated from the TEXTINCLUDE 2 resource. 10 | // 11 | #include "winres.h" 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | #undef APSTUDIO_READONLY_SYMBOLS 15 | 16 | ///////////////////////////////////////////////////////////////////////////// 17 | // English (United States) resources 18 | 19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 21 | 22 | #ifdef APSTUDIO_INVOKED 23 | ///////////////////////////////////////////////////////////////////////////// 24 | // 25 | // TEXTINCLUDE 26 | // 27 | 28 | 1 TEXTINCLUDE 29 | BEGIN 30 | "resource.h\0" 31 | END 32 | 33 | 2 TEXTINCLUDE 34 | BEGIN 35 | "#include ""winres.h""\r\n" 36 | "\0" 37 | END 38 | 39 | 3 TEXTINCLUDE 40 | BEGIN 41 | "\r\n" 42 | "\0" 43 | END 44 | 45 | #endif // APSTUDIO_INVOKED 46 | 47 | 48 | ///////////////////////////////////////////////////////////////////////////// 49 | // 50 | // Icon 51 | // 52 | 53 | // Icon with lowest ID value placed first to ensure application icon 54 | // remains consistent on all systems. 55 | IDI_APP_ICON ICON "resources\\app_icon.ico" 56 | 57 | 58 | ///////////////////////////////////////////////////////////////////////////// 59 | // 60 | // Version 61 | // 62 | 63 | #ifdef FLUTTER_BUILD_NUMBER 64 | #define VERSION_AS_NUMBER FLUTTER_BUILD_NUMBER 65 | #else 66 | #define VERSION_AS_NUMBER 1,0,0 67 | #endif 68 | 69 | #ifdef FLUTTER_BUILD_NAME 70 | #define VERSION_AS_STRING #FLUTTER_BUILD_NAME 71 | #else 72 | #define VERSION_AS_STRING "1.0.0" 73 | #endif 74 | 75 | VS_VERSION_INFO VERSIONINFO 76 | FILEVERSION VERSION_AS_NUMBER 77 | PRODUCTVERSION VERSION_AS_NUMBER 78 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 79 | #ifdef _DEBUG 80 | FILEFLAGS VS_FF_DEBUG 81 | #else 82 | FILEFLAGS 0x0L 83 | #endif 84 | FILEOS VOS__WINDOWS32 85 | FILETYPE VFT_APP 86 | FILESUBTYPE 0x0L 87 | BEGIN 88 | BLOCK "StringFileInfo" 89 | BEGIN 90 | BLOCK "040904e4" 91 | BEGIN 92 | VALUE "CompanyName", "com.example" "\0" 93 | VALUE "FileDescription", "restaurant_app" "\0" 94 | VALUE "FileVersion", VERSION_AS_STRING "\0" 95 | VALUE "InternalName", "restaurant_app" "\0" 96 | VALUE "LegalCopyright", "Copyright (C) 2022 com.example. All rights reserved." "\0" 97 | VALUE "OriginalFilename", "restaurant_app.exe" "\0" 98 | VALUE "ProductName", "restaurant_app" "\0" 99 | VALUE "ProductVersion", VERSION_AS_STRING "\0" 100 | END 101 | END 102 | BLOCK "VarFileInfo" 103 | BEGIN 104 | VALUE "Translation", 0x409, 1252 105 | END 106 | END 107 | 108 | #endif // English (United States) resources 109 | ///////////////////////////////////////////////////////////////////////////// 110 | 111 | 112 | 113 | #ifndef APSTUDIO_INVOKED 114 | ///////////////////////////////////////////////////////////////////////////// 115 | // 116 | // Generated from the TEXTINCLUDE 3 resource. 117 | // 118 | 119 | 120 | ///////////////////////////////////////////////////////////////////////////// 121 | #endif // not APSTUDIO_INVOKED 122 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /lib/feature/login_register_page/view/login_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/constants/app_string.dart'; 5 | import 'package:restaurant_app/core/constants/image_const.dart'; 6 | import 'package:restaurant_app/core/extensions/extension.dart'; 7 | import 'package:restaurant_app/products/component/login.dart'; 8 | import 'package:restaurant_app/products/component/register.dart'; 9 | 10 | class LoginPage extends StatefulWidget { 11 | const LoginPage({Key? key}) : super(key: key); 12 | 13 | @override 14 | State createState() => _LoginPageState(); 15 | } 16 | 17 | class _LoginPageState extends State { 18 | @override 19 | Widget build(BuildContext context) { 20 | return Scaffold( 21 | body: SingleChildScrollView( 22 | child: Stack( 23 | children: [ 24 | PngImage(name: ImageItems().loginlogoImage), 25 | Column( 26 | crossAxisAlignment: CrossAxisAlignment.stretch, 27 | children: [ 28 | SizedBox(height: context.dynamicHeight(0.05)), 29 | DefaultTabController( 30 | length: 4, 31 | initialIndex: 0, 32 | child: Column(children: [ 33 | TabBar( 34 | indicatorColor: AppColors.silverlined.withOpacity(0.02), 35 | labelColor: AppColors.consumedByFire, 36 | unselectedLabelColor: AppColors.blueMetallic, 37 | tabs: const [ 38 | Tab(text: StringConstant.login), 39 | Tab(text: StringConstant.register), 40 | Tab(text: ''), 41 | Tab(text: ''), 42 | ], 43 | ), 44 | Container( 45 | height: context.dynamicHeight(0.70), 46 | decoration: const BoxDecoration( 47 | border: Border( 48 | top: BorderSide( 49 | color: AppColors.porpoise, width: 0.5))), 50 | child: TabBarView(children: [ 51 | const LoginComponent(), 52 | const RegisterComponent(), 53 | Container(), 54 | Container(), 55 | ]), 56 | ), 57 | ]), 58 | ), 59 | _gmailFacebookWidget(context), 60 | ]), 61 | ], 62 | ), 63 | ), 64 | ); 65 | } 66 | 67 | Container _gmailFacebookWidget(BuildContext context) { 68 | return Container( 69 | padding: context.middlePadding, 70 | child: Column( 71 | mainAxisAlignment: MainAxisAlignment.start, 72 | crossAxisAlignment: CrossAxisAlignment.start, 73 | children: [ 74 | const Text(StringConstant.loginWith), 75 | SizedBox( 76 | height: context.dynamicHeight(0.02), 77 | ), 78 | Row( 79 | children: [ 80 | SvgImage(name: ImageItems().gamil), 81 | SizedBox( 82 | width: context.dynamicWidth(0.03), 83 | ), 84 | SvgImage(name: ImageItems().facebook), 85 | ], 86 | ), 87 | ], 88 | ), 89 | ); 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /lib/feature/favorite_page/view/favorite_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/constants/app_string.dart'; 5 | import 'package:restaurant_app/core/extensions/extension.dart'; 6 | import 'package:restaurant_app/feature/favorite_page/viewModel/favorite_view_model.dart'; 7 | import 'package:restaurant_app/products/component/favorite_card.dart'; 8 | import 'package:kartal/kartal.dart'; 9 | import 'package:restaurant_app/products/widgets/app_bar.dart'; 10 | import 'package:restaurant_app/products/widgets/bottom_navbar.dart'; 11 | 12 | class FavoritePage extends StatelessWidget { 13 | const FavoritePage({Key? key}) : super(key: key); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | var favoriList = context.read().favoriModel; 18 | return Scaffold( 19 | bottomNavigationBar: const BottomNavbar(pageid: 3), 20 | floatingActionButton: _floatingActionButton(context), 21 | body: Padding( 22 | padding: context.pagePadding, 23 | child: Stack( 24 | children: [ 25 | Padding( 26 | padding: context.pageTopPadding, 27 | child: const AppBarWidget( 28 | color: AppColors.blueMetallic, 29 | ), 30 | ), 31 | Padding( 32 | padding: context.topPadding, 33 | child: Column( 34 | mainAxisAlignment: MainAxisAlignment.start, 35 | crossAxisAlignment: CrossAxisAlignment.start, 36 | children: [ 37 | Text( 38 | StringConstant.recomendation, 39 | style: Theme.of(context).textTheme.headlineSmall?.copyWith( 40 | color: AppColors.blueMetallic, 41 | fontWeight: FontWeight.bold), 42 | ), 43 | Expanded( 44 | flex: 3, 45 | child: Consumer(builder: ((context, value, child) { 46 | return GridView.builder( 47 | itemCount: favoriList.length, 48 | gridDelegate: 49 | const SliverGridDelegateWithFixedCrossAxisCount( 50 | crossAxisCount: 2, 51 | ), 52 | itemBuilder: (BuildContext context, index) { 53 | return FavoriteCard( 54 | model: favoriList[index], 55 | ); 56 | }, 57 | ); 58 | })), 59 | ), 60 | ], 61 | ), 62 | ), 63 | ], 64 | ), 65 | ), 66 | ); 67 | } 68 | 69 | Padding _floatingActionButton(BuildContext context) { 70 | return Padding( 71 | padding: context.paddingNormalRigth, 72 | child: SizedBox( 73 | height: context.dynamicHeight(0.05), 74 | width: context.dynamicWidth(0.80), 75 | child: FloatingActionButton.extended( 76 | backgroundColor: AppColors.palatinateBlue, 77 | foregroundColor: AppColors.white, 78 | onPressed: () {}, 79 | label: Text( 80 | StringConstant.order, 81 | style: Theme.of(context) 82 | .textTheme 83 | .titleLarge 84 | ?.copyWith(color: AppColors.white, fontWeight: FontWeight.bold), 85 | ), 86 | ), 87 | ), 88 | ); 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /windows/runner/win32_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_WIN32_WINDOW_H_ 2 | #define RUNNER_WIN32_WINDOW_H_ 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | // A class abstraction for a high DPI-aware Win32 Window. Intended to be 11 | // inherited from by classes that wish to specialize with custom 12 | // rendering and input handling 13 | class Win32Window { 14 | public: 15 | struct Point { 16 | unsigned int x; 17 | unsigned int y; 18 | Point(unsigned int x, unsigned int y) : x(x), y(y) {} 19 | }; 20 | 21 | struct Size { 22 | unsigned int width; 23 | unsigned int height; 24 | Size(unsigned int width, unsigned int height) 25 | : width(width), height(height) {} 26 | }; 27 | 28 | Win32Window(); 29 | virtual ~Win32Window(); 30 | 31 | // Creates and shows a win32 window with |title| and position and size using 32 | // |origin| and |size|. New windows are created on the default monitor. Window 33 | // sizes are specified to the OS in physical pixels, hence to ensure a 34 | // consistent size to will treat the width height passed in to this function 35 | // as logical pixels and scale to appropriate for the default monitor. Returns 36 | // true if the window was created successfully. 37 | bool CreateAndShow(const std::wstring& title, 38 | const Point& origin, 39 | const Size& size); 40 | 41 | // Release OS resources associated with window. 42 | void Destroy(); 43 | 44 | // Inserts |content| into the window tree. 45 | void SetChildContent(HWND content); 46 | 47 | // Returns the backing Window handle to enable clients to set icon and other 48 | // window properties. Returns nullptr if the window has been destroyed. 49 | HWND GetHandle(); 50 | 51 | // If true, closing this window will quit the application. 52 | void SetQuitOnClose(bool quit_on_close); 53 | 54 | // Return a RECT representing the bounds of the current client area. 55 | RECT GetClientArea(); 56 | 57 | protected: 58 | // Processes and route salient window messages for mouse handling, 59 | // size change and DPI. Delegates handling of these to member overloads that 60 | // inheriting classes can handle. 61 | virtual LRESULT MessageHandler(HWND window, 62 | UINT const message, 63 | WPARAM const wparam, 64 | LPARAM const lparam) noexcept; 65 | 66 | // Called when CreateAndShow is called, allowing subclass window-related 67 | // setup. Subclasses should return false if setup fails. 68 | virtual bool OnCreate(); 69 | 70 | // Called when Destroy is called. 71 | virtual void OnDestroy(); 72 | 73 | private: 74 | friend class WindowClassRegistrar; 75 | 76 | // OS callback called by message pump. Handles the WM_NCCREATE message which 77 | // is passed when the non-client area is being created and enables automatic 78 | // non-client DPI scaling so that the non-client area automatically 79 | // responsponds to changes in DPI. All other messages are handled by 80 | // MessageHandler. 81 | static LRESULT CALLBACK WndProc(HWND const window, 82 | UINT const message, 83 | WPARAM const wparam, 84 | LPARAM const lparam) noexcept; 85 | 86 | // Retrieves a class instance pointer for |window| 87 | static Win32Window* GetThisFromHandle(HWND const window) noexcept; 88 | 89 | bool quit_on_close_ = false; 90 | 91 | // window handle for top level window. 92 | HWND window_handle_ = nullptr; 93 | 94 | // window handle for hosted content. 95 | HWND child_content_ = nullptr; 96 | }; 97 | 98 | #endif // RUNNER_WIN32_WINDOW_H_ 99 | -------------------------------------------------------------------------------- /lib/products/component/reviews_title.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/constants/app_string.dart'; 5 | import 'package:restaurant_app/core/extensions/extension.dart'; 6 | 7 | import 'package:restaurant_app/products/component/slider_column.dart'; 8 | 9 | class ReviewsCategoryItem extends StatelessWidget { 10 | const ReviewsCategoryItem({ 11 | Key? key, 12 | required this.title, 13 | required this.items, 14 | }) : super(key: key); 15 | 16 | final String title; 17 | final List items; 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | return Column( 22 | crossAxisAlignment: CrossAxisAlignment.start, 23 | children: [ 24 | Column( 25 | crossAxisAlignment: CrossAxisAlignment.start, 26 | children: [ 27 | Padding( 28 | padding: context.paddingNormalVertical, 29 | child: Text( 30 | title, 31 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 32 | color: AppColors.black, 33 | fontWeight: FontWeight.w600, 34 | ), 35 | ), 36 | ), 37 | Row(children: [ 38 | SizedBox( 39 | height: context.dynamicHeight(0.15), 40 | child: Column( 41 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 42 | children: [ 43 | Text( 44 | StringConstant.rating, 45 | style: Theme.of(context).textTheme.titleMedium?.copyWith( 46 | color: AppColors.black, 47 | fontWeight: FontWeight.bold, 48 | ), 49 | ), 50 | Text( 51 | StringConstant.ratingNum, 52 | style: 53 | Theme.of(context).textTheme.headlineMedium?.copyWith( 54 | color: AppColors.black, 55 | fontWeight: FontWeight.bold, 56 | ), 57 | ), 58 | Row( 59 | children: [ 60 | for (int i = 0; i < 5; i++) 61 | Icon(Icons.star, 62 | size: 20, 63 | color: i == 4 64 | ? AppColors.black.withOpacity(0.7) 65 | : AppColors.california), 66 | ], 67 | ), 68 | ], 69 | ), 70 | ), 71 | SizedBox( 72 | width: context.dynamicWidth(0.07), 73 | ), 74 | Column(children: const [ 75 | SliderColumnWidget( 76 | num: 95, 77 | text: '5', 78 | ), 79 | SliderColumnWidget( 80 | num: 60, 81 | text: '4', 82 | ), 83 | SliderColumnWidget( 84 | num: 50, 85 | text: '3', 86 | ), 87 | SliderColumnWidget( 88 | num: 30, 89 | text: '2', 90 | ), 91 | SliderColumnWidget( 92 | num: 10, 93 | text: '1', 94 | ), 95 | ]), 96 | ]), 97 | ], 98 | ), 99 | ...items, 100 | ], 101 | ); 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /lib/products/component/reservation_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:kartal/kartal.dart'; 4 | import 'package:restaurant_app/core/constants/app_colors.dart'; 5 | import 'package:restaurant_app/core/constants/app_string.dart'; 6 | import 'package:restaurant_app/core/extensions/extension.dart'; 7 | 8 | class RestaurantInfo extends StatelessWidget { 9 | const RestaurantInfo({ 10 | Key? key, 11 | }) : super(key: key); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Padding( 16 | padding: context.pagePadding, 17 | child: Column( 18 | crossAxisAlignment: CrossAxisAlignment.start, 19 | children: [ 20 | Text( 21 | StringConstant.istanbul, 22 | style: Theme.of(context) 23 | .textTheme 24 | .headlineMedium 25 | ?.copyWith(color: AppColors.blueMetallic), 26 | ), 27 | Row( 28 | children: [ 29 | for (int i = 0; i < 5; i++) 30 | Icon(Icons.star, 31 | size: 20, 32 | color: 33 | i == 4 ? AppColors.silverlined : AppColors.california), 34 | SizedBox( 35 | width: context.dynamicWidth(0.03), 36 | ), 37 | const Icon(Icons.mode_comment_outlined), 38 | SizedBox( 39 | width: context.dynamicWidth(0.03), 40 | ), 41 | Text( 42 | StringConstant.reviews3, 43 | style: Theme.of(context).textTheme.titleMedium?.copyWith( 44 | color: AppColors.silverlined, 45 | fontWeight: FontWeight.bold, 46 | ), 47 | ), 48 | SizedBox( 49 | width: context.dynamicWidth(0.03), 50 | ), 51 | ], 52 | ), 53 | SizedBox( 54 | height: context.dynamicHeight(0.01), 55 | ), 56 | Row( 57 | children: [ 58 | const Icon(Icons.local_atm), 59 | SizedBox( 60 | width: context.dynamicWidth(0.03), 61 | ), 62 | Text( 63 | StringConstant.under, 64 | style: Theme.of(context).textTheme.titleMedium?.copyWith( 65 | color: AppColors.silverlined, 66 | fontWeight: FontWeight.bold, 67 | ), 68 | ), 69 | SizedBox( 70 | width: context.dynamicWidth(0.03), 71 | ), 72 | const Icon(Icons.restaurant), 73 | SizedBox( 74 | width: context.dynamicWidth(0.03), 75 | ), 76 | Text( 77 | StringConstant.turk, 78 | style: Theme.of(context).textTheme.titleMedium?.copyWith( 79 | color: AppColors.silverlined, 80 | fontWeight: FontWeight.bold, 81 | ), 82 | ), 83 | ], 84 | ), 85 | SizedBox( 86 | height: context.dynamicHeight(0.01), 87 | ), 88 | Row( 89 | children: [ 90 | const Icon(Icons.location_on_outlined), 91 | SizedBox( 92 | width: context.dynamicWidth(0.03), 93 | ), 94 | Text( 95 | StringConstant.adres, 96 | style: Theme.of(context).textTheme.titleMedium?.copyWith( 97 | color: AppColors.silverlined, 98 | fontWeight: FontWeight.bold, 99 | ), 100 | ), 101 | ], 102 | ), 103 | ], 104 | ), 105 | ); 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /windows/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # This file controls Flutter-level build steps. It should not be edited. 2 | cmake_minimum_required(VERSION 3.14) 3 | 4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") 5 | 6 | # Configuration provided via flutter tool. 7 | include(${EPHEMERAL_DIR}/generated_config.cmake) 8 | 9 | # TODO: Move the rest of this into files in ephemeral. See 10 | # https://github.com/flutter/flutter/issues/57146. 11 | set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") 12 | 13 | # === Flutter Library === 14 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") 15 | 16 | # Published to parent scope for install step. 17 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) 18 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) 19 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) 20 | set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) 21 | 22 | list(APPEND FLUTTER_LIBRARY_HEADERS 23 | "flutter_export.h" 24 | "flutter_windows.h" 25 | "flutter_messenger.h" 26 | "flutter_plugin_registrar.h" 27 | "flutter_texture_registrar.h" 28 | ) 29 | list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") 30 | add_library(flutter INTERFACE) 31 | target_include_directories(flutter INTERFACE 32 | "${EPHEMERAL_DIR}" 33 | ) 34 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") 35 | add_dependencies(flutter flutter_assemble) 36 | 37 | # === Wrapper === 38 | list(APPEND CPP_WRAPPER_SOURCES_CORE 39 | "core_implementations.cc" 40 | "standard_codec.cc" 41 | ) 42 | list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") 43 | list(APPEND CPP_WRAPPER_SOURCES_PLUGIN 44 | "plugin_registrar.cc" 45 | ) 46 | list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") 47 | list(APPEND CPP_WRAPPER_SOURCES_APP 48 | "flutter_engine.cc" 49 | "flutter_view_controller.cc" 50 | ) 51 | list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") 52 | 53 | # Wrapper sources needed for a plugin. 54 | add_library(flutter_wrapper_plugin STATIC 55 | ${CPP_WRAPPER_SOURCES_CORE} 56 | ${CPP_WRAPPER_SOURCES_PLUGIN} 57 | ) 58 | apply_standard_settings(flutter_wrapper_plugin) 59 | set_target_properties(flutter_wrapper_plugin PROPERTIES 60 | POSITION_INDEPENDENT_CODE ON) 61 | set_target_properties(flutter_wrapper_plugin PROPERTIES 62 | CXX_VISIBILITY_PRESET hidden) 63 | target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) 64 | target_include_directories(flutter_wrapper_plugin PUBLIC 65 | "${WRAPPER_ROOT}/include" 66 | ) 67 | add_dependencies(flutter_wrapper_plugin flutter_assemble) 68 | 69 | # Wrapper sources needed for the runner. 70 | add_library(flutter_wrapper_app STATIC 71 | ${CPP_WRAPPER_SOURCES_CORE} 72 | ${CPP_WRAPPER_SOURCES_APP} 73 | ) 74 | apply_standard_settings(flutter_wrapper_app) 75 | target_link_libraries(flutter_wrapper_app PUBLIC flutter) 76 | target_include_directories(flutter_wrapper_app PUBLIC 77 | "${WRAPPER_ROOT}/include" 78 | ) 79 | add_dependencies(flutter_wrapper_app flutter_assemble) 80 | 81 | # === Flutter tool backend === 82 | # _phony_ is a non-existent file to force this command to run every time, 83 | # since currently there's no way to get a full input/output list from the 84 | # flutter tool. 85 | set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") 86 | set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) 87 | add_custom_command( 88 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} 89 | ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} 90 | ${CPP_WRAPPER_SOURCES_APP} 91 | ${PHONY_OUTPUT} 92 | COMMAND ${CMAKE_COMMAND} -E env 93 | ${FLUTTER_TOOL_ENVIRONMENT} 94 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" 95 | windows-x64 $ 96 | VERBATIM 97 | ) 98 | add_custom_target(flutter_assemble DEPENDS 99 | "${FLUTTER_LIBRARY}" 100 | ${FLUTTER_LIBRARY_HEADERS} 101 | ${CPP_WRAPPER_SOURCES_CORE} 102 | ${CPP_WRAPPER_SOURCES_PLUGIN} 103 | ${CPP_WRAPPER_SOURCES_APP} 104 | ) 105 | -------------------------------------------------------------------------------- /lib/products/component/login.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:kartal/kartal.dart'; 3 | import 'package:restaurant_app/core/constants/app_colors.dart'; 4 | import 'package:restaurant_app/core/constants/app_string.dart'; 5 | 6 | import 'package:restaurant_app/core/extensions/extension.dart'; 7 | 8 | import 'package:restaurant_app/products/mixin/validation.dart'; 9 | 10 | class LoginComponent extends StatefulWidget { 11 | const LoginComponent({Key? key}) : super(key: key); 12 | 13 | @override 14 | State createState() => _LoginComponentState(); 15 | } 16 | 17 | class _LoginComponentState extends State with Validation { 18 | @override 19 | Widget build(BuildContext context) { 20 | return Column( 21 | crossAxisAlignment: CrossAxisAlignment.start, 22 | children: [ 23 | Container( 24 | padding: context.pagePaddingLetfTopRigth, 25 | child: Text( 26 | StringConstant.loginText, 27 | style: Theme.of(context).textTheme.headlineMedium?.copyWith( 28 | color: AppColors.blueMetallic, fontWeight: FontWeight.bold), 29 | )), 30 | SizedBox( 31 | height: context.dynamicHeight(0.06), 32 | ), 33 | Container( 34 | height: context.dynamicHeight(0.45), 35 | width: context.dynamicWidth(0.85), 36 | decoration: context.boxDecoraiton, 37 | child: Padding( 38 | padding: context.largePadding, 39 | child: 40 | Column(crossAxisAlignment: CrossAxisAlignment.start, children: [ 41 | Text( 42 | StringConstant.emailText, 43 | style: Theme.of(context).textTheme.titleLarge?.copyWith( 44 | color: AppColors.silverlined, 45 | fontWeight: FontWeight.w600, 46 | ), 47 | ), 48 | SizedBox( 49 | height: context.dynamicHeight(0.02), 50 | ), 51 | Form( 52 | key: formKey, 53 | child: Column( 54 | children: [ 55 | emailField, 56 | passwordField, 57 | ], 58 | ), 59 | ), 60 | SizedBox( 61 | height: context.dynamicHeight(0.07), 62 | ), 63 | Material( 64 | child: Container( 65 | color: AppColors.palatinateBlue, 66 | height: context.dynamicHeight(0.06), 67 | width: context.dynamicWidth(0.60), 68 | child: MaterialButton( 69 | onPressed: () { 70 | signIn(emailEditingController.text, 71 | passwordEditingController.text); 72 | }, 73 | child: Row( 74 | mainAxisAlignment: MainAxisAlignment.center, 75 | crossAxisAlignment: CrossAxisAlignment.center, 76 | children: [ 77 | Text( 78 | StringConstant.continu, 79 | style: Theme.of(context) 80 | .textTheme 81 | .titleLarge 82 | ?.copyWith( 83 | color: AppColors.white, 84 | fontWeight: FontWeight.bold), 85 | ), 86 | SizedBox( 87 | width: context.dynamicWidth(0.03), 88 | ), 89 | const Icon( 90 | Icons.arrow_forward, 91 | color: AppColors.white, 92 | ) 93 | ], 94 | )), 95 | ), 96 | ) 97 | ]), 98 | ), 99 | ), 100 | ], 101 | ); 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /linux/my_application.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | #include 4 | #ifdef GDK_WINDOWING_X11 5 | #include 6 | #endif 7 | 8 | #include "flutter/generated_plugin_registrant.h" 9 | 10 | struct _MyApplication { 11 | GtkApplication parent_instance; 12 | char** dart_entrypoint_arguments; 13 | }; 14 | 15 | G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) 16 | 17 | // Implements GApplication::activate. 18 | static void my_application_activate(GApplication* application) { 19 | MyApplication* self = MY_APPLICATION(application); 20 | GtkWindow* window = 21 | GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); 22 | 23 | // Use a header bar when running in GNOME as this is the common style used 24 | // by applications and is the setup most users will be using (e.g. Ubuntu 25 | // desktop). 26 | // If running on X and not using GNOME then just use a traditional title bar 27 | // in case the window manager does more exotic layout, e.g. tiling. 28 | // If running on Wayland assume the header bar will work (may need changing 29 | // if future cases occur). 30 | gboolean use_header_bar = TRUE; 31 | #ifdef GDK_WINDOWING_X11 32 | GdkScreen* screen = gtk_window_get_screen(window); 33 | if (GDK_IS_X11_SCREEN(screen)) { 34 | const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); 35 | if (g_strcmp0(wm_name, "GNOME Shell") != 0) { 36 | use_header_bar = FALSE; 37 | } 38 | } 39 | #endif 40 | if (use_header_bar) { 41 | GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); 42 | gtk_widget_show(GTK_WIDGET(header_bar)); 43 | gtk_header_bar_set_title(header_bar, "restaurant_app"); 44 | gtk_header_bar_set_show_close_button(header_bar, TRUE); 45 | gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); 46 | } else { 47 | gtk_window_set_title(window, "restaurant_app"); 48 | } 49 | 50 | gtk_window_set_default_size(window, 1280, 720); 51 | gtk_widget_show(GTK_WIDGET(window)); 52 | 53 | g_autoptr(FlDartProject) project = fl_dart_project_new(); 54 | fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); 55 | 56 | FlView* view = fl_view_new(project); 57 | gtk_widget_show(GTK_WIDGET(view)); 58 | gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); 59 | 60 | fl_register_plugins(FL_PLUGIN_REGISTRY(view)); 61 | 62 | gtk_widget_grab_focus(GTK_WIDGET(view)); 63 | } 64 | 65 | // Implements GApplication::local_command_line. 66 | static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { 67 | MyApplication* self = MY_APPLICATION(application); 68 | // Strip out the first argument as it is the binary name. 69 | self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); 70 | 71 | g_autoptr(GError) error = nullptr; 72 | if (!g_application_register(application, nullptr, &error)) { 73 | g_warning("Failed to register: %s", error->message); 74 | *exit_status = 1; 75 | return TRUE; 76 | } 77 | 78 | g_application_activate(application); 79 | *exit_status = 0; 80 | 81 | return TRUE; 82 | } 83 | 84 | // Implements GObject::dispose. 85 | static void my_application_dispose(GObject* object) { 86 | MyApplication* self = MY_APPLICATION(object); 87 | g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); 88 | G_OBJECT_CLASS(my_application_parent_class)->dispose(object); 89 | } 90 | 91 | static void my_application_class_init(MyApplicationClass* klass) { 92 | G_APPLICATION_CLASS(klass)->activate = my_application_activate; 93 | G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; 94 | G_OBJECT_CLASS(klass)->dispose = my_application_dispose; 95 | } 96 | 97 | static void my_application_init(MyApplication* self) {} 98 | 99 | MyApplication* my_application_new() { 100 | return MY_APPLICATION(g_object_new(my_application_get_type(), 101 | "application-id", APPLICATION_ID, 102 | "flags", G_APPLICATION_NON_UNIQUE, 103 | nullptr)); 104 | } 105 | -------------------------------------------------------------------------------- /windows/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Project-level configuration. 2 | cmake_minimum_required(VERSION 3.14) 3 | project(restaurant_app LANGUAGES CXX) 4 | 5 | # The name of the executable created for the application. Change this to change 6 | # the on-disk name of your application. 7 | set(BINARY_NAME "restaurant_app") 8 | 9 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent 10 | # versions of CMake. 11 | cmake_policy(SET CMP0063 NEW) 12 | 13 | # Define build configuration option. 14 | get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) 15 | if(IS_MULTICONFIG) 16 | set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" 17 | CACHE STRING "" FORCE) 18 | else() 19 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 20 | set(CMAKE_BUILD_TYPE "Debug" CACHE 21 | STRING "Flutter build mode" FORCE) 22 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS 23 | "Debug" "Profile" "Release") 24 | endif() 25 | endif() 26 | # Define settings for the Profile build mode. 27 | set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") 28 | set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") 29 | set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") 30 | set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") 31 | 32 | # Use Unicode for all projects. 33 | add_definitions(-DUNICODE -D_UNICODE) 34 | 35 | # Compilation settings that should be applied to most targets. 36 | # 37 | # Be cautious about adding new options here, as plugins use this function by 38 | # default. In most cases, you should add new options to specific targets instead 39 | # of modifying this function. 40 | function(APPLY_STANDARD_SETTINGS TARGET) 41 | target_compile_features(${TARGET} PUBLIC cxx_std_17) 42 | target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") 43 | target_compile_options(${TARGET} PRIVATE /EHsc) 44 | target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") 45 | target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") 46 | endfunction() 47 | 48 | # Flutter library and tool build rules. 49 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") 50 | add_subdirectory(${FLUTTER_MANAGED_DIR}) 51 | 52 | # Application build; see runner/CMakeLists.txt. 53 | add_subdirectory("runner") 54 | 55 | # Generated plugin build rules, which manage building the plugins and adding 56 | # them to the application. 57 | include(flutter/generated_plugins.cmake) 58 | 59 | 60 | # === Installation === 61 | # Support files are copied into place next to the executable, so that it can 62 | # run in place. This is done instead of making a separate bundle (as on Linux) 63 | # so that building and running from within Visual Studio will work. 64 | set(BUILD_BUNDLE_DIR "$") 65 | # Make the "install" step default, as it's required to run. 66 | set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) 67 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 68 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) 69 | endif() 70 | 71 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") 72 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") 73 | 74 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" 75 | COMPONENT Runtime) 76 | 77 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 78 | COMPONENT Runtime) 79 | 80 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 81 | COMPONENT Runtime) 82 | 83 | if(PLUGIN_BUNDLED_LIBRARIES) 84 | install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" 85 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" 86 | COMPONENT Runtime) 87 | endif() 88 | 89 | # Fully re-copy the assets directory on each build to avoid having stale files 90 | # from a previous install. 91 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets") 92 | install(CODE " 93 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") 94 | " COMPONENT Runtime) 95 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" 96 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) 97 | 98 | # Install the AOT library on non-Debug builds only. 99 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" 100 | CONFIGURATIONS Profile;Release 101 | COMPONENT Runtime) 102 | -------------------------------------------------------------------------------- /lib/core/extensions/extension.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:restaurant_app/core/constants/app_colors.dart'; 3 | 4 | extension ContextExtension on BuildContext { 5 | MediaQueryData get mediaQuery => MediaQuery.of(this); 6 | } 7 | 8 | extension MediaQueryExtension on BuildContext { 9 | double get height => mediaQuery.size.height; 10 | double get width => mediaQuery.size.width; 11 | 12 | double get lowValue => height * 0.01; 13 | double get normalValue => height * 0.02; 14 | } 15 | 16 | extension PaddingExtensionAll on BuildContext { 17 | EdgeInsets get pagePadding => const EdgeInsets.all(10.0); 18 | EdgeInsets get cardPadding => const EdgeInsets.all(8.0); 19 | EdgeInsets get personPadding => const EdgeInsets.all(6.0); 20 | 21 | EdgeInsets get largePadding => const EdgeInsets.all(30.0); 22 | EdgeInsets get pagePaddingTopLeft => 23 | const EdgeInsets.only(top: 90.0, left: 30.0); 24 | EdgeInsets get pagePaddingLeftTop => const EdgeInsets.only(left: 9, top: 2); 25 | EdgeInsets get pagePaddingLeftTopRigth => 26 | const EdgeInsets.only(left: 8, right: 8, top: 8); 27 | EdgeInsets get pagePaddingTopLef => 28 | const EdgeInsets.only(left: 145, top: 105); 29 | EdgeInsets get appPaddingTopLeft => 30 | const EdgeInsets.only(top: 20.0, left: 10.0); 31 | EdgeInsets get pagePaddingBottomTop => 32 | const EdgeInsets.only(bottom: 16, top: 10); 33 | EdgeInsets get pagePaddingBottom => const EdgeInsets.only(bottom: 16); 34 | EdgeInsets get pagePaddingTop => const EdgeInsets.only(top: 170); 35 | EdgeInsets get pagePaddingLeft => const EdgeInsets.only(left: 8); 36 | EdgeInsets get middlePadding => const EdgeInsets.only(left: 20.0); 37 | EdgeInsets get dashPadding => const EdgeInsets.only(left: 20, top: 50); 38 | EdgeInsets get pagePaddingRigth => const EdgeInsets.only(right: 20); 39 | EdgeInsets get pagePaddingLetfTopRigth => 40 | const EdgeInsets.only(left: 30, right: 150, top: 30); 41 | EdgeInsets get likePadding => const EdgeInsets.only(right: 140); 42 | EdgeInsets get pagePaddingAll => 43 | const EdgeInsets.only(top: 20, bottom: 20, left: 10, right: 10); 44 | EdgeInsets get topPadding => const EdgeInsets.only(top: 80); 45 | EdgeInsets get pageTopPadding => const EdgeInsets.only(top: 20); 46 | } 47 | 48 | extension BorderExtension on BuildContext { 49 | BorderRadius get radiusAll => const BorderRadius.all(Radius.circular(10)); 50 | } 51 | 52 | extension DecorationExtension on BuildContext { 53 | BoxDecoration get boxDecoraiton => BoxDecoration( 54 | color: AppColors.white, borderRadius: BorderRadius.circular(5)); 55 | BoxDecoration get smallDecoraiton => BoxDecoration( 56 | color: AppColors.flataluminum, borderRadius: BorderRadius.circular(5)); 57 | BoxDecoration get cardDecoraiton => BoxDecoration( 58 | color: AppColors.california, borderRadius: BorderRadius.circular(3)); 59 | BoxDecoration get middelDecoraiton => BoxDecoration( 60 | color: AppColors.black.withOpacity(0.5), 61 | borderRadius: BorderRadius.circular(20)); 62 | BoxDecoration get colormiddelDecoraiton => BoxDecoration( 63 | color: AppColors.white, 64 | borderRadius: BorderRadius.circular(20), 65 | border: Border.all( 66 | color: AppColors.darkGrey, 67 | width: 2.0, 68 | ), 69 | ); 70 | BoxDecoration get slidermiddelDecoraiton => BoxDecoration( 71 | color: AppColors.black.withOpacity(0.3), 72 | borderRadius: BorderRadius.circular(20), 73 | border: 74 | Border.all(color: AppColors.darkGrey.withOpacity(0.03), width: 1.0)); 75 | BoxDecoration get sliderDecoraiton => BoxDecoration( 76 | color: AppColors.poppypower, borderRadius: BorderRadius.circular(20)); 77 | 78 | BoxDecoration get timeDecoraiton => BoxDecoration( 79 | color: AppColors.poppypower, borderRadius: BorderRadius.circular(5)); 80 | } 81 | 82 | extension PaddingExtensionOnly on BuildContext { 83 | EdgeInsets get paddingNormalLeft => EdgeInsets.only(left: normalValue); 84 | EdgeInsets get paddingNormalRigth => EdgeInsets.only(right: normalValue); 85 | } 86 | 87 | extension PaddingExtensionSymetric on BuildContext { 88 | EdgeInsets get paddingNormalVertical => 89 | EdgeInsets.symmetric(vertical: normalValue); 90 | EdgeInsets get paddingLowHorizontalVertical => 91 | const EdgeInsets.symmetric(horizontal: 10, vertical: 10); 92 | EdgeInsets get paddingLowVertical => EdgeInsets.symmetric(vertical: lowValue); 93 | EdgeInsets get paddingLowHorizontal => 94 | EdgeInsets.symmetric(horizontal: lowValue); 95 | } 96 | --------------------------------------------------------------------------------