Skip to content
/ Spark Public

An CLI to create folder structure in flutter applications

License

Notifications You must be signed in to change notification settings

Pudv95/Spark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An CLI to create folder structure in flutter applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages