A CLI tool to create and customize Flutter projects with a clean code folder structure
Project description
Flutter SmartStart
Flutter SmartStart is a CLI tool to create and customize Flutter projects with a clean code folder structure. It helps you quickly set up a new Flutter project with a standardized and maintainable architecture.
Features
- Interactive prompts for project name, package name, and package version
- Automatically adds specified packages to
pubspec.yaml
- Creates a README.md file with project information
- Ensures a clean and organized code structure
Installation
You can install Flutter SmartStart using pip
:
pip install flutter-smartstart
Usage
Create a New Flutter Project
Run the flutter-smartstart cp
command and follow the prompts to create a new Flutter project:
flutter-smartstart cp
You will be prompted to enter the project name:
Project name please ? : my_flutter_app
After providing the input, Flutter SmartStart will create the Flutter project and set up the initial folder structure.
Add Folder Structure to Existing Project
Run the flutter-smartstart afs
command and follow the prompts to add a clean code folder structure to an existing Flutter project:
flutter-smartstart afs
You will be prompted to enter the project name and the feature name:
Project name please ? : my_flutter_app
Feature name please ? : user_authentication
After providing the inputs, Flutter SmartStart will add the specified folder structure to the project.
Add a Package to an Existing Project
Run the flutter-smartstart apkg
command and follow the prompts to add a package to an existing Flutter project:
flutter-smartstart apkg
You will be prompted to enter the project name and the package name:
Project name please ? : my_flutter_app
Package name please ? : provider
After providing the inputs, Flutter SmartStart will add the specified package to the project's pubspec.yaml
.
Project Structure
The generated Flutter project will have the following structure:
my_flutter_app/
├── android/
├── ios/
├── lib/
│ ├── core/
│ │ ├── connection/
│ │ ├── constants/
│ │ ├── errors/
│ ├── config/
│ │ ├── routes/
│ │ ├── themes/
│ ├── features/
│ │ ├── feature_name/
│ │ │ ├── data/
│ │ │ │ ├── datasources/
│ │ │ │ ├── models/
│ │ │ │ ├── repositories/
│ │ │ ├── domain/
│ │ │ │ ├── entities/
│ │ │ │ ├── repositories/
│ │ │ │ ├── usecases/
│ │ │ ├── presentation/
│ │ │ │ ├── pages/
│ │ │ │ ├── widgets/
│ │ │ │ ├── providers/
│ ├── main.dart
├── assets/
│ ├── images/
│ ├── fonts/
├── test/
├── pubspec.yaml
├── README.md
└── ...
Contact
If you have any questions or feedback, feel free to open an issue or reach out to the project maintainer:
Name: Kapil Bhandari
Email: iam.bkpl03@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file flutter_smartstart-0.11.tar.gz
.
File metadata
- Download URL: flutter_smartstart-0.11.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba0dbdc49c776c5c0a8c4c455849787846eb697fe8d419c2d939ddac611fa3b5 |
|
MD5 | 1294fadbceef3d2480c012d1edaa650c |
|
BLAKE2b-256 | af6a03d3903e0faec0fd6cf0df42a0eaf92d555170767b003bf765d419832e03 |