Skip to content

codewithmashi/Flutter-Structure-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Flutter Structure Generator

πŸš€ A simple Dart script to automatically create a modular GetX architecture folder structure for your Flutter apps.

This tool helps you scaffold a clean, scalable folder setup in seconds β€” perfect for teams, side projects, or solo devs who love clean code!


✨ Features

  • βœ… GetX-ready architecture
  • βœ… Modular file and folder setup
  • βœ… Predefined folders for services, models, widgets, and more
  • βœ… Automatically creates boilerplate files like main.dart, app_routes.dart, etc.
  • βœ… Organizes features into clear modules

πŸ“¦ Folder Structure

lib/
β”œβ”€β”€ main.dart
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ bindings/
β”‚   β”œβ”€β”€ controllers/
β”‚   β”œβ”€β”€ data/
β”‚   β”‚   β”œβ”€β”€ models/
β”‚   β”‚   └── services/
β”‚   β”œβ”€β”€ modules/
β”‚   β”œβ”€β”€ routes/
β”‚   └── themes/
└── shared/
    β”œβ”€β”€ widgets/
    └── utils/

πŸ› οΈ How to Use

Run it directly from GitHub without downloading

  1. Open your terminal and run the following command to fetch the script directly from GitHub:

    Invoke-WebRequest -Uri https://raw.githubusercontent.com/codewithmashi/Flutter-Structure-Generator/main/flutter_structure_generator/bin/generate_structure.dart -OutFile generate_structure.dart

    Or, if you're using wget:

    wget https://github.com/codewithmashi/Flutter-Structure-Generator/tree/main/flutter_structure_generator/bin/generate_structure.dart
  2. Run the script using Dart (Make sure you're inside the root of your Flutter project):

    dart run generate_structure.dart

    βœ… The script will automatically generate the folder structure in your current Flutter project directory.


πŸ“Ž Requirements

  • Dart SDK installed
  • A Flutter project (or a directory where you want the structure generated)

πŸ“‚ Example Files Created

  • main.dart β€” Entry point
  • supabase_service.dart, stripe_service.dart, groq_service.dart
  • app_routes.dart, app_pages.dart
  • app_theme.dart, text_styles.dart

🀝 Contributing

Contributions are welcome!
If you'd like to improve or extend this tool, feel free to:

  • Open an issue
  • Create a pull request
  • Fork the repo and add cool features!

πŸ‘¨β€πŸ’» Author

Made with ❀️ by @codewithmashi


πŸ“œ License

This project is open-source and available under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages