Search packages, repositories and app categories

Package detailsv1.0.1

project_structure_generator

Project structure generator

AndroidiOSWebmacOSWindowsLinux
30-day downloads
9
Likes
1
Pub points
125

Install package

flutter pub add project_structure_generator

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that automates the creation of organized project structures, helping developers set up consistent and scalable directory layouts across multiple platforms. It supports Android, iOS, Web, macOS, Windows, and Linux, ensuring uniformity in code organization. The generator simplifies onboarding for new team members and reduces setup time by providing predefined templates. It integrates seamlessly with Flutter's pub system via a simple command-line addition.

Use cases

  • Rapid project initialization
  • Team-wide code standardization
  • Cross-platform development setup
  • Onboarding new developers
  • Maintaining consistent project layouts

Key features

  • Template-based structure generation
  • Multi-platform support
  • Easy CLI integration
  • Customizable directory templates
  • Automated folder creation

Suitable for

  • Flutter teams
  • New Flutter projects
  • Large-scale applications
  • Development workflow automation
  • Agile development environments

Considerations

  • Requires manual template configuration
  • May conflict with existing files
  • Limited to directory structure only
  • Not suitable for complex build logic
  • Depends on correct initial setup

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

If you want to convert folders to .json file, for example

flutter pub run project_structure_generator:from_folders -root lib/ -output lib/output.json

-root - root dir

-output - output dir for .json file

If you want to convert json to folders, for example

flutter pub run project_structure_generator:to_folders -json lib/structure.json -output lib/

-output - output dir

-json - input json dir

See folder_structure.json in root path of project for example

Here is example json:

{
  "name": "project_lib",
  "type": "directory",
  "children": [
    {
      "name": "core",
      "type": "directory",
      "children": [
        {
          "name": "file.txt",
          "type": "file"
        },
        {
          "name": "file2.txt",
          "type": "file"
        }
      ]
    }
  ]
}

Will be generated

Alt Text

Categories

Source repository

Projects using this package

No data available yet.