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 fstart cp command and follow the prompts to create a new Flutter project:

fstart 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 fstart afs command and follow the prompts to add a clean code folder structure to an existing Flutter project:

fstart 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 fstart apkg command and follow the prompts to add a package to an existing Flutter project:

fstart 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
└── ...


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.13.tar.gz (5.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: flutter_smartstart-0.13.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.13.tar.gz
Algorithm Hash digest
SHA256 f3f643d10910387c4270820158ca35640af0f4a0c7c66cdcc2b28eac1e3600b5
MD5 daba96355ec47c9d6a70ec0454fc46b5
BLAKE2b-256 cc88c77a0df14d61611790b01339abf2c27d98415fa76ee33c59216c6d3b2fb5

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