搜索插件、代码仓与 APP 分类

插件详情v0.0.7

clean_architecture_scaffold

一个可根据干净架构创建文件夹的包。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
99
喜欢数
10
Pub 分数
160

安装插件

flutter pub add clean_architecture_scaffold

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 包,可自动按照清洁架构原则创建项目文件夹。它帮助开发者通过为表现层、领域层和数据层等结构化目录组织代码库,从而提高可维护性和可扩展性。该包旨在通过在多个平台上生成一致的文件夹结构来简化初始项目设置。它支持所有主要的 Flutter 平台,并可通过 pub add 命令轻松集成。

适合场景

  • 初始项目设置,采用干净架构
  • 强制执行一致的文件夹结构
  • 改进大型项目中的团队协作
  • 自动化样板目录创建
  • 支持可扩展的应用开发

主要特点

  • 生成干净架构文件夹结构
  • 跨平台支持(Android、iOS、Web、macOS、Windows、Linux)
  • 通过 flutter pub add 实现简单的 CLI 集成
  • 可扩展以进行自定义配置
  • 所需配置最少

适合对象

  • Flutter 团队采用干净架构
  • 寻求有组织项目结构的开发人员
  • 需要长期可维护性的项目
  • 新 Flutter 项目,旨在遵循最佳实践
  • 正在开发大规模应用的团队

使用建议

  • 不生成代码文件,仅生成文件夹
  • 需要手动实现业务逻辑
  • 在不修改源代码的情况下,自定义功能有限
  • 在早期开发阶段使用效果最佳
  • 不适用于未经重构的现有项目

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Clean Architecture Scaffold for Flutter

Easily scaffold folders based on the Clean Architecture in your Flutter project with this package. Reduce boilerplate and ensure consistent directory structure across your features.

Features

  • Automatically generate a standardized folder structure for Clean Architecture.
  • Reduce the repetitive task of creating folders manually.
  • Ensure consistency across different features or modules.

Installation

Add the package to your pubspec.yaml:

dependencies:
  clean_architecture_scaffold: ^0.0.7

Usage

Use the command after installation to generate the folder structure for your feature:

dart run clean_architecture_scaffold:main -f FEATURE_NAME

This reduces boilerplate code and ensures you have the correct directory structure set up for implementing features using Clean Architecture.

Contributing

We welcome contributions to clean_architecture_scaffold! If you have a feature suggestion, bug report, or wish to contribute code:

  1. Check out our repository: clean_architecture_scaffold.
  2. Create a new pull request or open an issue.

Thank you for supporting and using clean_architecture_scaffold!

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。