基于 Flutter 开发的植物养护类应用,集植物识别、养护管理、社区交流、电商购物于一体,为用户提供全方位的植物养护服务。
截图待补充,建议将截图文件放入
assets/images/目录
flowchart TB
subgraph Entry["Entry"]
Guide["Guide Pages\nguide_pages.dart"]
Main["Main Shell\nshell_page.dart"]
end
subgraph Auth["Auth Module"]
Login["Login\nlogin_page.dart"]
Register["Register\nregister_page.dart"]
ForgotPwd["Forgot Password\nforgot_password_page.dart"]
end
subgraph HomeModule["Home Module"]
Home["Home Main\nhome_main_page.dart"]
TabMyPlants["Tab My Plants\ntab_my_plants_page.dart"]
TabCareRecords["Tab Care Records\ntab_care_records_page.dart"]
TabEncyclopedia["Tab Encyclopedia\ntab_encyclopedia_page.dart"]
MyPlantsList["Plants List\nplants_list_page.dart"]
PlantDetail["Plant Detail\nplants_detail_page.dart"]
AddPlant["Add Plant\nplants_add_page.dart"]
RecordList["Record List\nrecord_list_page.dart"]
RecordDetail["Record Detail\nrecord_detail_page.dart"]
EncyclopediaDetail["Encyclopedia Detail\nencyclopedia_detail_page.dart"]
end
subgraph IdentifyModule["Identify Module"]
Identify["Identify Main\nidentify_main_page.dart"]
IdentifyScan["Identify Scan\nidentify_scan_page.dart"]
IdentifyResult["Identify Result\nidentify_result_page.dart"]
IdentifyHistory["Identify History\nidentify_history_page.dart"]
end
subgraph CommunityModule["Community Module"]
Community["Community Main\ncommunity_main_page.dart"]
Post["Community Post\ncommunity_post_page.dart"]
UserProfile["User Profile\nuser_profile_page.dart"]
end
subgraph ShopModule["Shop Module"]
Shop["Shop Main\nshop_main_page.dart"]
ProductDetail["Product Detail\nproduct_detail_page.dart"]
Cart["Cart\ncart_page.dart"]
Checkout["Checkout\ncheckout_page.dart"]
AddressList["Address List\naddress_list_page.dart"]
OrderList["Order List\norder_list_page.dart"]
OrderDetail["Order Detail\norder_detail_page.dart"]
Tracking["Tracking\ntracking_page.dart"]
PaymentSuccess["Payment Success\npayment_success_page.dart"]
PaymentFail["Payment Fail\npayment_fail_page.dart"]
end
subgraph ProfileModule["Profile Module"]
Profile["Profile\nprofile_main_page.dart"]
Settings["Settings\nsettings_page.dart"]
Favorites["Favorites\nfavorites_page.dart"]
MessageCenter["Message Center\nmessage_center_page.dart"]
Chat["Chat\nchat_page.dart"]
Achievements["Achievements\nachievements_page.dart"]
WateringHistory["Watering History\nwatering_history_page.dart"]
end
subgraph ToolPages["Tool Pages"]
Search["Search\nsearch_page.dart"]
SearchResult["Search Result\nsearch_result_page.dart"]
DataManagement["Data Management\ndata_management_page.dart"]
ImageAnalysis["Image Analysis\nimage_analysis_page.dart"]
EmptyState["Empty State\nempty_state_page.dart"]
Placeholder["Placeholder\nplaceholder_pages.dart"]
end
Guide --> Main
Main --> Home
Main --> Identify
Main --> Community
Main --> Shop
Main --> Profile
Profile -.not logged in.-> Login
Shop -.not logged in.-> Login
Community -.not logged in.-> Login
Login --> Register
Login --> ForgotPwd
Home --> TabMyPlants
Home --> TabCareRecords
Home --> TabEncyclopedia
TabMyPlants --> MyPlantsList
MyPlantsList --> PlantDetail
PlantDetail --> AddPlant
TabCareRecords --> RecordList
RecordList --> RecordDetail
TabEncyclopedia --> EncyclopediaDetail
Identify --> IdentifyScan
Identify --> IdentifyHistory
IdentifyScan --> IdentifyResult
IdentifyResult --> EncyclopediaDetail
Community --> Post
Community --> UserProfile
Shop --> ProductDetail
ProductDetail --> Cart
Cart --> Checkout
Checkout --> AddressList
Checkout --> PaymentSuccess
Checkout --> PaymentFail
Shop --> OrderList
OrderList --> OrderDetail
OrderDetail --> Tracking
Shop --> Cart
Profile --> Settings
Profile --> Favorites
Profile --> MessageCenter
Profile --> Achievements
Profile --> WateringHistory
MessageCenter --> Chat
Profile --> Login
Home --> Search
Shop --> Search
Community --> Search
Search --> SearchResult
Identify --> ImageAnalysis
Profile --> DataManagement
classDef mainModule fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
classDef authModule fill:#fff3e0,stroke:#ff9800,stroke-width:2px
classDef shopModule fill:#fce4ec,stroke:#e91e63,stroke-width:2px
classDef identifyModule fill:#e3f2fd,stroke:#2196f3,stroke-width:2px
classDef communityModule fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px
classDef profileModule fill:#e0f2f1,stroke:#009688,stroke-width:2px
classDef toolModule fill:#f5f5f5,stroke:#757575,stroke-width:2px
class Home,TabMyPlants,TabCareRecords,TabEncyclopedia,MyPlantsList,PlantDetail,AddPlant,RecordList,RecordDetail,EncyclopediaDetail mainModule
class Login,Register,ForgotPwd authModule
class Shop,ProductDetail,Cart,Checkout,AddressList,OrderList,OrderDetail,Tracking,PaymentSuccess,PaymentFail shopModule
class Identify,IdentifyResult,IdentifyHistory identifyModule
class Community,Post,UserProfile communityModule
class Profile,Settings,Favorites,MessageCenter,Chat,Achievements,WateringHistory profileModule
class Search,SearchResult,DataManagement,ImageAnalysis,EmptyState,Placeholder toolModule
| 模块 | 页面 | 文件路径 |
|---|---|---|
| 入口 | 引导页 | lib/views/welcome/guide_pages.dart |
| 主页面 | lib/views/shell_page.dart |
|
| 认证 | 登录页 | lib/views/profile/auth/login_page.dart |
| 注册页 | lib/views/profile/auth/register_page.dart |
|
| 忘记密码 | lib/views/profile/auth/forgot_password_page.dart |
|
| 首页 | 首页 | lib/views/home/home_main_page.dart |
| 我的植物标签 | lib/views/home/tab_my_plants_page.dart |
|
| 养护记录标签 | lib/views/home/tab_care_records_page.dart |
|
| 植物百科标签 | lib/views/home/tab_encyclopedia_page.dart |
|
| 植物列表 | lib/views/home/my_plants/plants_list_page.dart |
|
| 植物详情 | lib/views/home/my_plants/plants_detail_page.dart |
|
| 添加植物 | lib/views/home/my_plants/plants_add_page.dart |
|
| 记录列表 | lib/views/home/care_record/record_list_page.dart |
|
| 记录详情 | lib/views/home/care_record/record_detail_page.dart |
|
| 百科详情 | lib/views/home/plant_encyclopedia/encyclopedia_detail_page.dart |
|
| 识别 | 识别首页 | lib/views/identify/identify_main_page.dart |
| 相机扫描 | lib/views/identify/identify_scan_page.dart |
|
| 识别结果 | lib/views/identify/identify_result_page.dart |
|
| 识别历史 | lib/views/identify/identify_history_page.dart |
|
| 社区 | 社区首页 | lib/views/community/community_main_page.dart |
| 帖子详情 | lib/views/community/community_post_detail_page.dart |
|
| 发布帖子 | lib/views/community/community_post_page.dart |
|
| 用户主页 | lib/views/community/user_profile_page.dart |
|
| 帖子卡片 | lib/widgets/community_post_card.dart |
|
| 商城 | 商城首页 | lib/views/shop/shop_main_page.dart |
| 商品详情 | lib/views/shop/product_detail_page.dart |
|
| 购物车 | lib/views/shop/cart_page.dart |
|
| 确认订单 | lib/views/shop/checkout_page.dart |
|
| 收货地址 | lib/views/profile/address/address_list_page.dart |
|
| 订单列表 | lib/views/shop/order_list_page.dart |
|
| 订单详情 | lib/views/shop/order_detail_page.dart |
|
| 物流跟踪 | lib/views/shop/tracking_page.dart |
|
| 支付成功 | lib/views/shop/payment_success_page.dart |
|
| 支付失败 | lib/views/shop/payment_fail_page.dart |
|
| 个人中心 | 个人中心 | lib/views/profile/profile_main_page.dart |
| 设置 | lib/views/profile/settings/settings_page.dart |
|
| 我的收藏 | lib/views/profile/favorites/favorites_page.dart |
|
| 消息中心 | lib/views/profile/messages/message_center_page.dart |
|
| 客服聊天 | lib/views/profile/messages/chat_page.dart |
|
| 成就徽章 | lib/views/profile/achievements/achievements_page.dart |
|
| 浇水记录 | lib/views/watering_history_page.dart |
|
| 工具 | 搜索页 | lib/views/tools/search_page.dart |
| 搜索结果 | lib/views/tools/search_result_page.dart |
|
| 数据管理 | lib/views/tools/data_management_page.dart |
|
| 图像分析 | lib/views/tools/image_analysis_page.dart |
|
| 空状态 | lib/views/tools/empty_state_page.dart |
|
| 占位页面 | lib/views/tools/placeholder_pages.dart |
| 技术 | 说明 |
|---|---|
| Flutter | UI 框架 (3.41.5+) |
| Dart | 编程语言 (3.11.3+) |
| Material Design 3 | 设计系统 |
| SQLite | 本地数据库 |
| Shared Preferences | 本地存储 |
dependencies:
camera: ^0.12.0+1
flutter_local_notifications: ^21.0.0
intl: ^0.20.2
permission_handler: ^12.0.1
sqflite: ^2.4.2
# ... 其他依赖- 项目架构搭建
- 主题系统实现
- 路由系统实现
- 启动页与引导页
- 登录注册模块
- 首页与识别功能
- 社区模块
- 商城模块(左右分栏布局)
- 个人中心模块
- 植物养护模块
- 识别历史功能
- 相机扫描功能(实时预览、拍照、切换摄像头)
- 相册选择功能
- 搜索功能
- 商城筛选功能(热卖/新品/限时)
- AI 模型配置(设置页面)
- 示例数据分离(datas 文件夹)
- API 接口对接
- 真实数据联调
- 性能优化
MIT License
Made with 💚 for Plant Lovers