Flutter is an awesome framework for develop native iOS and Android app from a single code.
Let's get start the flutter development ( You are familiar with command line interface )-
Flutter installation:
- First of all, You need to download Flutter SDK for your system.
- Choose your operating system and download it in your directory.
- Set $PATH variable by directory of your flutter library in your environment variable (On Windows) and in .bash_profile (ON Mac & Linux).
- After setting $PATH, your terminal is ready to execute flutter commands.
- 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 )-
- $ flutter create awesome_app
- $ cd awesome_app
- $ flutter devices
- $ 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.
Now you can change in main.dart file according to your requirement.
Comments
Post a Comment