flutter_japanese_restaurant_app

Japanese restaurant app 是由 gandkurniawan 设计的 日式餐厅应用 的设计实现。

GetX | Cubit

有两种不同的实现:1:GetX 版本,2:Cubit 版本 • 您可以从 master 分支 访问 Getx 版本 (此处) • 您可以从 cubit 分支 访问 Cubit 版本 (此处)

截图 (浅色模式)

预览 主屏幕 食物详情页 购物车页

截图 (深色模式)

收藏页 主屏幕 食物详情页 购物车页

? 特点

• Dynamically change between light and dark theme
• Bottom navigation animation when switch from one screen to another
• Fade animation for food items in detail screen and list views
• Delete single food item from cart by swipe item to right side
• Automatically delete single item from cart by set its value to zero
• Increase or Decrease quantity for each food item in cart screen
• Display food list on the food list screen
• Display Detail of each food on food detail screen
• Real-time calculation of total price in the cart screen
• Add desired food to the favorite screen
• Select quantity for each item on detail screen
• Filter foods by category
• State management with GetX | Cubit

目录结构 (GetX 版本)

?lib
 │───main.dart  
 │───?core  
 |   │──app_asset.dart
 |   │──app_color.dart
 |   │──app_data.dart
 |   │──app_icon.dart
 |   │──app_style.dart
 |   │──app_theme.dart
 |   └──app_extension.dart
 └───?src
     │────?model
     │    │──bottom_navigation_item.dart
     |    │──food.dart
     |    └──food_category.dart
     └────?view
     |    │───?screen
     |    |   |──cart_screen.dart
     |    |   |──favorite_screen.dart
     |    |   |──food_detail_screen.dart
     |    |   |──food_list_screen.dart
     |    |   |──home_screen.dart
     |    |   └──profile_screen.dart
     |    │───?widget
     │    |   |──counter_button.dart
     │    |   |──custom_page_route.dart
     │    |   |──empty_widget.dart
     │    |   |──fade_animation.dart
     │    |   |──food_list_view.dart
     │    |   |──page_transition.dart
     |    |   └──scale_animation.dart
     └────?controller
          └──food_controller.dart

目录结构 (Cubit 版本)

?lib
 │───main.dart  
 │───?core  
 |   │──app_asset.dart
 |   │──app_color.dart
 |   │──app_data.dart
 |   │──app_icon.dart
 |   │──app_style.dart
 |   │──app_theme.dart
 |   └──app_extension.dart
 └───?src
     │────?data
     │    └───?model
     │        │──bottom_navigation_item.dart
     │        │──food.dart
     │        └──food_category.dart
     └────?presentation
     |    │───?screen
     |    |   |──cart_screen.dart
     |    |   |──favorite_screen.dart
     |    |   |──food_detail_screen.dart
     |    |   |──food_list_screen.dart
     |    |   |──home_screen.dart
     |    |   └──profile_screen.dart
     |    │───?widget
     │    |   |──counter_button.dart
     │    |   |──custom_page_route.dart
     │    |   |──empty_widget.dart
     │    |   |──fade_animation.dart
     |    |   └──food_list_view.dart
     │    │───?animation
     │    |   |──page_transition.dart
     │    |   └──scale_animation.dart
     └────?business_logic
          └───?cubits
              │───?food
              │   |──food_cubit.dart
              │   └──food_state.dart
              └───?category
              │    |──category_cubit.dart
              │    └──category_state.dart
              └───?theme
                   |──theme_cubit.dart
                   └──theme_state.dart

Pull Requests

我欢迎并鼓励所有拉取请求。我通常会在 48-72 小时内回复任何问题或请求。

依赖项

名称 Cubit 版本 GetX 版本
flutter_bloc ✔️ ✖️
GetX ✖️ ✔️
flutter_hooks ✔️ ✖️
equatable ✔️ ✖️
font_awesome_flutter ✔️ ✔️
badges ✔️ ✔️
animations ✔️ ✔️
simple_animations ✔️ ✔️

创建和维护者

SinaSys

我的其他 flutter 项目

项目
办公家具店应用
电商应用

GitHub

查看 Github