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

插件详情v0.3.0

feature_folder_cli

CLI 工具,可生成文件夹结构,以减少设置模型、服务、仓库、屏幕和组件所需重复的工作。

AndroidiOSmacOSWindowsLinux
近 30 天下载
76
喜欢数
42
Pub 分数
160

安装插件

flutter pub add feature_folder_cli

插件介绍

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

一个 Flutter CLI 工具,可自动创建用于常见应用组件(如模型、服务、仓库、屏幕和小部件)的有序文件夹结构。通过运行一个简单命令,开发人员可以快速生成一致的项目框架,减少重复的设置任务并促进代码组织。该工具与平台无关,支持 Android、iOS、macOS、Windows 和 Linux。它可通过 pub.dev 无缝集成到 Flutter 项目中。

适合场景

  • 快速项目初始化
  • 标准化团队文件夹结构
  • 减少手动目录创建
  • 简化功能开发
  • 保持项目布局的一致性

主要特点

  • 自动文件夹生成
  • 对多个Flutter组件的支持
  • 跨平台兼容性
  • 简单的 CLI 集成
  • 可配置的结构模板

适合对象

  • Flutter 初学者
  • 基于团队的 Flutter 项目
  • 大规模应用开发
  • 敏捷开发工作流程
  • 需要严格组织的项目

使用建议

  • 需要 Dart/Flutter SDK
  • 可能需要针对特定项目需求进行定制
  • 不适用于非命令行界面工作流
  • 仅限文件夹结构
  • 依赖外部包的更新

原始 README

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

Folder by Feature CLI Utility :open_file_folder:

A Dart CLI tool that generates the folder structure for the folder-by-feature pattern. This tool helps to reduce the repetitive work required to setup directories for models, services, repositories, screens and widgets.

The folder structure generated by the cli is as follows:

feature/
┣ domain/
┃ ┣ models/
┃ ┣ repository/
┃ ┣ services/
┃ ┗ index.dart
┣ screens/
┃ ┣ feature_screen.dart
┃ ┗ index.dart
┣ widgets/
┃ ┣ feature_component.dart
┃ ┗ index.dart
┣ providers/
┃ ┣ feature_provider.dart
┃ ┗ index.dart
┗ index.dart

Command Usage :wrench:

Make sure you are in the root of your project

ff generate -n <feature_name> -t <type> -p <path>

Currently supporting only the simple and getx types

所属分类

依赖

依赖清单 4 项

源码仓库

使用此插件的项目

暂无相关数据。