## 背景
「我」页面原有三个并排的预种按钮(预种购买 / 预种明细 / 团队预种),
三等分宽度导致文字拥挤,视觉层级也不清晰。
## 改动内容
### 新增文件
- `pre_planting_hub_page.dart`
预种计划 Hub 汇总页,竖排展示三个功能入口卡片:
· 预种购买(金色)→ /pre-planting/purchase
· 预种明细(棕色)→ /pre-planting/position
· 团队预种(绿色)→ /pre-planting/team
页面为纯导航页,无需加载数据;风格与 pre_planting_purchase_page
一致(渐变背景、金色「← 返回」Header、Inter 字体)。
### 修改文件
- `route_paths.dart` / `route_names.dart`
新增路由常量 prePlantingHub = '/pre-planting/hub'
- `app_router.dart`
注册 GoRoute(path: prePlantingHub) → PrePlantingHubPage
新增对应 import
- `profile_page.dart`
· 删除 `_buildPrePlantingButtons()`(三按钮并排 Widget)
· 删除已无用的三个导航方法:
_goToPrePlantingPurchase / _goToPrePlantingPosition / _goToTeamPrePlanting
· 新增 `_buildPrePlantingEntryButton()`:
满宽 48px 按钮,文字「申请预种计划」,点击跳转 Hub 页
· 布局调用处改为 _buildPrePlantingEntryButton()
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| .claude | ||
| android | ||
| assets | ||
| docs | ||
| ios | ||
| lib | ||
| linux | ||
| macos | ||
| scripts | ||
| test | ||
| web | ||
| windows | ||
| .gitignore | ||
| .metadata | ||
| CLAUDE.md | ||
| README.MD | ||
| analysis_options.yaml | ||
| flutter_android_update_guide.md | ||
| flutter_telemetry_solution.md | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| quickly.lottie | ||
| stickman.lottie | ||
README.MD
Create Flutter Framework
C:\Users\ph\Desktop\app>flutter create --org com.rwadurian rwa_android_app
Creating project rwa_android_app...
Resolving dependencies in `rwa_android_app`... (3.7s)
Downloading packages...
Got dependencies in `rwa_android_app`.
Wrote 130 files.
All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev
In order to run your application, type:
$ cd rwa_android_app
$ flutter run
Your application code is in rwa_android_app\lib\main.dart.
rwa_android_app
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.