Aman-Malhotra / ProviderModelFlutterScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ProviderModel and Widget files and link automatically in Flutter Projects

Steps to use the script :

Step 1. Navigate to your Flutter project's root folder inside terminal.

Step 2. Execute this command in the terminal

source <(curl -s https://providermodelflutterscript.web.app/)

Step 3. You'll be asked if you are in your Flutter Project's root directory.

1.If you didn't skip Step 1 and you are inside your project root directory.

Enter 'y' (Without quotes) and press Enter

Skip to Step 4.

  1. If you skipped Step 1 and you are not inside your project root directory.

Enter 'n' (Without quotes) and press Enter

You'll be asked to paste your project location

<enter_project_location_here> and press Enter

When you have given your project location we can move forward with setting things up.

Step 4. You'll be asked to enter the name of widget you want to create depending on your app. Eg - signUp, signIn, dashboard, landingPage, profilePage, homeWidget, paymentPortal, etc.. It is not a necessity, but try using lowerCamelCasing while naming your widgets.

Name - signIn

Step 5. You'll be given 2 options to choose from

  1. StatelessWidget(Default)
  2. StatefulWidget

Enter your option

1

Step 6. You'll be asked if you want to continue adding widgets or not.

  1. If you want to continue Enter y. Repeat steps from Step 4.
  2. If you want to exit Enter n. You'll be exited from the program.

Contribution

Any new suggestions are welcome as to how can this be taken forward and what more features can be put in to add even more ease to user while developing with such an amazing SDK. Looking forward to suggestions and you can open an issue if there are any.

Pull Requests with new feature(s) or bug fixes are always welcome.

About


Languages

Language:Shell 100.0%