Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flutter_smartstart-0.10.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file flutter_smartstart-0.10.tar.gz.

File metadata

  • Download URL: flutter_smartstart-0.10.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for flutter_smartstart-0.10.tar.gz
Algorithm Hash digest
SHA256 eff57a6c523e4e4cb44efffc09d8e5439deae09e3208eb54cbbdc91e53ce8549
MD5 54dabfbdc25b6675a463008b5918fbc6
BLAKE2b-256 f6ac549a330df88cb2f7cb327fce1f889d1d1a8c4c0624be6656357ab054edb9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page