stacked_cli 1.0.0 copy "stacked_cli: ^1.0.0" to clipboard
stacked_cli: ^1.0.0 copied to clipboard

outdated

A Command Line Tool for Flutter Projects.

Stacked CLI #

Note: This tool is only applicable to stacked / MVVM architecture project by FilledStack Stacked Architecture

Get Started #

  1. Make sure you have dart sdk installed in your pc.

    install dark SDK

    and add environment variable your path

     PATH_TO_FLUTTER_SDK/bin/cache/dart-sdk/bin 
    
  2. Clone this repo.

    git clone https://github.com/Huzaifaahmed20/stacked_cli.git
    
  3. Install dependencies:

    cd stacked_cli && pub get
    
  4. Add alias for quick access.

    alias generate_stacked_view='dart PATH-TO-CLONED_DIR/bin/main.dart $1 $2' 
    

Usage #

How to add view: #

use this alias in your stacked architecture project.

    $ generate_stacked_view view name-in-small-words

For example:

    $ generate_stacked_view view login

It will generate some files and folders (if not exist) in your lib folder with some starting code.

How to add service: #

    $ generate_stacked_view service firestore

it will generate services folder and service file in it and it also injects that service in your app