π 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!
- β 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
lib/
βββ main.dart
βββ app/
β βββ bindings/
β βββ controllers/
β βββ data/
β β βββ models/
β β βββ services/
β βββ modules/
β βββ routes/
β βββ themes/
βββ shared/
βββ widgets/
βββ utils/-
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
-
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.
- Dart SDK installed
- A Flutter project (or a directory where you want the structure generated)
main.dartβ Entry pointsupabase_service.dart,stripe_service.dart,groq_service.dartapp_routes.dart,app_pages.dartapp_theme.dart,text_styles.dart
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!
Made with β€οΈ by @codewithmashi
This project is open-source and available under the MIT License.