. How to setup Flutter starter app Skip to main content

How to setup Flutter starter app

 Flutter is an awesome framework for develop native iOS and Android app from a single code.

Flutter installation: 

  1. First of all, You need to download Flutter SDK for your system.
  2. Choose your operating system and download it in your directory.
  3. Set $PATH variable by directory of your flutter library in your environment variable (On Windows) and in .bash_profile (ON Mac & Linux).
  4. After setting $PATH,  your terminal is ready to execute flutter commands.
  5. Follow the simple steps to setup and enjoy your Flutter.

 Create First APP:


       Let's get start the flutter development ( You are familiar with command line interface )-
  1. $ flutter create awesome_app
  2. $ cd awesome_app
  3. $ flutter devices
  4. $ flutter run
   

Description of above commands :

$ flutter create awesome_app

  • When you execute this command this will create a new folder in your current directory with awesome_app name.
  •  Install all required development files for android and iOS app.
  • Create main.dart file in lib folder. This is the main file to load the app in your simulator.

    $ cd awesome_app

  •  Insert into the app directory.
  • After app creation, rest all commands will execute in this directory.

   $ flutter devices

  • You will need a device (Virtual OR Physical) to run your app.
  • This command will show all available devices for your app.

   $ flutter run

  • This is your final commands for your starter app.
  • When you will execute this commands your app will run in your device.
Flutter Starter app


Now you can change in main.dart file according to your requirement.

Comments