新增静态演示界面

This commit is contained in:
2026-07-21 17:41:01 +08:00
parent 030b11fe67
commit b9d7c9f2ee
23 changed files with 4215 additions and 144 deletions
+20 -45
View File
@@ -1,60 +1,35 @@
# Patbond Flutter
Patbond is a Flutter learning project. The current goal is to build the basic app frame for a social content app with a layout similar to Xiaohongshu.
Patbond Flutter 版本,迁移自原 React 前端原型。项目不依赖 Gemini Key 或后端服务,可运行在 Android、iOS、Web 和桌面平台。
## Current Progress
## 功能
- Flutter project initialized.
- App entry extracted into `lib/app/app.dart`.
- Main shell page created with a bottom navigation bar.
- Home page connected as the first tab.
- Basic project notes added under `doc/`.
- 社区动态搜索、点赞、收藏与评论
- 模拟 AI 图片/视频创作和社区发布
- 宠物资料、疫苗记录及健康档案管理
- 医院、美容和个人服务搜索、筛选与模拟预约
- 使用 `shared_preferences` 持久化宠物、疫苗和帖子数据
## Project Structure
AI 创作、预约、账号和部分菜单目前仍为本地演示交互。
```text
lib/
main.dart
app/
app.dart
features/
home/
home_page.dart
main/
main_shell_page.dart
doc/
android_development.md
common_app_structure.md
main_app_const.md
project_structure.md
```
## Run The App
Install dependencies:
## 运行
```bash
flutter pub get
```
Run in debug mode:
```bash
flutter run
```
Or open the project in VS Code, select a device, and press `F5`.
Web 调试:
## Development Plan
```bash
flutter run -d chrome
```
Near-term steps:
## 验证
1. Replace placeholder tabs with real feature pages.
2. Build a basic home feed page.
3. Add note card models and mock data.
4. Add theme configuration.
5. Add detail pages and navigation when the main frame is stable.
## Git Notes
Generated files such as `.dart_tool/`, `build/`, IDE workspace files, and local platform configuration should not be committed.
```bash
dart format --set-exit-if-changed lib test
flutter analyze
flutter test
flutter build apk --debug
```