Flutter project creation in Android studio & Command Prompt. Container Widget

Опубликовано: 23 Октябрь 2024
на канале: Mahesh IT Solutions
444
9

we can create the flutter project in Android studio

1. if you don't have android studio please install from this link
https://developer.android.com/

2. after install the android studio please open form search

3. Click new- Flutter project - set the SDK path - fill the information of the project

4. click on Create



we can create the flutter project in command prompt

1. Open the command prompt and select the project saved location (D/flutter practice)
2. flutter create project name
3. enter this command

After creation of the project open the project in VS code

1. Open the vs code
2. click on open folder
3. choose the project from saved location


Run the project in Vs code

1. Click on Terminal on the top of the vs code and select new terminal
2. type the flutter run command to run the project (flutter run -d chrome)



Container:

A container class can be used to store the widget

Child: Container widget has a property 'child' which stores it children.
The child can any widget(button, row, column..)

Margin: The margin is used to create an empty space around the container.

padding: The padding is used to give space from the border of the container form it's children

Decoration: The decoration property is used to decorate the box