├── grocery_admin_panel ├── linux │ ├── .gitignore │ ├── main.cc │ ├── flutter │ │ ├── generated_plugin_registrant.h │ │ ├── generated_plugin_registrant.cc │ │ └── generated_plugins.cmake │ └── my_application.h ├── 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 │ │ ├── AppDelegate.swift │ │ ├── GoogleService-Info.plist │ │ ├── Base.lproj │ │ │ ├── Main.storyboard │ │ │ └── LaunchScreen.storyboard │ │ └── Info.plist │ ├── Runner.xcodeproj │ │ └── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── firebase_app_id_file.json │ ├── RunnerTests │ │ └── RunnerTests.swift │ └── .gitignore ├── lib │ ├── consts │ │ ├── constants.dart │ │ └── theme_data.dart │ ├── services │ │ ├── utils.dart │ │ └── dark_them_preferences.dart │ ├── providers │ │ └── dark_theme_provider.dart │ ├── generated_plugin_registrant.dart │ ├── widgets │ │ ├── text_widget.dart │ │ ├── buttons.dart │ │ └── grid_products.dart │ ├── screens │ │ ├── loading_manager.dart │ │ └── main_screen.dart │ ├── responsive.dart │ ├── controllers │ │ └── MenuControllerr.dart │ └── main.dart ├── 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 │ │ └── GoogleService-Info.plist │ ├── .gitignore │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── firebase_app_id_file.json │ ├── Runner.xcodeproj │ │ └── project.xcworkspace │ │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── RunnerTests │ │ └── RunnerTests.swift ├── web │ ├── favicon.png │ ├── icons │ │ ├── Icon-192.png │ │ ├── Icon-512.png │ │ ├── Icon-maskable-192.png │ │ └── Icon-maskable-512.png │ ├── manifest.json │ └── index.html ├── 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 │ │ │ │ │ │ └── grocery_admin_panel │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── AndroidManifest.xml │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── .gitignore │ ├── build.gradle │ └── settings.gradle ├── assets │ └── images │ │ └── groceries.png ├── windows │ ├── runner │ │ ├── resources │ │ │ └── app_icon.ico │ │ ├── resource.h │ │ ├── utils.h │ │ ├── runner.exe.manifest │ │ ├── flutter_window.h │ │ ├── main.cpp │ │ ├── CMakeLists.txt │ │ ├── utils.cpp │ │ └── flutter_window.cpp │ ├── flutter │ │ ├── generated_plugin_registrant.h │ │ ├── generated_plugins.cmake │ │ └── generated_plugin_registrant.cc │ └── .gitignore ├── README.md ├── .gitignore ├── test │ └── widget_test.dart ├── analysis_options.yaml └── .metadata ├── grocery_shop_app ├── linux │ ├── .gitignore │ ├── main.cc │ ├── flutter │ │ ├── generated_plugin_registrant.cc │ │ ├── generated_plugin_registrant.h │ │ └── generated_plugins.cmake │ └── my_application.h ├── 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 │ │ ├── AppDelegate.swift │ │ ├── GoogleService-Info.plist │ │ ├── Base.lproj │ │ │ ├── Main.storyboard │ │ │ └── LaunchScreen.storyboard │ │ └── Info.plist │ ├── Runner.xcodeproj │ │ └── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── firebase_app_id_file.json │ ├── RunnerTests │ │ └── RunnerTests.swift │ └── .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 │ │ ├── GoogleService-Info.plist │ │ └── Info.plist │ ├── .gitignore │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── firebase_app_id_file.json │ ├── Runner.xcodeproj │ │ └── project.xcworkspace │ │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── RunnerTests │ │ └── RunnerTests.swift ├── web │ ├── favicon.png │ ├── icons │ │ ├── Icon-192.png │ │ ├── Icon-512.png │ │ ├── Icon-maskable-192.png │ │ └── Icon-maskable-512.png │ ├── manifest.json │ └── index.html ├── 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 │ │ │ │ │ │ └── grocery_shop_app │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── AndroidManifest.xml │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ ├── google-services.json │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── .gitignore │ ├── build.gradle │ └── settings.gradle ├── assets │ └── images │ │ ├── box.png │ │ ├── cart.png │ │ ├── basket.png │ │ ├── google.png │ │ ├── cat │ │ ├── nuts.png │ │ ├── veg.png │ │ ├── Spinach.png │ │ ├── fruits.png │ │ ├── grains.png │ │ └── spices.png │ │ ├── history.png │ │ ├── wishlist.png │ │ ├── add-to-cart.png │ │ ├── landing │ │ ├── store.jpg │ │ ├── buyfood.jpg │ │ ├── buy-through.png │ │ ├── vergtablebg.jpg │ │ ├── buy-on-laptop.jpg │ │ └── grocery-cart.jpg │ │ ├── offres │ │ ├── Offer1.jpg │ │ ├── Offer2.jpg │ │ ├── Offer3.jpg │ │ └── Offer4.jpg │ │ └── warning-sign.png ├── windows │ ├── runner │ │ ├── resources │ │ │ └── app_icon.ico │ │ ├── resource.h │ │ ├── utils.h │ │ ├── runner.exe.manifest │ │ ├── flutter_window.h │ │ ├── main.cpp │ │ ├── CMakeLists.txt │ │ ├── utils.cpp │ │ └── flutter_window.cpp │ ├── .gitignore │ └── flutter │ │ ├── generated_plugin_registrant.h │ │ ├── generated_plugin_registrant.cc │ │ └── generated_plugins.cmake ├── lib │ ├── consts │ │ ├── firebase_const.dart │ │ ├── constss.dart │ │ └── theme_data.dart │ ├── models │ │ ├── viewed_model.dart │ │ ├── wishlist_model.dart │ │ ├── cart_model.dart │ │ ├── products_model.dart │ │ └── order_model.dart │ ├── provider │ │ └── dark_theme_provider.dart │ ├── services │ │ ├── utils.dart │ │ └── dark_theme_prefs.dart │ ├── widgets │ │ ├── back_widget.dart │ │ ├── text_widget.dart │ │ ├── auth_button.dart │ │ ├── empty_products_widget.dart │ │ ├── price_widget.dart │ │ └── categories_widget.dart │ ├── providers │ │ ├── viewed_prod_provider.dart │ │ ├── orders_provider.dart │ │ └── wishlist_provider.dart │ ├── screens │ │ ├── loading_manager.dart │ │ ├── orders │ │ │ └── orders_screen.dart │ │ └── categories.dart │ ├── controllers │ │ └── MenuController.dart │ ├── inner_screens │ │ └── on_sale_screen.dart │ └── fetch_screen.dart ├── README.md ├── .gitignore ├── test │ └── widget_test.dart ├── analysis_options.yaml └── .metadata └── README.md /grocery_admin_panel/linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /grocery_shop_app/linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/consts/constants.dart: -------------------------------------------------------------------------------- 1 | 2 | const defaultPadding = 10.0; 3 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "ephemeral/Flutter-Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /grocery_shop_app/macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "ephemeral/Flutter-Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /grocery_shop_app/macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "ephemeral/Flutter-Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "ephemeral/Flutter-Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /grocery_shop_app/web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/web/favicon.png -------------------------------------------------------------------------------- /grocery_admin_panel/web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/web/favicon.png -------------------------------------------------------------------------------- /grocery_shop_app/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /grocery_admin_panel/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/box.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/cart.png -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /grocery_shop_app/web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/web/icons/Icon-192.png -------------------------------------------------------------------------------- /grocery_shop_app/web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/web/icons/Icon-512.png -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/basket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/basket.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/google.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/google.png -------------------------------------------------------------------------------- /grocery_admin_panel/macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /grocery_admin_panel/web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/web/icons/Icon-192.png -------------------------------------------------------------------------------- /grocery_admin_panel/web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/web/icons/Icon-512.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/cat/nuts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/cat/nuts.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/cat/veg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/cat/veg.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/history.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/wishlist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/wishlist.png -------------------------------------------------------------------------------- /grocery_shop_app/macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/add-to-cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/add-to-cart.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/cat/Spinach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/cat/Spinach.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/cat/fruits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/cat/fruits.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/cat/grains.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/cat/grains.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/cat/spices.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/cat/spices.png -------------------------------------------------------------------------------- /grocery_admin_panel/assets/images/groceries.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/assets/images/groceries.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/landing/store.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/landing/store.jpg -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/offres/Offer1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/offres/Offer1.jpg -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/offres/Offer2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/offres/Offer2.jpg -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/offres/Offer3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/offres/Offer3.jpg -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/offres/Offer4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/offres/Offer4.jpg -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/warning-sign.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/warning-sign.png -------------------------------------------------------------------------------- /grocery_shop_app/web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /grocery_shop_app/web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /grocery_admin_panel/web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /grocery_admin_panel/web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/landing/buyfood.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/landing/buyfood.jpg -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/landing/buy-through.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/landing/buy-through.png -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/landing/vergtablebg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/landing/vergtablebg.jpg -------------------------------------------------------------------------------- /grocery_shop_app/windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/landing/buy-on-laptop.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/landing/buy-on-laptop.jpg -------------------------------------------------------------------------------- /grocery_shop_app/assets/images/landing/grocery-cart.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/assets/images/landing/grocery-cart.jpg -------------------------------------------------------------------------------- /grocery_admin_panel/windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_shop_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/offfahad/grocery-shopping-app/HEAD/grocery_admin_panel/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/main/kotlin/com/example/grocery_shop_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.grocery_shop_app 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/consts/firebase_const.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_auth/firebase_auth.dart'; 2 | 3 | final FirebaseAuth authInstance = FirebaseAuth.instance; 4 | // final User? user = authInstance.currentUser; 5 | // final uid = user!.uid; -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/main/kotlin/com/example/grocery_admin_panel/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.grocery_admin_panel 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /grocery_shop_app/linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | 10 | void fl_register_plugins(FlPluginRegistry* registry) { 11 | } 12 | -------------------------------------------------------------------------------- /grocery_admin_panel/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip 6 | -------------------------------------------------------------------------------- /grocery_shop_app/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip 6 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/models/viewed_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | 3 | class ViewedProdModel with ChangeNotifier { 4 | final String id, productId; 5 | 6 | ViewedProdModel({ 7 | required this.id, 8 | required this.productId, 9 | }); 10 | } 11 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/models/wishlist_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | 3 | class WishlistModel with ChangeNotifier { 4 | final String id, productId; 5 | 6 | WishlistModel({ 7 | required this.id, 8 | required this.productId, 9 | }); 10 | } 11 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/models/cart_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | 3 | class CartModel with ChangeNotifier { 4 | final String id, productId; 5 | final int quantity; 6 | 7 | CartModel({ 8 | required this.id, 9 | required this.productId, 10 | required this.quantity, 11 | }); 12 | } 13 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/firebase_app_id_file.json: -------------------------------------------------------------------------------- 1 | { 2 | "file_generated_by": "FlutterFire CLI", 3 | "purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory", 4 | "GOOGLE_APP_ID": "1:371294517760:ios:31503698358831bc2cf6e5", 5 | "FIREBASE_PROJECT_ID": "grocery-shop-app-2d89b", 6 | "GCM_SENDER_ID": "371294517760" 7 | } -------------------------------------------------------------------------------- /grocery_shop_app/macos/firebase_app_id_file.json: -------------------------------------------------------------------------------- 1 | { 2 | "file_generated_by": "FlutterFire CLI", 3 | "purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory", 4 | "GOOGLE_APP_ID": "1:371294517760:ios:f025e69966f688932cf6e5", 5 | "FIREBASE_PROJECT_ID": "grocery-shop-app-2d89b", 6 | "GCM_SENDER_ID": "371294517760" 7 | } -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/firebase_app_id_file.json: -------------------------------------------------------------------------------- 1 | { 2 | "file_generated_by": "FlutterFire CLI", 3 | "purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory", 4 | "GOOGLE_APP_ID": "1:371294517760:ios:23d0602e662e46652cf6e5", 5 | "FIREBASE_PROJECT_ID": "grocery-shop-app-2d89b", 6 | "GCM_SENDER_ID": "371294517760" 7 | } -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_admin_panel/macos/firebase_app_id_file.json: -------------------------------------------------------------------------------- 1 | { 2 | "file_generated_by": "FlutterFire CLI", 3 | "purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory", 4 | "GOOGLE_APP_ID": "1:371294517760:ios:85bd5a20024322e12cf6e5", 5 | "FIREBASE_PROJECT_ID": "grocery-shop-app-2d89b", 6 | "GCM_SENDER_ID": "371294517760" 7 | } -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /grocery_shop_app/macos/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import FlutterMacOS 2 | import Cocoa 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /grocery_admin_panel/macos/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import FlutterMacOS 2 | import Cocoa 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_shop_app/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. -------------------------------------------------------------------------------- /grocery_admin_panel/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. -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | 19 | *.firebase_options.dart 20 | -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/provider/dark_theme_provider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | 3 | import '../services/dark_theme_prefs.dart'; 4 | 5 | class DarkThemeProvider with ChangeNotifier { 6 | DarkThemePrefs darkThemePrefs = DarkThemePrefs(); 7 | bool _darkTheme = false; 8 | bool get getDarkTheme => _darkTheme; 9 | 10 | set setDarkTheme(bool value) { 11 | _darkTheme = value; 12 | darkThemePrefs.setDarkTheme(value); 13 | notifyListeners(); 14 | } 15 | } -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController() 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 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController() 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 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/services/utils.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:provider/provider.dart'; 4 | 5 | import '../provider/dark_theme_provider.dart'; 6 | 7 | class Utils { 8 | BuildContext context; 9 | Utils(this.context); 10 | 11 | bool get getTheme => Provider.of(context).getDarkTheme; 12 | Color get color => getTheme ? Colors.white : Colors.black; 13 | Size get getScreenSize => MediaQuery.of(context).size; 14 | } 15 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/services/utils.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:provider/provider.dart'; 4 | 5 | import '../providers/dark_theme_provider.dart'; 6 | 7 | 8 | class Utils { 9 | BuildContext context; 10 | Utils(this.context); 11 | 12 | bool get getTheme => Provider.of(context).getDarkTheme; 13 | Color get color => getTheme ? Colors.white : Colors.black; 14 | Size get getScreenSize => MediaQuery.of(context).size; 15 | } 16 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/providers/dark_theme_provider.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:flutter/material.dart'; 3 | import 'package:grocery_admin_panel/services/dark_them_preferences.dart'; 4 | 5 | class DarkThemeProvider with ChangeNotifier { 6 | DarkThemePreference darkThemePreference = DarkThemePreference(); 7 | bool _darkTheme = false; 8 | 9 | bool get getDarkTheme => _darkTheme; 10 | 11 | set setDarkTheme(bool value) { 12 | _darkTheme = value; 13 | darkThemePreference.setDarkTheme(value); 14 | notifyListeners(); 15 | } 16 | } -------------------------------------------------------------------------------- /grocery_admin_panel/lib/generated_plugin_registrant.dart: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // ignore_for_file: directives_ordering 6 | // ignore_for_file: lines_longer_than_80_chars 7 | 8 | import 'package:shared_preferences_web/shared_preferences_web.dart'; 9 | 10 | import 'package:flutter_web_plugins/flutter_web_plugins.dart'; 11 | 12 | // ignore: public_member_api_docs 13 | void registerPlugins(Registrar registrar) { 14 | SharedPreferencesPlugin.registerWith(registrar); 15 | registrar.registerMessageHandler(); 16 | } 17 | -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/services/dark_theme_prefs.dart: -------------------------------------------------------------------------------- 1 | import 'package:shared_preferences/shared_preferences.dart'; 2 | 3 | class DarkThemePrefs { 4 | static const THEME_STATUS = "THEMESTATUS"; 5 | 6 | setDarkTheme(bool value) async { 7 | SharedPreferences prefs = await SharedPreferences.getInstance(); 8 | prefs.setBool(THEME_STATUS, value); 9 | } 10 | 11 | Future getTheme() async { 12 | SharedPreferences prefs = await SharedPreferences.getInstance(); 13 | return prefs.getBool(THEME_STATUS) ?? false; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/services/dark_them_preferences.dart: -------------------------------------------------------------------------------- 1 | import 'package:shared_preferences/shared_preferences.dart'; 2 | 3 | class DarkThemePreference { 4 | static const THEME_STATUS = "THEMESTATUS"; 5 | 6 | setDarkTheme(bool value) async { 7 | SharedPreferences prefs = await SharedPreferences.getInstance(); 8 | prefs.setBool(THEME_STATUS, value); 9 | } 10 | 11 | Future getTheme() async { 12 | SharedPreferences prefs = await SharedPreferences.getInstance(); 13 | return prefs.getBool(THEME_STATUS) ?? false; 14 | } 15 | } -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /grocery_admin_panel/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) file_selector_linux_registrar = 13 | fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin"); 14 | file_selector_plugin_register_with_registrar(file_selector_linux_registrar); 15 | } 16 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/models/products_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ProductModel with ChangeNotifier { 4 | final String id, title, imageUrl, productCategoryName; 5 | final double price, salePrice; 6 | final bool isOnSale, isPiece; 7 | 8 | ProductModel( 9 | {required this.id, 10 | required this.title, 11 | required this.imageUrl, 12 | required this.productCategoryName, 13 | required this.price, 14 | required this.salePrice, 15 | required this.isOnSale, 16 | required this.isPiece}); 17 | } 18 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/models/order_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class OrderModel with ChangeNotifier { 5 | final String orderId, userId, productId, userName, price, imageUrl, quantity; 6 | final Timestamp orderDate; 7 | 8 | OrderModel( 9 | {required this.orderId, 10 | required this.userId, 11 | required this.productId, 12 | required this.userName, 13 | required this.price, 14 | required this.imageUrl, 15 | required this.quantity, 16 | required this.orderDate}); 17 | } 18 | -------------------------------------------------------------------------------- /grocery_shop_app/README.md: -------------------------------------------------------------------------------- 1 | # grocery_shop_app 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /grocery_admin_panel/README.md: -------------------------------------------------------------------------------- 1 | # grocery_admin_panel 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/widgets/back_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_iconly/flutter_iconly.dart'; 3 | 4 | import '../services/utils.dart'; 5 | 6 | class BackWidget extends StatelessWidget { 7 | const BackWidget({Key? key}) : super(key: key); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | final Color color = Utils(context).color; 12 | 13 | return InkWell( 14 | borderRadius: BorderRadius.circular(12), 15 | onTap: () { 16 | Navigator.pop(context); 17 | }, 18 | child: Icon( 19 | IconlyLight.arrowLeft2, 20 | color: color, 21 | ), 22 | ); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /grocery_shop_app/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 = grocery_shop_app 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.groceryShopApp 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2024 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 = grocery_admin_panel 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.groceryAdminPanel 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2024 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/consts/constss.dart: -------------------------------------------------------------------------------- 1 | import 'package:grocery_shop_app/models/products_model.dart'; 2 | 3 | class Constss { 4 | static final List offerImages = [ 5 | 'assets/images/offres/Offer1.jpg', 6 | 'assets/images/offres/Offer2.jpg', 7 | 'assets/images/offres/Offer3.jpg', 8 | 'assets/images/offres/Offer4.jpg' 9 | ]; 10 | static List authImagesPaths = [ 11 | 'assets/images/landing/buy-on-laptop.jpg', 12 | 'assets/images/landing/buy-through.png', 13 | 'assets/images/landing/buyfood.jpg', 14 | 'assets/images/landing/grocery-cart.jpg', 15 | 'assets/images/landing/grocery-cart.jpg', 16 | 'assets/images/landing/store.jpg', 17 | 'assets/images/landing/vergtablebg.jpg', 18 | ]; 19 | 20 | } 21 | -------------------------------------------------------------------------------- /grocery_shop_app/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.7.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.3.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | tasks.register("clean", Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /grocery_admin_panel/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.7.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.3.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | tasks.register("clean", Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/providers/viewed_prod_provider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:grocery_shop_app/models/viewed_model.dart'; 3 | 4 | class ViewedProdProvider with ChangeNotifier { 5 | Map _viewedProdlistItems = {}; 6 | 7 | Map get getViewedProdlistItems { 8 | return _viewedProdlistItems; 9 | } 10 | 11 | void addProductToHistory({required String productId}) { 12 | _viewedProdlistItems.putIfAbsent( 13 | productId, 14 | () => ViewedProdModel( 15 | id: DateTime.now().toString(), productId: productId)); 16 | 17 | notifyListeners(); 18 | } 19 | 20 | void clearHistory() { 21 | _viewedProdlistItems.clear(); 22 | notifyListeners(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /grocery_admin_panel/android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | def flutterSdkPath = { 3 | def properties = new Properties() 4 | file("local.properties").withInputStream { properties.load(it) } 5 | def flutterSdkPath = properties.getProperty("flutter.sdk") 6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 7 | return flutterSdkPath 8 | } 9 | settings.ext.flutterSdkPath = flutterSdkPath() 10 | 11 | includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") 12 | 13 | plugins { 14 | id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false 15 | } 16 | } 17 | 18 | include ":app" 19 | 20 | apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" 21 | -------------------------------------------------------------------------------- /grocery_shop_app/android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | def flutterSdkPath = { 3 | def properties = new Properties() 4 | file("local.properties").withInputStream { properties.load(it) } 5 | def flutterSdkPath = properties.getProperty("flutter.sdk") 6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 7 | return flutterSdkPath 8 | } 9 | settings.ext.flutterSdkPath = flutterSdkPath() 10 | 11 | includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") 12 | 13 | plugins { 14 | id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false 15 | } 16 | } 17 | 18 | include ":app" 19 | 20 | apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" 21 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | #include 11 | #include 12 | 13 | void RegisterPlugins(flutter::PluginRegistry* registry) { 14 | CloudFirestorePluginCApiRegisterWithRegistrar( 15 | registry->GetRegistrarForPlugin("CloudFirestorePluginCApi")); 16 | FirebaseAuthPluginCApiRegisterWithRegistrar( 17 | registry->GetRegistrarForPlugin("FirebaseAuthPluginCApi")); 18 | FirebaseCorePluginCApiRegisterWithRegistrar( 19 | registry->GetRegistrarForPlugin("FirebaseCorePluginCApi")); 20 | } 21 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/widgets/text_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class TextWidget extends StatelessWidget { 4 | TextWidget({ 5 | Key? key, 6 | required this.text, 7 | required this.color, 8 | this.textSize = 16, 9 | this.maxLines = 10, 10 | this.isTitle = false, 11 | }) : super(key: key); 12 | final String text; 13 | final Color color; 14 | final double textSize; 15 | bool isTitle; 16 | int maxLines = 10; 17 | @override 18 | Widget build(BuildContext context) { 19 | return Text( 20 | text, 21 | maxLines: maxLines, 22 | style: TextStyle( 23 | fontSize: textSize, 24 | color: color, 25 | overflow: TextOverflow.ellipsis, 26 | fontWeight: isTitle ? FontWeight.w600 : FontWeight.w400), 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/widgets/text_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class TextWidget extends StatelessWidget { 4 | TextWidget({ 5 | Key? key, 6 | required this.text, 7 | required this.color, 8 | required this.textSize, 9 | this.isTitle = false, 10 | this.maxLines = 10, 11 | }) : super(key: key); 12 | final String text; 13 | final Color color; 14 | final double textSize; 15 | bool isTitle; 16 | int maxLines = 10; 17 | @override 18 | Widget build(BuildContext context) { 19 | return Text( 20 | text, 21 | maxLines: maxLines, 22 | style: TextStyle( 23 | overflow: TextOverflow.ellipsis, 24 | color: color, 25 | fontSize: textSize, 26 | fontWeight: isTitle ? FontWeight.bold : FontWeight.normal), 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/screens/loading_manager.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class LoadingManager extends StatelessWidget { 4 | const LoadingManager({Key? key, required this.isLoading, required this.child}) 5 | : super(key: key); 6 | final bool isLoading; 7 | final Widget child; 8 | @override 9 | Widget build(BuildContext context) { 10 | return Stack( 11 | children: [ 12 | child, 13 | isLoading 14 | ? Container( 15 | color: Colors.black.withOpacity(0.7), 16 | ) 17 | : Container(), 18 | isLoading 19 | ? const Center( 20 | child: CircularProgressIndicator( 21 | color: Colors.white, 22 | ), 23 | ) 24 | : Container(), 25 | ], 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /grocery_shop_app/linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | ) 7 | 8 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 9 | ) 10 | 11 | set(PLUGIN_BUNDLED_LIBRARIES) 12 | 13 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 14 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 15 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 16 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 18 | endforeach(plugin) 19 | 20 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 21 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 23 | endforeach(ffi_plugin) 24 | -------------------------------------------------------------------------------- /grocery_admin_panel/linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | file_selector_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 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/screens/loading_manager.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_spinkit/flutter_spinkit.dart'; 3 | 4 | class LoadingManager extends StatelessWidget { 5 | const LoadingManager({Key? key, required this.isLoading, required this.child}) 6 | : super(key: key); 7 | final bool isLoading; 8 | final Widget child; 9 | @override 10 | Widget build(BuildContext context) { 11 | return Stack( 12 | children: [ 13 | child, 14 | isLoading 15 | ? Container( 16 | color: Colors.black.withOpacity(0.7), 17 | ) 18 | : Container(), 19 | isLoading 20 | ? const Center( 21 | child: SpinKitFadingFour( 22 | color: Colors.white, 23 | ), 24 | ) 25 | : Container(), 26 | ], 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /grocery_admin_panel/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /grocery_shop_app/windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | cloud_firestore 7 | firebase_auth 8 | firebase_core 9 | ) 10 | 11 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 12 | ) 13 | 14 | set(PLUGIN_BUNDLED_LIBRARIES) 15 | 16 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 17 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 18 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 19 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 20 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 21 | endforeach(plugin) 22 | 23 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 24 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) 25 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 26 | endforeach(ffi_plugin) 27 | -------------------------------------------------------------------------------- /grocery_shop_app/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | 46 | *.firebase_options.dart 47 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/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 path_provider_foundation 12 | import shared_preferences_foundation 13 | import sqflite 14 | 15 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 16 | FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin")) 17 | FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin")) 18 | FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin")) 19 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) 20 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) 21 | SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin")) 22 | } 23 | -------------------------------------------------------------------------------- /grocery_admin_panel/windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | cloud_firestore 7 | file_selector_windows 8 | firebase_auth 9 | firebase_core 10 | firebase_storage 11 | ) 12 | 13 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 14 | ) 15 | 16 | set(PLUGIN_BUNDLED_LIBRARIES) 17 | 18 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 19 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 20 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 21 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 22 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 23 | endforeach(plugin) 24 | 25 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 26 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) 27 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 28 | endforeach(ffi_plugin) 29 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 file_selector_macos 10 | import firebase_auth 11 | import firebase_core 12 | import firebase_storage 13 | import shared_preferences_foundation 14 | 15 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 16 | FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin")) 17 | FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin")) 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 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) 22 | } 23 | -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/GoogleService-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | API_KEY 6 | AIzaSyDd3qSYXBYYA5B5v4LbO53VrVGCrrEU9T8 7 | GCM_SENDER_ID 8 | 371294517760 9 | PLIST_VERSION 10 | 1 11 | BUNDLE_ID 12 | com.example.groceryShopApp 13 | PROJECT_ID 14 | grocery-shop-app-2d89b 15 | STORAGE_BUCKET 16 | grocery-shop-app-2d89b.appspot.com 17 | IS_ADS_ENABLED 18 | 19 | IS_ANALYTICS_ENABLED 20 | 21 | IS_APPINVITE_ENABLED 22 | 23 | IS_GCM_ENABLED 24 | 25 | IS_SIGNIN_ENABLED 26 | 27 | GOOGLE_APP_ID 28 | 1:371294517760:ios:31503698358831bc2cf6e5 29 | 30 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/consts/theme_data.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Styles { 4 | static ThemeData themeData(bool isDarkTheme, BuildContext context) { 5 | return ThemeData( 6 | scaffoldBackgroundColor: 7 | //0A1931 // white yellow 0xFFFCF8EC 8 | isDarkTheme ? const Color(0xFF00001a) : const Color(0xFFFFFFFF), 9 | primaryColor: Colors.blue, 10 | colorScheme: ThemeData().colorScheme.copyWith( 11 | secondary: 12 | isDarkTheme ? const Color(0xFF1a1f3c) : const Color(0xFFE8FDFD), 13 | brightness: isDarkTheme ? Brightness.dark : Brightness.light, 14 | ), 15 | cardColor: 16 | isDarkTheme ? const Color(0xFF0a0d2c) : const Color(0xFFF2FDFD), 17 | canvasColor: isDarkTheme ? Colors.black : Colors.grey[50], 18 | buttonTheme: Theme.of(context).buttonTheme.copyWith( 19 | colorScheme: isDarkTheme 20 | ? const ColorScheme.dark() 21 | : const ColorScheme.light()), 22 | ); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/widgets/auth_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:grocery_shop_app/widgets/text_widget.dart'; 3 | 4 | class AuthButton extends StatelessWidget { 5 | const AuthButton({ 6 | Key? key, 7 | required this.fct, 8 | required this.buttonText, 9 | this.primary = Colors.white38, 10 | }) : super(key: key); 11 | final Function fct; 12 | final String buttonText; 13 | final Color primary; 14 | @override 15 | Widget build(BuildContext context) { 16 | return SizedBox( 17 | width: double.infinity, 18 | height: 50, 19 | child: ElevatedButton( 20 | style: ElevatedButton.styleFrom( 21 | backgroundColor: primary, // background (button) color 22 | ), 23 | onPressed: () { 24 | fct(); 25 | // _submitFormOnLogin(); 26 | }, 27 | child: TextWidget( 28 | text: buttonText, 29 | textSize: 18, 30 | color: Colors.white, 31 | )), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/widgets/empty_products_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:grocery_shop_app/services/utils.dart'; 3 | 4 | class EmptyProdWidget extends StatelessWidget { 5 | const EmptyProdWidget({Key? key,required this.text}) : super(key: key); 6 | final String text; 7 | @override 8 | Widget build(BuildContext context) { 9 | Color color = Utils(context).color; 10 | return Center( 11 | child: Padding( 12 | padding: const EdgeInsets.all(8.0), 13 | child: Column( 14 | children: [ 15 | Padding( 16 | padding: const EdgeInsets.all(18.0), 17 | child: Image.asset( 18 | 'assets/images/box.png', 19 | ), 20 | ), 21 | Text( 22 | text, 23 | textAlign: TextAlign.center, 24 | style: TextStyle( 25 | color: color, fontSize: 30, fontWeight: FontWeight.w700), 26 | ), 27 | ], 28 | ), 29 | ), 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/consts/theme_data.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Styles { 4 | static ThemeData themeData(bool isDarkTheme, BuildContext context) { 5 | return ThemeData( 6 | scaffoldBackgroundColor: 7 | //0A1931 // white yellow 0xFFFCF8EC 8 | isDarkTheme ? const Color(0xFF00001a) : const Color(0xFFFFFFFF), 9 | primaryColor: Colors.blue, 10 | colorScheme: ThemeData().colorScheme.copyWith( 11 | secondary: 12 | isDarkTheme ? const Color(0xFF1a1f3c) : const Color(0xFFE9FCFC), 13 | brightness: isDarkTheme ? Brightness.dark : Brightness.light, 14 | ), 15 | cardColor: 16 | isDarkTheme ? const Color(0xFF0a0d2c) : Color.fromARGB(255, 188, 202, 202), 17 | canvasColor: isDarkTheme ? Colors.black : Colors.grey[50], 18 | buttonTheme: Theme.of(context).buttonTheme.copyWith( 19 | colorScheme: isDarkTheme 20 | ? const ColorScheme.dark() 21 | : const ColorScheme.light()), 22 | ); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /grocery_shop_app/macos/Runner/GoogleService-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | API_KEY 6 | AIzaSyDd3qSYXBYYA5B5v4LbO53VrVGCrrEU9T8 7 | GCM_SENDER_ID 8 | 371294517760 9 | PLIST_VERSION 10 | 1 11 | BUNDLE_ID 12 | com.example.groceryShopApp.RunnerTests 13 | PROJECT_ID 14 | grocery-shop-app-2d89b 15 | STORAGE_BUCKET 16 | grocery-shop-app-2d89b.appspot.com 17 | IS_ADS_ENABLED 18 | 19 | IS_ANALYTICS_ENABLED 20 | 21 | IS_APPINVITE_ENABLED 22 | 23 | IS_GCM_ENABLED 24 | 25 | IS_SIGNIN_ENABLED 26 | 27 | GOOGLE_APP_ID 28 | 1:371294517760:ios:f025e69966f688932cf6e5 29 | 30 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/responsive.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Responsive extends StatelessWidget { 4 | final Widget mobile; 5 | // final Widget? tablet; 6 | final Widget desktop; 7 | 8 | const Responsive({ 9 | Key? key, 10 | required this.mobile, 11 | required this.desktop, 12 | }) : super(key: key); 13 | 14 | 15 | 16 | // This isMobile, isDesktop help us later 17 | static bool isMobile(BuildContext context) => 18 | MediaQuery.of(context).size.width < 850; 19 | 20 | 21 | static bool isDesktop(BuildContext context) => 22 | MediaQuery.of(context).size.width >= 1100; 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | final Size _size = MediaQuery.of(context).size; 27 | // If our width is more than 1100 then we consider it a desktop 28 | if (_size.width >= 1100) { 29 | return desktop; 30 | } 31 | // If width it less then 1100 and more then 850 we consider it as tablet 32 | // Or less then that we called it mobile 33 | else { 34 | return mobile; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /grocery_shop_app/web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "grocery_shop_app", 3 | "short_name": "grocery_shop_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 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "grocery_admin_panel", 3 | "short_name": "grocery_admin_panel", 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 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/widgets/buttons.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:grocery_admin_panel/consts/constants.dart'; 3 | 4 | import '../responsive.dart'; 5 | 6 | 7 | 8 | class ButtonsWidget extends StatelessWidget { 9 | const ButtonsWidget({ 10 | Key? key, 11 | required this.onPressed, 12 | required this.text, 13 | required this.icon, 14 | required this.backgroundColor, 15 | }) : super(key: key); 16 | final VoidCallback onPressed; 17 | final String text; 18 | final IconData icon; 19 | final Color backgroundColor; 20 | @override 21 | Widget build(BuildContext context) { 22 | return ElevatedButton.icon( 23 | style: TextButton.styleFrom( 24 | backgroundColor: backgroundColor, 25 | padding: EdgeInsets.symmetric( 26 | horizontal: defaultPadding * 1.5, 27 | vertical: defaultPadding / (Responsive.isDesktop(context) ? 1 : 2), 28 | ), 29 | ), 30 | onPressed: () { 31 | onPressed(); 32 | }, 33 | icon: Icon(icon, size: 20,), 34 | label: Text(text), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | void RegisterPlugins(flutter::PluginRegistry* registry) { 16 | CloudFirestorePluginCApiRegisterWithRegistrar( 17 | registry->GetRegistrarForPlugin("CloudFirestorePluginCApi")); 18 | FileSelectorWindowsRegisterWithRegistrar( 19 | registry->GetRegistrarForPlugin("FileSelectorWindows")); 20 | FirebaseAuthPluginCApiRegisterWithRegistrar( 21 | registry->GetRegistrarForPlugin("FirebaseAuthPluginCApi")); 22 | FirebaseCorePluginCApiRegisterWithRegistrar( 23 | registry->GetRegistrarForPlugin("FirebaseCorePluginCApi")); 24 | FirebaseStoragePluginCApiRegisterWithRegistrar( 25 | registry->GetRegistrarForPlugin("FirebaseStoragePluginCApi")); 26 | } 27 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/controllers/MenuController.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class MenuController extends ChangeNotifier { 4 | final GlobalKey _scaffoldKey = GlobalKey(); 5 | final GlobalKey _gridScaffoldKey = GlobalKey(); 6 | final GlobalKey _addProductScaffoldKey = 7 | GlobalKey(); 8 | // Getters 9 | GlobalKey get getScaffoldKey => _scaffoldKey; 10 | GlobalKey get getgridscaffoldKey => _gridScaffoldKey; 11 | GlobalKey get getAddProductscaffoldKey => _addProductScaffoldKey; 12 | 13 | // Callbacks 14 | void controlDashboarkMenu() { 15 | if (!_scaffoldKey.currentState!.isDrawerOpen) { 16 | _scaffoldKey.currentState!.openDrawer(); 17 | } 18 | } 19 | 20 | void controlProductsMenu() { 21 | if (!_gridScaffoldKey.currentState!.isDrawerOpen) { 22 | _gridScaffoldKey.currentState!.openDrawer(); 23 | } 24 | } 25 | 26 | void controlAddProductsMenu() { 27 | if (!_addProductScaffoldKey.currentState!.isDrawerOpen) { 28 | _addProductScaffoldKey.currentState!.openDrawer(); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /grocery_shop_app/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:grocery_shop_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 | -------------------------------------------------------------------------------- /grocery_admin_panel/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:grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/screens/main_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:grocery_admin_panel/controllers/MenuControllerr.dart'; 3 | import 'package:grocery_admin_panel/widgets/side_menu.dart'; 4 | import 'package:provider/provider.dart'; 5 | 6 | import '../responsive.dart'; 7 | import 'dashboard_screen.dart'; 8 | 9 | class MainScreen extends StatelessWidget { 10 | const MainScreen({Key? key}) : super(key: key); 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return Scaffold( 15 | key: context.read().getScaffoldKey, 16 | drawer: const SideMenu(), 17 | body: SafeArea( 18 | child: Row( 19 | crossAxisAlignment: CrossAxisAlignment.start, 20 | children: [ 21 | // We want this side menu only for large screen 22 | if (Responsive.isDesktop(context)) 23 | const Expanded( 24 | // default flex = 1 25 | // and it takes 1/6 part of the screen 26 | child: SideMenu(), 27 | ), 28 | const Expanded( 29 | // It takes 5/6 part of the screen 30 | flex: 5, 31 | child: DashboardScreen(), 32 | ), 33 | ], 34 | ), 35 | ), 36 | ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/GoogleService-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CLIENT_ID 6 | 371294517760-28h87l7kq9fk1e9bkc0hegt2ceepkoas.apps.googleusercontent.com 7 | REVERSED_CLIENT_ID 8 | com.googleusercontent.apps.371294517760-28h87l7kq9fk1e9bkc0hegt2ceepkoas 9 | ANDROID_CLIENT_ID 10 | 371294517760-ucefi1600nq29eotinfg936jhhe7s5vo.apps.googleusercontent.com 11 | API_KEY 12 | AIzaSyDd3qSYXBYYA5B5v4LbO53VrVGCrrEU9T8 13 | GCM_SENDER_ID 14 | 371294517760 15 | PLIST_VERSION 16 | 1 17 | BUNDLE_ID 18 | com.example.groceryAdminPanel 19 | PROJECT_ID 20 | grocery-shop-app-2d89b 21 | STORAGE_BUCKET 22 | grocery-shop-app-2d89b.appspot.com 23 | IS_ADS_ENABLED 24 | 25 | IS_ANALYTICS_ENABLED 26 | 27 | IS_APPINVITE_ENABLED 28 | 29 | IS_GCM_ENABLED 30 | 31 | IS_SIGNIN_ENABLED 32 | 33 | GOOGLE_APP_ID 34 | 1:371294517760:ios:23d0602e662e46652cf6e5 35 | 36 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/widgets/price_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:grocery_shop_app/widgets/text_widget.dart'; 3 | import '../services/utils.dart'; 4 | 5 | class PriceWidget extends StatelessWidget { 6 | const PriceWidget({ 7 | Key? key, 8 | required this.salePrice, 9 | required this.price, 10 | required this.textPrice, 11 | required this.isOnSale, 12 | }) : super(key: key); 13 | final double salePrice, price; 14 | final String textPrice; 15 | final bool isOnSale; 16 | @override 17 | Widget build(BuildContext context) { 18 | final Color color = Utils(context).color; 19 | double userPrice = isOnSale? salePrice : price; 20 | return FittedBox( 21 | child: Row( 22 | children: [ 23 | TextWidget( 24 | text: '\$${(userPrice * int.parse(textPrice)).toStringAsFixed(2)}', 25 | color: Colors.green, 26 | textSize: 18, 27 | ), 28 | const SizedBox( 29 | width: 5, 30 | ), 31 | Visibility( 32 | visible: isOnSale? true :false, 33 | child: Text( 34 | '\$${(price * int.parse(textPrice)).toStringAsFixed(2)}', 35 | style: TextStyle( 36 | fontSize: 15, 37 | color: color, 38 | decoration: TextDecoration.lineThrough, 39 | ), 40 | ), 41 | ), 42 | ], 43 | )); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /grocery_admin_panel/macos/Runner/GoogleService-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CLIENT_ID 6 | 371294517760-tu0j21362455tueht2ld01npb35q8d4r.apps.googleusercontent.com 7 | REVERSED_CLIENT_ID 8 | com.googleusercontent.apps.371294517760-tu0j21362455tueht2ld01npb35q8d4r 9 | ANDROID_CLIENT_ID 10 | 371294517760-ucefi1600nq29eotinfg936jhhe7s5vo.apps.googleusercontent.com 11 | API_KEY 12 | AIzaSyDd3qSYXBYYA5B5v4LbO53VrVGCrrEU9T8 13 | GCM_SENDER_ID 14 | 371294517760 15 | PLIST_VERSION 16 | 1 17 | BUNDLE_ID 18 | com.example.groceryAdminPanel.RunnerTests 19 | PROJECT_ID 20 | grocery-shop-app-2d89b 21 | STORAGE_BUCKET 22 | grocery-shop-app-2d89b.appspot.com 23 | IS_ADS_ENABLED 24 | 25 | IS_ANALYTICS_ENABLED 26 | 27 | IS_APPINVITE_ENABLED 28 | 29 | IS_GCM_ENABLED 30 | 31 | IS_SIGNIN_ENABLED 32 | 33 | GOOGLE_APP_ID 34 | 1:371294517760:ios:85bd5a20024322e12cf6e5 35 | 36 | -------------------------------------------------------------------------------- /grocery_shop_app/windows/runner/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "flutter_window.h" 6 | #include "utils.h" 7 | 8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, 9 | _In_ wchar_t *command_line, _In_ int show_command) { 10 | // Attach to console when present (e.g., 'flutter run') or create a 11 | // new console when running with a debugger. 12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { 13 | CreateAndAttachConsole(); 14 | } 15 | 16 | // Initialize COM, so that it is available for use in the library and/or 17 | // plugins. 18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); 19 | 20 | flutter::DartProject project(L"data"); 21 | 22 | std::vector command_line_arguments = 23 | GetCommandLineArguments(); 24 | 25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); 26 | 27 | FlutterWindow window(project); 28 | Win32Window::Point origin(10, 10); 29 | Win32Window::Size size(1280, 720); 30 | if (!window.Create(L"grocery_shop_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 | -------------------------------------------------------------------------------- /grocery_admin_panel/windows/runner/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "flutter_window.h" 6 | #include "utils.h" 7 | 8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, 9 | _In_ wchar_t *command_line, _In_ int show_command) { 10 | // Attach to console when present (e.g., 'flutter run') or create a 11 | // new console when running with a debugger. 12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { 13 | CreateAndAttachConsole(); 14 | } 15 | 16 | // Initialize COM, so that it is available for use in the library and/or 17 | // plugins. 18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); 19 | 20 | flutter::DartProject project(L"data"); 21 | 22 | std::vector command_line_arguments = 23 | GetCommandLineArguments(); 24 | 25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); 26 | 27 | FlutterWindow window(project); 28 | Win32Window::Point origin(10, 10); 29 | Win32Window::Size size(1280, 720); 30 | if (!window.Create(L"grocery_admin_panel", 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter+Firebase Online Grocery Store 2 | 3 | Welcome to the Flutter+Firebase Online Grocery Store repository! This repository contains two projects: a mobile app for the grocery store and a web and mobile admin panel for managing the store. Both projects are built using Flutter and Firebase, offering a seamless experience across platforms. 4 | 5 | ## Features 6 | 7 | ### Mobile App: 8 | - Browse through a wide range of grocery items 9 | - Search functionality to quickly find products 10 | - Add items to cart and manage cart contents 11 | - Secure user authentication with Firebase Authentication 12 | - Order tracking and history 13 | 14 | ### Admin Panel: 15 | - Manage product inventory easily 16 | - View and process orders from customers 17 | - Monitor sales and revenue 18 | - User management and access control 19 | - Real-time updates using Firebase Firestore 20 | - Seamless integration with the mobile app for unified management experience 21 | 22 | # UI Design on Mobile Applications 23 | ![project5](https://github.com/offfahad/grocery-shopping-app/assets/19569802/8c2b528a-d78e-4fd9-9549-4f6bf01828d1) 24 | 25 | # Web Admin Panel Design 26 | ![admin1](https://github.com/offfahad/grocery-shopping-app/assets/19569802/002c54e3-7faa-4e92-9721-16aea17b57fe) 27 | ![admin2](https://github.com/offfahad/grocery-shopping-app/assets/19569802/ac6470a2-1adf-4388-b86b-4ee0529dc0e9) 28 | 29 | # Guide 30 | If you want to use that code you have to change the firebase project connection with yours. 31 | 32 | 33 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 https://dart.dev/lints. 17 | # 18 | # Instead of disabling a lint rule for the entire project in the 19 | # section below, it can also be suppressed for a single line of code 20 | # or a specific dart file by using the `// ignore: name_of_lint` and 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 22 | # producing the lint. 23 | rules: 24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 26 | 27 | # Additional information about this file can be found at 28 | # https://dart.dev/guides/language/analysis-options 29 | -------------------------------------------------------------------------------- /grocery_shop_app/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 https://dart.dev/lints. 17 | # 18 | # Instead of disabling a lint rule for the entire project in the 19 | # section below, it can also be suppressed for a single line of code 20 | # or a specific dart file by using the `// ignore: name_of_lint` and 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 22 | # producing the lint. 23 | rules: 24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 26 | 27 | # Additional information about this file can be found at 28 | # https://dart.dev/guides/language/analysis-options 29 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/providers/orders_provider.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:firebase_auth/firebase_auth.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:grocery_shop_app/consts/firebase_const.dart'; 5 | import 'package:grocery_shop_app/models/order_model.dart'; 6 | 7 | class OrdersProvider with ChangeNotifier{ 8 | static List _orders = []; 9 | List get getOrders { 10 | return _orders; 11 | } 12 | Future fetchOrders() async { 13 | try { 14 | User? user = authInstance.currentUser; 15 | await FirebaseFirestore.instance 16 | .collection('orders').where("userId", isEqualTo: user!.uid) 17 | //.orderBy('orderDate', descending: false) 18 | .get() 19 | .then((QuerySnapshot ordersSnapshot) { 20 | _orders = []; 21 | // _orders.clear(); 22 | ordersSnapshot.docs.forEach((element) { 23 | _orders.insert( 24 | 0, 25 | OrderModel( 26 | orderId: element.get('orderId'), 27 | userId: element.get('userId'), 28 | productId: element.get('productId'), 29 | userName: element.get('userName'), 30 | price: element.get('price').toString(), 31 | imageUrl: element.get('imageUrl'), 32 | quantity: element.get('quantity').toString(), 33 | orderDate: element.get('orderDate'), 34 | ), 35 | ); 36 | }); 37 | }); 38 | notifyListeners(); 39 | } catch (e) { 40 | print('Error From Firebase $e'); 41 | } 42 | 43 | } 44 | void clearLocalOrder() { 45 | _orders.clear(); 46 | notifyListeners(); 47 | } 48 | 49 | } -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_shop_app/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 14 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 14 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /grocery_shop_app/android/app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "371294517760", 4 | "project_id": "grocery-shop-app-2d89b", 5 | "storage_bucket": "grocery-shop-app-2d89b.appspot.com" 6 | }, 7 | "client": [ 8 | { 9 | "client_info": { 10 | "mobilesdk_app_id": "1:371294517760:android:e7cb39f3469651592cf6e5", 11 | "android_client_info": { 12 | "package_name": "com.example.grocery_shop_app" 13 | } 14 | }, 15 | "oauth_client": [ 16 | { 17 | "client_id": "371294517760-ucefi1600nq29eotinfg936jhhe7s5vo.apps.googleusercontent.com", 18 | "client_type": 1, 19 | "android_info": { 20 | "package_name": "com.example.grocery_shop_app", 21 | "certificate_hash": "1327d7d4562d078414daa0fc1c4cfbd23e5e5ee8" 22 | } 23 | }, 24 | { 25 | "client_id": "371294517760-r4phg34bmmrp9r2fsf3rtlnenrt40gph.apps.googleusercontent.com", 26 | "client_type": 3 27 | } 28 | ], 29 | "api_key": [ 30 | { 31 | "current_key": "AIzaSyAFFj7EPqR4JfMr1_BP6DjNtAj_7xh8F1M" 32 | } 33 | ], 34 | "services": { 35 | "appinvite_service": { 36 | "other_platform_oauth_client": [ 37 | { 38 | "client_id": "371294517760-r4phg34bmmrp9r2fsf3rtlnenrt40gph.apps.googleusercontent.com", 39 | "client_type": 3 40 | }, 41 | { 42 | "client_id": "371294517760-aq2kqdbhrpica6cn5hfmdvvfrhp60nlq.apps.googleusercontent.com", 43 | "client_type": 2, 44 | "ios_info": { 45 | "bundle_id": "com.example.groceryShopApp.RunnerTests" 46 | } 47 | } 48 | ] 49 | } 50 | } 51 | } 52 | ], 53 | "configuration_version": "1" 54 | } -------------------------------------------------------------------------------- /grocery_shop_app/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Grocery Shop App 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | grocery_shop_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 | CADisableMinimumFrameDurationOnPhone 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /grocery_admin_panel/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Grocery Admin Panel 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | grocery_admin_panel 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 | CADisableMinimumFrameDurationOnPhone 45 | 46 | UIApplicationSupportsIndirectInputEvents 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /grocery_shop_app/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "2524052335ec76bb03e04ede244b071f1b86d190" 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: 2524052335ec76bb03e04ede244b071f1b86d190 17 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 18 | - platform: android 19 | create_revision: 2524052335ec76bb03e04ede244b071f1b86d190 20 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 21 | - platform: ios 22 | create_revision: 2524052335ec76bb03e04ede244b071f1b86d190 23 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 24 | - platform: linux 25 | create_revision: 2524052335ec76bb03e04ede244b071f1b86d190 26 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 27 | - platform: macos 28 | create_revision: 2524052335ec76bb03e04ede244b071f1b86d190 29 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 30 | - platform: web 31 | create_revision: 2524052335ec76bb03e04ede244b071f1b86d190 32 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 33 | - platform: windows 34 | create_revision: 2524052335ec76bb03e04ede244b071f1b86d190 35 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 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 | -------------------------------------------------------------------------------- /grocery_admin_panel/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "2524052335ec76bb03e04ede244b071f1b86d190" 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: 2524052335ec76bb03e04ede244b071f1b86d190 17 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 18 | - platform: android 19 | create_revision: 2524052335ec76bb03e04ede244b071f1b86d190 20 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 21 | - platform: ios 22 | create_revision: 2524052335ec76bb03e04ede244b071f1b86d190 23 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 24 | - platform: linux 25 | create_revision: 2524052335ec76bb03e04ede244b071f1b86d190 26 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 27 | - platform: macos 28 | create_revision: 2524052335ec76bb03e04ede244b071f1b86d190 29 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 30 | - platform: web 31 | create_revision: 2524052335ec76bb03e04ede244b071f1b86d190 32 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 33 | - platform: windows 34 | create_revision: 2524052335ec76bb03e04ede244b071f1b86d190 35 | base_revision: 2524052335ec76bb03e04ede244b071f1b86d190 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 | -------------------------------------------------------------------------------- /grocery_shop_app/windows/runner/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | project(runner LANGUAGES CXX) 3 | 4 | # Define the application target. To change its name, change BINARY_NAME in the 5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer 6 | # work. 7 | # 8 | # Any new source files that you add to the application should be added here. 9 | add_executable(${BINARY_NAME} WIN32 10 | "flutter_window.cpp" 11 | "main.cpp" 12 | "utils.cpp" 13 | "win32_window.cpp" 14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 15 | "Runner.rc" 16 | "runner.exe.manifest" 17 | ) 18 | 19 | # Apply the standard set of build settings. This can be removed for applications 20 | # that need different build settings. 21 | apply_standard_settings(${BINARY_NAME}) 22 | 23 | # Add preprocessor definitions for the build version. 24 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") 25 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") 26 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") 27 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") 28 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") 29 | 30 | # Disable Windows macros that collide with C++ standard library functions. 31 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") 32 | 33 | # Add dependency libraries and include directories. Add any application-specific 34 | # dependencies here. 35 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) 36 | target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") 37 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") 38 | 39 | # Run the Flutter tool portions of the build. This must not be removed. 40 | add_dependencies(${BINARY_NAME} flutter_assemble) 41 | -------------------------------------------------------------------------------- /grocery_admin_panel/windows/runner/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.14) 2 | project(runner LANGUAGES CXX) 3 | 4 | # Define the application target. To change its name, change BINARY_NAME in the 5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer 6 | # work. 7 | # 8 | # Any new source files that you add to the application should be added here. 9 | add_executable(${BINARY_NAME} WIN32 10 | "flutter_window.cpp" 11 | "main.cpp" 12 | "utils.cpp" 13 | "win32_window.cpp" 14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" 15 | "Runner.rc" 16 | "runner.exe.manifest" 17 | ) 18 | 19 | # Apply the standard set of build settings. This can be removed for applications 20 | # that need different build settings. 21 | apply_standard_settings(${BINARY_NAME}) 22 | 23 | # Add preprocessor definitions for the build version. 24 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") 25 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") 26 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") 27 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") 28 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") 29 | 30 | # Disable Windows macros that collide with C++ standard library functions. 31 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") 32 | 33 | # Add dependency libraries and include directories. Add any application-specific 34 | # dependencies here. 35 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) 36 | target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") 37 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") 38 | 39 | # Run the Flutter tool portions of the build. This must not be removed. 40 | add_dependencies(${BINARY_NAME} flutter_assemble) 41 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/controllers/MenuControllerr.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class MenuControllerr extends ChangeNotifier { 4 | final GlobalKey _scaffoldKey = GlobalKey(); 5 | final GlobalKey _gridScaffoldKey = GlobalKey(); 6 | final GlobalKey _addProductScaffoldKey = 7 | GlobalKey(); 8 | final GlobalKey _ordersScaffoldKey = 9 | GlobalKey(); 10 | 11 | final GlobalKey _editProductScaffoldKey = 12 | GlobalKey(); 13 | // Getters 14 | GlobalKey get getScaffoldKey => _scaffoldKey; 15 | GlobalKey get getgridscaffoldKey => _gridScaffoldKey; 16 | GlobalKey get getAddProductscaffoldKey => 17 | _addProductScaffoldKey; 18 | GlobalKey get getOrdersScaffoldKey => _ordersScaffoldKey; 19 | // get Edit product screen Scaffold Key 20 | GlobalKey get getEditProductscaffoldKey => 21 | _editProductScaffoldKey; 22 | 23 | // Callbacks 24 | void controlDashboarkMenu() { 25 | if (!_scaffoldKey.currentState!.isDrawerOpen) { 26 | _scaffoldKey.currentState!.openDrawer(); 27 | } 28 | } 29 | 30 | void controlProductsMenu() { 31 | if (!_gridScaffoldKey.currentState!.isDrawerOpen) { 32 | _gridScaffoldKey.currentState!.openDrawer(); 33 | } 34 | } 35 | 36 | void controlAddProductsMenu() { 37 | if (!_addProductScaffoldKey.currentState!.isDrawerOpen) { 38 | _addProductScaffoldKey.currentState!.openDrawer(); 39 | } 40 | } 41 | 42 | void controlAllOrder() { 43 | if (!_ordersScaffoldKey.currentState!.isDrawerOpen) { 44 | _ordersScaffoldKey.currentState!.openDrawer(); 45 | } 46 | } 47 | 48 | void controlEditProductsMenu() { 49 | if (!_editProductScaffoldKey.currentState!.isDrawerOpen) { 50 | _editProductScaffoldKey.currentState!.openDrawer(); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -1; // remove the trailing null character 52 | int input_length = (int)wcslen(utf16_string); 53 | std::string utf8_string; 54 | if (target_length <= 0 || target_length > utf8_string.max_size()) { 55 | return utf8_string; 56 | } 57 | utf8_string.resize(target_length); 58 | int converted_length = ::WideCharToMultiByte( 59 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 60 | input_length, utf8_string.data(), target_length, nullptr, nullptr); 61 | if (converted_length == 0) { 62 | return std::string(); 63 | } 64 | return utf8_string; 65 | } 66 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -1; // remove the trailing null character 52 | int input_length = (int)wcslen(utf16_string); 53 | std::string utf8_string; 54 | if (target_length <= 0 || target_length > utf8_string.max_size()) { 55 | return utf8_string; 56 | } 57 | utf8_string.resize(target_length); 58 | int converted_length = ::WideCharToMultiByte( 59 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, 60 | input_length, utf8_string.data(), target_length, nullptr, nullptr); 61 | if (converted_length == 0) { 62 | return std::string(); 63 | } 64 | return utf8_string; 65 | } 66 | -------------------------------------------------------------------------------- /grocery_shop_app/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | grocery_shop_app 33 | 34 | 35 | 39 | 40 | 41 | 42 | 43 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /grocery_admin_panel/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | grocery_admin_panel 33 | 34 | 35 | 39 | 40 | 41 | 42 | 43 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /grocery_shop_app/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | id "dev.flutter.flutter-gradle-plugin" 5 | } 6 | 7 | def localProperties = new Properties() 8 | def localPropertiesFile = rootProject.file('local.properties') 9 | if (localPropertiesFile.exists()) { 10 | localPropertiesFile.withReader('UTF-8') { reader -> 11 | localProperties.load(reader) 12 | } 13 | } 14 | 15 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 16 | if (flutterVersionCode == null) { 17 | flutterVersionCode = '1' 18 | } 19 | 20 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 21 | if (flutterVersionName == null) { 22 | flutterVersionName = '1.0' 23 | } 24 | 25 | android { 26 | namespace "com.example.grocery_shop_app" 27 | compileSdkVersion 34 28 | ndkVersion flutter.ndkVersion 29 | 30 | compileOptions { 31 | sourceCompatibility JavaVersion.VERSION_1_8 32 | targetCompatibility JavaVersion.VERSION_1_8 33 | } 34 | 35 | kotlinOptions { 36 | jvmTarget = '1.8' 37 | } 38 | 39 | sourceSets { 40 | main.java.srcDirs += 'src/main/kotlin' 41 | } 42 | 43 | defaultConfig { 44 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 45 | applicationId "com.example.grocery_shop_app" 46 | // You can update the following values to match your application needs. 47 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. 48 | minSdkVersion 21 49 | targetSdkVersion flutter.targetSdkVersion 50 | versionCode flutterVersionCode.toInteger() 51 | versionName flutterVersionName 52 | } 53 | 54 | buildTypes { 55 | release { 56 | // TODO: Add your own signing config for the release build. 57 | // Signing with the debug keys for now, so `flutter run --release` works. 58 | signingConfig signingConfigs.debug 59 | } 60 | } 61 | } 62 | 63 | flutter { 64 | source '../..' 65 | } 66 | 67 | dependencies {} 68 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_core/firebase_core.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:grocery_admin_panel/firebase_options.dart'; 4 | import 'package:grocery_admin_panel/inner_screens/add_prod.dart'; 5 | import 'package:grocery_admin_panel/screens/main_screen.dart'; 6 | import 'package:provider/provider.dart'; 7 | 8 | import 'consts/theme_data.dart'; 9 | import 'controllers/MenuControllerr.dart'; 10 | import 'providers/dark_theme_provider.dart'; 11 | 12 | void main() async { 13 | WidgetsFlutterBinding.ensureInitialized(); 14 | await Firebase.initializeApp( 15 | options: DefaultFirebaseOptions.currentPlatform, 16 | ); 17 | runApp(const MyApp()); 18 | } 19 | 20 | class MyApp extends StatefulWidget { 21 | const MyApp({Key? key}) : super(key: key); 22 | 23 | @override 24 | State createState() => _MyAppState(); 25 | } 26 | 27 | class _MyAppState extends State { 28 | DarkThemeProvider themeChangeProvider = DarkThemeProvider(); 29 | 30 | void getCurrentAppTheme() async { 31 | themeChangeProvider.setDarkTheme = 32 | await themeChangeProvider.darkThemePreference.getTheme(); 33 | } 34 | 35 | @override 36 | void initState() { 37 | getCurrentAppTheme(); 38 | super.initState(); 39 | } 40 | 41 | @override 42 | Widget build(BuildContext context) { 43 | return MultiProvider( 44 | providers: [ 45 | ChangeNotifierProvider( 46 | create: (_) => MenuControllerr(), 47 | ), 48 | ChangeNotifierProvider( 49 | create: (_) { 50 | return themeChangeProvider; 51 | }, 52 | ), 53 | ], 54 | child: Consumer( 55 | builder: (context, themeProvider, child) { 56 | return MaterialApp( 57 | debugShowCheckedModeBanner: false, 58 | title: 'Grocery', 59 | theme: Styles.themeData(themeProvider.getDarkTheme, context), 60 | home: const MainScreen(), 61 | routes: { 62 | UploadProductForm.routeName: (context) => 63 | const UploadProductForm(), 64 | }, 65 | ); 66 | }, 67 | ), 68 | ); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/screens/orders/orders_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:fancy_shimmer_image/fancy_shimmer_image.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:grocery_shop_app/inner_screens/product_details.dart'; 4 | import 'package:grocery_shop_app/models/order_model.dart'; 5 | import 'package:grocery_shop_app/services/global_methods.dart'; 6 | import 'package:provider/provider.dart'; 7 | 8 | import '../../providers/products_provider.dart'; 9 | import '../../services/utils.dart'; 10 | import '../../widgets/text_widget.dart'; 11 | 12 | class OrderWidget extends StatefulWidget { 13 | const OrderWidget({Key? key}) : super(key: key); 14 | 15 | @override 16 | State createState() => _OrderWidgetState(); 17 | } 18 | 19 | class _OrderWidgetState extends State { 20 | late String orderDateToShow; 21 | 22 | @override 23 | void didChangeDependencies() { 24 | final ordersModel = Provider.of(context); 25 | var orderDate = ordersModel.orderDate.toDate(); 26 | orderDateToShow = '${orderDate.day}/${orderDate.month}/${orderDate.year}'; 27 | super.didChangeDependencies(); 28 | } 29 | 30 | @override 31 | Widget build(BuildContext context) { 32 | final ordersModel = Provider.of(context); 33 | final Color color = Utils(context).color; 34 | Size size = Utils(context).getScreenSize; 35 | final productProvider = Provider.of(context); 36 | final getCurrProduct = productProvider.findProById(ordersModel.productId); 37 | return ListTile( 38 | subtitle: 39 | Text('Paid: \$${double.parse(ordersModel.price).toStringAsFixed(2)}'), 40 | onTap: () { 41 | // GlobalMethods.navigateTo( 42 | // ctx: context, routeName: ProductDetails.routeName); 43 | }, 44 | leading: FancyShimmerImage( 45 | width: size.width * 0.2, 46 | imageUrl: getCurrProduct.imageUrl, 47 | boxFit: BoxFit.fill, 48 | ), 49 | title: TextWidget( 50 | text: '${getCurrProduct.title} x${ordersModel.quantity}', 51 | color: color, 52 | textSize: 18), 53 | trailing: TextWidget(text: orderDateToShow, color: color, textSize: 18), 54 | ); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /grocery_admin_panel/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.android.application" 3 | id "kotlin-android" 4 | id "dev.flutter.flutter-gradle-plugin" 5 | } 6 | 7 | def localProperties = new Properties() 8 | def localPropertiesFile = rootProject.file('local.properties') 9 | if (localPropertiesFile.exists()) { 10 | localPropertiesFile.withReader('UTF-8') { reader -> 11 | localProperties.load(reader) 12 | } 13 | } 14 | 15 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 16 | if (flutterVersionCode == null) { 17 | flutterVersionCode = '1' 18 | } 19 | 20 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 21 | if (flutterVersionName == null) { 22 | flutterVersionName = '1.0' 23 | } 24 | 25 | android { 26 | namespace "com.example.grocery_admin_panel" 27 | compileSdkVersion flutter.compileSdkVersion 28 | ndkVersion flutter.ndkVersion 29 | 30 | compileOptions { 31 | sourceCompatibility JavaVersion.VERSION_1_8 32 | targetCompatibility JavaVersion.VERSION_1_8 33 | } 34 | 35 | kotlinOptions { 36 | jvmTarget = '1.8' 37 | } 38 | 39 | sourceSets { 40 | main.java.srcDirs += 'src/main/kotlin' 41 | } 42 | 43 | defaultConfig { 44 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 45 | applicationId "com.example.grocery_admin_panel" 46 | // You can update the following values to match your application needs. 47 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. 48 | minSdkVersion flutter.minSdkVersion 49 | targetSdkVersion flutter.targetSdkVersion 50 | versionCode flutterVersionCode.toInteger() 51 | versionName flutterVersionName 52 | } 53 | 54 | buildTypes { 55 | release { 56 | // TODO: Add your own signing config for the release build. 57 | // Signing with the debug keys for now, so `flutter run --release` works. 58 | signingConfig signingConfigs.debug 59 | } 60 | } 61 | } 62 | 63 | flutter { 64 | source '../..' 65 | } 66 | 67 | dependencies {} 68 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/widgets/categories_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:grocery_shop_app/inner_screens/cat_screen.dart'; 3 | import 'package:grocery_shop_app/inner_screens/product_details.dart'; 4 | import 'package:grocery_shop_app/widgets/text_widget.dart'; 5 | import 'package:provider/provider.dart'; 6 | 7 | import '../provider/dark_theme_provider.dart'; 8 | 9 | class CategoriesWidget extends StatelessWidget { 10 | const CategoriesWidget( 11 | {Key? key, 12 | required this.catText, 13 | required this.imgPath, 14 | required this.passedColor}) 15 | : super(key: key); 16 | final String catText, imgPath; 17 | final Color passedColor; 18 | @override 19 | Widget build(BuildContext context) { 20 | // Size size = MediaQuery.of(context).size; 21 | final themeState = Provider.of(context); 22 | double _screenWidth = MediaQuery.of(context).size.width; 23 | final Color color = themeState.getDarkTheme ? Colors.white : Colors.black; 24 | 25 | return InkWell( 26 | onTap: () { 27 | Navigator.pushNamed(context, CategoryScreen.routeName, 28 | arguments: catText); 29 | }, 30 | child: Container( 31 | // height: _screenWidth * 0.6, 32 | decoration: BoxDecoration( 33 | color: passedColor.withOpacity(0.1), 34 | borderRadius: BorderRadius.circular(16), 35 | border: Border.all( 36 | color: passedColor.withOpacity(0.7), 37 | width: 2, 38 | ), 39 | ), 40 | child: Column(children: [ 41 | // Container for the image 42 | Container( 43 | height: _screenWidth * 0.3, 44 | width: _screenWidth * 0.3, 45 | decoration: BoxDecoration( 46 | image: DecorationImage( 47 | image: AssetImage( 48 | imgPath, 49 | ), 50 | fit: BoxFit.fill), 51 | ), 52 | ), 53 | // Category name 54 | TextWidget( 55 | text: catText, 56 | color: color, 57 | textSize: 20, 58 | isTitle: true, 59 | ), 60 | ]), 61 | ), 62 | ); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /grocery_shop_app/windows/runner/flutter_window.cpp: -------------------------------------------------------------------------------- 1 | #include "flutter_window.h" 2 | 3 | #include 4 | 5 | #include "flutter/generated_plugin_registrant.h" 6 | 7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project) 8 | : project_(project) {} 9 | 10 | FlutterWindow::~FlutterWindow() {} 11 | 12 | bool FlutterWindow::OnCreate() { 13 | if (!Win32Window::OnCreate()) { 14 | return false; 15 | } 16 | 17 | RECT frame = GetClientArea(); 18 | 19 | // The size here must match the window dimensions to avoid unnecessary surface 20 | // creation / destruction in the startup path. 21 | flutter_controller_ = std::make_unique( 22 | frame.right - frame.left, frame.bottom - frame.top, project_); 23 | // Ensure that basic setup of the controller was successful. 24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) { 25 | return false; 26 | } 27 | RegisterPlugins(flutter_controller_->engine()); 28 | SetChildContent(flutter_controller_->view()->GetNativeWindow()); 29 | 30 | flutter_controller_->engine()->SetNextFrameCallback([&]() { 31 | this->Show(); 32 | }); 33 | 34 | // Flutter can complete the first frame before the "show window" callback is 35 | // registered. The following call ensures a frame is pending to ensure the 36 | // window is shown. It is a no-op if the first frame hasn't completed yet. 37 | flutter_controller_->ForceRedraw(); 38 | 39 | return true; 40 | } 41 | 42 | void FlutterWindow::OnDestroy() { 43 | if (flutter_controller_) { 44 | flutter_controller_ = nullptr; 45 | } 46 | 47 | Win32Window::OnDestroy(); 48 | } 49 | 50 | LRESULT 51 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, 52 | WPARAM const wparam, 53 | LPARAM const lparam) noexcept { 54 | // Give Flutter, including plugins, an opportunity to handle window messages. 55 | if (flutter_controller_) { 56 | std::optional result = 57 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, 58 | lparam); 59 | if (result) { 60 | return *result; 61 | } 62 | } 63 | 64 | switch (message) { 65 | case WM_FONTCHANGE: 66 | flutter_controller_->engine()->ReloadSystemFonts(); 67 | break; 68 | } 69 | 70 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); 71 | } 72 | -------------------------------------------------------------------------------- /grocery_admin_panel/windows/runner/flutter_window.cpp: -------------------------------------------------------------------------------- 1 | #include "flutter_window.h" 2 | 3 | #include 4 | 5 | #include "flutter/generated_plugin_registrant.h" 6 | 7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project) 8 | : project_(project) {} 9 | 10 | FlutterWindow::~FlutterWindow() {} 11 | 12 | bool FlutterWindow::OnCreate() { 13 | if (!Win32Window::OnCreate()) { 14 | return false; 15 | } 16 | 17 | RECT frame = GetClientArea(); 18 | 19 | // The size here must match the window dimensions to avoid unnecessary surface 20 | // creation / destruction in the startup path. 21 | flutter_controller_ = std::make_unique( 22 | frame.right - frame.left, frame.bottom - frame.top, project_); 23 | // Ensure that basic setup of the controller was successful. 24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) { 25 | return false; 26 | } 27 | RegisterPlugins(flutter_controller_->engine()); 28 | SetChildContent(flutter_controller_->view()->GetNativeWindow()); 29 | 30 | flutter_controller_->engine()->SetNextFrameCallback([&]() { 31 | this->Show(); 32 | }); 33 | 34 | // Flutter can complete the first frame before the "show window" callback is 35 | // registered. The following call ensures a frame is pending to ensure the 36 | // window is shown. It is a no-op if the first frame hasn't completed yet. 37 | flutter_controller_->ForceRedraw(); 38 | 39 | return true; 40 | } 41 | 42 | void FlutterWindow::OnDestroy() { 43 | if (flutter_controller_) { 44 | flutter_controller_ = nullptr; 45 | } 46 | 47 | Win32Window::OnDestroy(); 48 | } 49 | 50 | LRESULT 51 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message, 52 | WPARAM const wparam, 53 | LPARAM const lparam) noexcept { 54 | // Give Flutter, including plugins, an opportunity to handle window messages. 55 | if (flutter_controller_) { 56 | std::optional result = 57 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, 58 | lparam); 59 | if (result) { 60 | return *result; 61 | } 62 | } 63 | 64 | switch (message) { 65 | case WM_FONTCHANGE: 66 | flutter_controller_->engine()->ReloadSystemFonts(); 67 | break; 68 | } 69 | 70 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam); 71 | } 72 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/screens/categories.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:grocery_shop_app/services/utils.dart'; 3 | import 'package:grocery_shop_app/widgets/categories_widget.dart'; 4 | import 'package:grocery_shop_app/widgets/text_widget.dart'; 5 | 6 | class CategoriesScreen extends StatelessWidget { 7 | CategoriesScreen({Key? key}) : super(key: key); 8 | 9 | List gridColors = [ 10 | const Color(0xff53B175), 11 | const Color(0xffF8A44C), 12 | const Color(0xffF7A593), 13 | const Color(0xffD3B0E0), 14 | const Color(0xffFDE598), 15 | const Color(0xffB7DFF5), 16 | ]; 17 | 18 | List> catInfo = [ 19 | { 20 | 'imgPath': 'assets/images/cat/fruits.png', 21 | 'catText': 'Fruits', 22 | }, 23 | { 24 | 'imgPath': 'assets/images/cat/veg.png', 25 | 'catText': 'Vegetables', 26 | }, 27 | { 28 | 'imgPath': 'assets/images/cat/Spinach.png', 29 | 'catText': 'Herbs', 30 | }, 31 | { 32 | 'imgPath': 'assets/images/cat/nuts.png', 33 | 'catText': 'Nuts', 34 | }, 35 | { 36 | 'imgPath': 'assets/images/cat/spices.png', 37 | 'catText': 'Spices', 38 | }, 39 | { 40 | 'imgPath': 'assets/images/cat/grains.png', 41 | 'catText': 'Grains', 42 | }, 43 | ]; 44 | @override 45 | Widget build(BuildContext context) { 46 | 47 | final utils = Utils(context); 48 | Color color = utils.color; 49 | return Scaffold( 50 | appBar: AppBar( 51 | elevation: 0, 52 | backgroundColor: Theme.of(context).scaffoldBackgroundColor, 53 | title: TextWidget( 54 | text: 'Categories', 55 | color: color, 56 | textSize: 24, 57 | isTitle: true, 58 | ), 59 | ), 60 | body: Padding( 61 | padding: const EdgeInsets.all(8.0), 62 | child: GridView.count( 63 | crossAxisCount: 2, 64 | childAspectRatio: 240 / 250, 65 | crossAxisSpacing: 10, // Vertical spacing 66 | mainAxisSpacing: 10, // Horizontal spacing 67 | children: List.generate(6, (index) { 68 | return CategoriesWidget( 69 | catText: catInfo[index]['catText'], 70 | imgPath: catInfo[index]['imgPath'], 71 | passedColor: gridColors[index], 72 | ); 73 | }), 74 | ), 75 | )); 76 | } 77 | } -------------------------------------------------------------------------------- /grocery_shop_app/lib/inner_screens/on_sale_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_iconly/flutter_iconly.dart'; 3 | import 'package:grocery_shop_app/models/products_model.dart'; 4 | import 'package:grocery_shop_app/providers/products_provider.dart'; 5 | import 'package:grocery_shop_app/widgets/empty_products_widget.dart'; 6 | import 'package:grocery_shop_app/widgets/on_sale_widget.dart'; 7 | import 'package:grocery_shop_app/widgets/text_widget.dart'; 8 | import 'package:provider/provider.dart'; 9 | import '../services/utils.dart'; 10 | 11 | class OnSaleScreen extends StatelessWidget { 12 | static const routeName = "/OnSaleScreen"; 13 | const OnSaleScreen({Key? key}) : super(key: key); 14 | @override 15 | Widget build(BuildContext context) { 16 | final productProviders = Provider.of(context); 17 | List productOnSale = productProviders.getOnSaleProducts; 18 | bool _isEmpty = false; 19 | final Color color = Utils(context).color; 20 | Size size = Utils(context).getScreenSize; 21 | return Scaffold( 22 | appBar: AppBar( 23 | leading: InkWell( 24 | borderRadius: BorderRadius.circular(12), 25 | onTap: () { 26 | Navigator.pop(context); 27 | }, 28 | child: Icon( 29 | IconlyLight.arrowLeft2, 30 | color: color, 31 | ), 32 | ), 33 | elevation: 0, 34 | backgroundColor: Theme.of(context).scaffoldBackgroundColor, 35 | title: TextWidget( 36 | text: 'Products on sale', 37 | color: color, 38 | textSize: 24.0, 39 | isTitle: true, 40 | ), 41 | ), 42 | body: productOnSale.isEmpty 43 | ? EmptyProdWidget(text: 'No products belong to this category',) 44 | : Padding( 45 | padding: const EdgeInsets.all(20), 46 | child: GridView.count( 47 | crossAxisCount: 2, 48 | padding: EdgeInsets.zero, 49 | crossAxisSpacing: 20, 50 | mainAxisSpacing: 20, 51 | childAspectRatio: size.width / (size.height * 0.40), 52 | children: List.generate(productOnSale.length, (index) { 53 | return ChangeNotifierProvider.value( 54 | value: productOnSale[index], child: (const OnSaleWidget())); 55 | }), 56 | ), 57 | ), 58 | ); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /grocery_admin_panel/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 | -------------------------------------------------------------------------------- /grocery_shop_app/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 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/providers/wishlist_provider.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:firebase_auth/firebase_auth.dart'; 3 | import 'package:flutter/cupertino.dart'; 4 | import 'package:grocery_shop_app/consts/firebase_const.dart'; 5 | import 'package:grocery_shop_app/models/wishlist_model.dart'; 6 | 7 | class WishlistProvider with ChangeNotifier { 8 | Map _wishlistItems = {}; 9 | 10 | Map get getWishlistItems { 11 | return _wishlistItems; 12 | } 13 | 14 | // void addRemoveProductToWishlist({required String productId}) { 15 | // if (_wishlistItems.containsKey(productId)) { 16 | // removeOneItem(productId); 17 | // } else { 18 | // _wishlistItems.putIfAbsent( 19 | // productId, 20 | // () => WishlistModel( 21 | // id: DateTime.now().toString(), productId: productId)); 22 | // } 23 | // notifyListeners(); 24 | // } 25 | 26 | final userCollection = FirebaseFirestore.instance.collection('users'); 27 | 28 | Future fetchWishlist() async { 29 | final User? user = authInstance.currentUser; 30 | final DocumentSnapshot userDoc = await userCollection.doc(user!.uid).get(); 31 | if (userDoc == null) { 32 | return; 33 | } 34 | final leng = userDoc.get('userWish').length; 35 | for (int i = 0; i < leng; i++) { 36 | _wishlistItems.putIfAbsent( 37 | userDoc.get('userWish')[i]['productId'], 38 | () => WishlistModel( 39 | id: userDoc.get('userWish')[i]['wishlistId'], 40 | productId: userDoc.get('userWish')[i]['productId'], 41 | )); 42 | } 43 | notifyListeners(); 44 | } 45 | 46 | Future removeOneItem({ 47 | required String wishlistId, 48 | required String productId, 49 | }) async { 50 | final User? user = authInstance.currentUser; 51 | await userCollection.doc(user!.uid).update({ 52 | 'userWish': FieldValue.arrayRemove([ 53 | { 54 | 'wishlistId': wishlistId, 55 | 'productId': productId, 56 | } 57 | ]) 58 | }); 59 | _wishlistItems.remove(productId); 60 | await fetchWishlist(); 61 | notifyListeners(); 62 | } 63 | 64 | Future clearOnlineWishlist() async { 65 | final User? user = authInstance.currentUser; 66 | await userCollection.doc(user!.uid).update({ 67 | 'userWish': [], 68 | }); 69 | _wishlistItems.clear(); 70 | notifyListeners(); 71 | } 72 | 73 | void clearLocalWishlist() { 74 | _wishlistItems.clear(); 75 | notifyListeners(); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /grocery_shop_app/lib/fetch_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_auth/firebase_auth.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_spinkit/flutter_spinkit.dart'; 4 | import 'package:grocery_shop_app/consts/firebase_const.dart'; 5 | import 'package:grocery_shop_app/providers/cart_provider.dart'; 6 | import 'package:grocery_shop_app/providers/orders_provider.dart'; 7 | import 'package:grocery_shop_app/providers/wishlist_provider.dart'; 8 | import 'package:grocery_shop_app/screens/btm_bar.dart'; 9 | import 'package:provider/provider.dart'; 10 | 11 | import 'providers/products_provider.dart'; 12 | 13 | class FetchScreen extends StatefulWidget { 14 | const FetchScreen({Key? key}) : super(key: key); 15 | 16 | @override 17 | State createState() => _FetchScreenState(); 18 | } 19 | 20 | class _FetchScreenState extends State { 21 | @override 22 | void initState() { 23 | Future.delayed(const Duration(microseconds: 5), () async { 24 | final productsProvider = 25 | Provider.of(context, listen: false); 26 | final cartProvider = Provider.of(context, listen: false); 27 | final wishListProvider = 28 | Provider.of(context, listen: false); 29 | final orderProvider = Provider.of(context, listen: false); 30 | final User? user = authInstance.currentUser; 31 | if (user == null) { 32 | await productsProvider.fetchProducts(); 33 | cartProvider.clearLocalCart(); 34 | wishListProvider.clearLocalWishlist(); 35 | orderProvider.clearLocalOrder(); 36 | } else { 37 | await productsProvider.fetchProducts(); 38 | await cartProvider.fetchCart(); 39 | await wishListProvider.fetchWishlist(); 40 | await orderProvider.fetchOrders(); 41 | } 42 | Navigator.of(context).pushReplacement(MaterialPageRoute( 43 | builder: (ctx) => const BottomBarScreen(), 44 | )); 45 | }); 46 | super.initState(); 47 | } 48 | 49 | @override 50 | Widget build(BuildContext context) { 51 | return Scaffold( 52 | body: Stack( 53 | children: [ 54 | Image.asset( 55 | 'assets/images/landing/buyfood.jpg', 56 | fit: BoxFit.cover, 57 | height: double.infinity, 58 | ), 59 | Container( 60 | color: Colors.black.withOpacity(0.7), 61 | ), 62 | const Center( 63 | child: SpinKitFadingFour( 64 | color: Colors.white, 65 | ), 66 | ) 67 | ], 68 | ), 69 | ); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /grocery_admin_panel/lib/widgets/grid_products.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:firebase_core/firebase_core.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:grocery_admin_panel/services/utils.dart'; 5 | 6 | import '../consts/constants.dart'; 7 | import 'products_widget.dart'; 8 | import 'text_widget.dart'; 9 | 10 | class ProductGridWidget extends StatelessWidget { 11 | const ProductGridWidget( 12 | {Key? key, 13 | this.crossAxisCount = 4, 14 | this.childAspectRatio = 1, 15 | this.isInMain = true}) 16 | : super(key: key); 17 | final int crossAxisCount; 18 | final double childAspectRatio; 19 | final bool isInMain; 20 | @override 21 | Widget build(BuildContext context) { 22 | final Color color = Utils(context).color; 23 | return StreamBuilder( 24 | //there was a null error just add those lines 25 | stream: FirebaseFirestore.instance.collection('products').snapshots(), 26 | 27 | builder: (context, snapshot) { 28 | if (snapshot.connectionState == ConnectionState.waiting) { 29 | return const Center( 30 | child: CircularProgressIndicator(), 31 | ); 32 | } else if (snapshot.connectionState == ConnectionState.active) { 33 | if (snapshot.data!.docs.isNotEmpty) { 34 | return GridView.builder( 35 | physics: const NeverScrollableScrollPhysics(), 36 | shrinkWrap: true, 37 | itemCount: isInMain && snapshot.data!.docs.length > 4 38 | ? 4 39 | : snapshot.data!.docs.length, 40 | gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( 41 | crossAxisCount: crossAxisCount, 42 | childAspectRatio: childAspectRatio, 43 | crossAxisSpacing: defaultPadding, 44 | mainAxisSpacing: defaultPadding, 45 | ), 46 | itemBuilder: (context, index) { 47 | return ProductWidget( 48 | id: snapshot.data!.docs[index]['id'], 49 | ); 50 | }); 51 | } else { 52 | return const Center( 53 | child: Padding( 54 | padding: EdgeInsets.all(18.0), 55 | child: Text('Your store is empty'), 56 | ), 57 | ); 58 | } 59 | } 60 | return const Center( 61 | child: Text( 62 | 'Something went wrong', 63 | style: TextStyle(fontWeight: FontWeight.bold, fontSize: 30), 64 | ), 65 | ); 66 | }, 67 | ); 68 | } 69 | } 70 | --------------------------------------------------------------------------------