# template_modular **Repository Path**: flu-cli/template_modular ## Basic Information - **Project Name**: template_modular - **Description**: flu-cli Modular 模板 - 模块化 MVVM 架构 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-17 - **Last Updated**: 2026-01-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Flu Template Modular 模块化 Flutter MVVM 项目模板,适合中型项目和团队协作。 ## 🚀 快速开始 ### 方式一:VSCode 插件(推荐) 1. 安装 [Flu Helper](https://marketplace.visualstudio.com/items?itemName=psvmc.flu-helper) 插件 2. 按 `Cmd+Shift+P`(Mac)或 `Ctrl+Shift+P`(Windows) 3. 输入 `Flu: New Project` 4. 选择 Modular 模板 ### 方式二:命令行工具 ```bash flu-cli new my_app -t modular cd my_app flutter run ``` ### 方式三:直接克隆模板 ```bash git clone https://gitee.com/psvmc/template-modular.git my_app cd my_app dart scripts/init.dart # 可选,添加网络层 flutter pub get flutter run ``` ## 📦 项目结构 ``` lib/ ├── core/ # 基础设施层 │ ├── base/ # MVVM 基础组件 │ ├── constants/ # 常量 │ ├── router/ # 路由 │ └── theme/ # 主题 ├── features/ # 功能模块 │ ├── home/ │ │ ├── models/ │ │ ├── pages/ │ │ ├── services/ │ │ ├── viewmodels/ │ │ └── widgets/ │ └── user/ ├── shared/ # 共享组件 │ ├── components/ │ ├── utils/ │ └── widgets/ └── main.dart ``` ## 🔧 可选功能 运行 `dart scripts/init.dart` 可添加: - ✅ 网络请求层(HttpUtil + Dio) - ✅ 本地存储(StorageUtil) - ✅ 应用配置(AppConfig) ## 📄 License MIT