flutter_spark 1.0.5 copy "flutter_spark: ^1.0.5" to clipboard
flutter_spark: ^1.0.5 copied to clipboard

A Simple CLI to generate folder architecture for your flutter project.

Spark #

Flutter App Folder Structure Generator #

This tool helps you create a decent folder structure for your Flutter app and manage assets.

Installation #

Ensure you have Dart SDK installed on your machine. then run the following command.

dart pub global activate flutter_spark

Usage #

Once the tool is installed, you can use it to create a Flutter app with a predefined folder structure and manage assets.

Creating a New Flutter App #

To create a new Flutter app with the predefined folder structure, run:

spark create myapp

image

This command will create the app with a predefined folder structure..!!

Creating folder structure in build app #

spark init folders

image

This will create a basic folder structure for you app.

image

Managing Assets #

The tool provides commands to manage assets in your project.

Get All Assets

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.

image

Adding Assets

To add assets to your project, simply place them inside the assets folder. The tool will automatically include them in your Flutter app.

image

image

Feature Management #

The tool provides commands to manage features in your project.

Creating a New Feature

To create folder structure for a new feature, run:

spark -a MyFeature
OR
spark --add_feature MyFeature

Replace MyFeature with the name of your new feature.

image

Removing an Existing Feature #

To remove folder structure of an existing feature, run:

spark -r MyFeature

OR

spark --remove_feature MyFeature

Replace MyFeature with the name of the feature you want to remove.

image

Routing Management #

The tool provides commands to manage routing in your project.

Managing Routing

To create files and folder structure for routing, run:

spark init routes

image

This command will create necessary files and folder structure for managing routing in your Flutter app.

image

Contributing #

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on GitHub.

Suggestions #

If you have any suggestions or feature requests for this tool, please feel free to open an issue on GitHub.

9
likes
160
points
29
downloads

Publisher

verified publisherpudv95.me

Weekly Downloads

A Simple CLI to generate folder architecture for your flutter project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, path

More

Packages that depend on flutter_spark