.exe
file to complete the installation. During installation, make sure that you have selected the recommended option.My Computer -> properties -> advanced tab -> environment variables
.path -> click on edit
.New
> write path of Flutter bin folder in variable value click ok.flutter doctor
command. This command checks for all the requirements of Flutter app development and displays a report of the status of your Flutter installation.Next -> Finish
. Once the Finish button is clicked, you need to choose the Don't import Settings
option and click OK
. It will start the Android Studio.Android Studio -> Tools -> Android -> AVD Manager
and select Create Virtual Device
. Or, go to Help -> Find Action -> Type Emulator in the search box
Next
.File -> Settings -> Plugins
.Flutter plugin
. If found, select Flutter plugin and click install
. When you click on install, it will ask you to install Dart plugin, click yes to proceed.$ export PATH="$PATH:pwd/flutter/bin"
source ~/.bashrc source $HOME/.bash_profile echo $PATH
flutter doctor
command. This command checks for all the requirements of Flutter app development and displays a report of the status of your Flutter installation.Flutter Engine:
Foundation Library:
Widgets:
File -> New -> New Flutter Project
.Flutter Application -> click Next
<path to flutter SDK>
<path to project folder>
Run->Run main.dart
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'My Flutter App',
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(“This is my First Flutter App”),
),
body: Center(
child: Text('Namastey World !',),
),
);
}
}
Run -> Run main.dart
.idea
:
android
:
ios
:
lib
:
main.dart
, which is the entry file of the Flutter application.test
:
We can also have some default files in the Flutter application. These files are:
.gitignore
:
.metadata
:
.packages
:
my_app.iml
:
pubspec.lock
:
.yaml
file. It holds more detail setup about all dependencies.pubspec.yaml
:
README.md
:
Flutter applications can benefit from a layered architecture, which separates concerns and promotes code maintainability.
Presentation Layer (UI):
Application layer (Business Logic):
Domain Layer (Models & Rules):
Data Layer (Persistence):
Made By SOU Student for SOU Students