Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 1.11 KB

readme.md

File metadata and controls

16 lines (10 loc) · 1.11 KB

QP Flutter CLI

This is just a CLI that clones my flutter template for me to use when trying to build any flutter app. I was struggling with always trying to scaffold a flutter project setting up all I need in the project which mostly eats up my productive time

So I decided to build this CLI using Go Lang to always clone the repo that I have already setup and made public. It clones it and run the flutter pub get command to make sure the project is just ready for me to start building apps or anything with flutter instead of trying to setup my folder structure.

To run this if you want to use this code for your flutter template:

Simple steps

  1. go build -o qp_flutter
  2. mv qp_flutter /usr/local/bin/
  3. qp_flutter create test_app -p com.example.app

You can change qp_flutter to what you want, the second step is for moving the build into your local bin folder, this is for Mac OS as of the moment

The last step there is for creating the flutter app with my template that uses Bloc and Cubit as State Management. You will be given a Counter App page that uses Cubit and not SetState