flutter_project_structure 1.0.0 flutter_project_structure: ^1.0.0 copied to clipboard
A package to showcase project structure and add path comments to Flutter/Dart files.
Flutter Project Structure #
A Dart package to showcase the current structure of your Flutter project and add path comments at the top of each Dart file.
Features #
- Generate a markdown file detailing your project's structure
- Add path comments to the top of each Dart file in your project
- List imports for each file in the project structure
- Support for custom root directories and output file names
- Command-line interface for easy project structure generation
Installation #
Add this to your package's pubspec.yaml
file:
dependencies:
flutter_project_structure: ^1.0.0
Then run:
flutter pub get
Usage #
You can use this package as a command-line tool to generate your project structure.
Basic Usage #
To generate the project structure with default settings:
dart run flutter_project_structure
This will analyze the lib
directory and generate a project_structure.md
file in your project root.
Custom Usage #
You can specify custom root directories and output file names:
dart run flutter_project_structure --root-dir=src --output=custom_structure.md
This will analyze the src
directory and output the structure to custom_structure.md
.
Options #
--root-dir
or-r
: Specify the root directory to analyze (default: 'lib')--output
or-o
: Specify the output file name (default: 'project_structure.md')--help
or-h
: Show the help message
Programmatic Usage #
You can also use this package programmatically in your Dart code:
import 'package:flutter_project_structure/flutter_project_structure.dart';
void main() {
final projectStructure = FlutterProjectStructure(rootDir: 'lib', outputFile: 'project_structure.md');
projectStructure.generate();
}
Example #
Check the example
folder for a complete example of how to use this package programmatically.
To run the example:
dart run example/main.dart
Contributing #
Contributions are welcome! Please feel free to submit a Pull Request.
License #
This project is licensed under the MIT License - see the LICENSE file for details.
Support the Project #
If you find this package helpful, consider supporting the it by liking it in pub.dev
Connect with Me #
Feel free to reach out for questions, suggestions, or just to say hi!
- LinkedIn: LinkedIn Profile
- GitHub: GitHub Profile
Hire Me or Contact My Organization #
For freelance work or larger projects:
- Upwork Individual Profile: Individual Profile
- Upwork Agency: Agency Profile
For large scale developments or to discuss potential collaborations, please reach out via email at: im.msishamim@gmail.com
Success Stories #
I'm proud to have contributed to the success of various projects. Here's one of my highlights:
Abwaab.com #
Abwaab is one of the top EdTech platforms in the MENA region. I played a crucial role in developing robust and scalable solutions that helped Abwaab achieve its mission of making high-quality education accessible to millions of students.
Thank you for checking out Flutter Project Structure! We hope it proves useful in your development workflow.