This tool helps you create a decent folder structure for your Flutter app and manage assets.
Ensure you have Dart SDK installed on your machine. then run the following command.
dart pub global activate flutter_spark
Once the tool is installed, you can use it to create a Flutter app with a predefined folder structure and manage assets.
To create a new Flutter app with the predefined folder structure, run:
spark create myapp
This command will create the app with a predefined folder structure..!!
spark init folders
This will create a basic folder structure for you app.
The tool provides commands to manage assets in your project.
To create a class for all the Icons and Images in the assets directory, run:
spark init assets
This command will generate a Dart class with constants for each asset folder.
To add assets to your project, simply place them inside the assets
folder. The tool will automatically include them in your Flutter app.
The tool provides commands to manage features in your project.
To create folder structure for a new feature, run:
spark -a MyFeature
spark --add_feature MyFeature
Replace MyFeature
with the name of your new feature.
To remove folder structure of an existing feature, run:
spark -r MyFeature
spark --remove_feature MyFeature
Replace MyFeature
with the name of the feature you want to remove.
The tool provides commands to manage routing in your project.
To create files and folder structure for routing, run:
spark init routes
This command will create necessary files and folder structure for managing routing in your Flutter app.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on GitHub.
If you have any suggestions or feature requests for this tool, please feel free to open an issue on GitHub.