Lecture 5
Lecture 5
1
STEPS
Set Up the Development Environment
Widgets
Gestures
Concept of State
Layers
20XX Pitch deck title 6
WIDGETS
The core concept of the Flutter framework is In Flutter, Everything is a widget.
Widgets are basically user interface components used to create the user interface of the
application.
The application is the top- level widget and its UI is build using one or more children
(widgets), which again build using its children widgets.
20XX Pitch deck title 7
This is where the properties of the UI and the application itself is set.
The Material App has a Scaffold widget that consists of the visible
components (widgets) of the application.
The Scaffold has two primary properties namely the body and appbar.
It holds all the child widgets and this is where all its properties are defined
20XX Pitch deck title 8
20XX Pitch deck title 9
IMPORTANT POINTS
•MyApp is the user created widget and it is build using the Flutter native
widget, MaterialApp.
•MaterialApp has a home property to specify the user interface of the home page, which is
again a user created widget, MyHomePage.
•body is used to specify its main user interface and appBar is used to specify its header
user interface
•Header UI is build using flutter native widget, AppBar and Body UI is build
using Center widget.
•The Center widget has a property, Child, which refers the actual content and it is build
20XX Pitch deck title 10
using Text widget.
Description of the widgets used are as follows
This is similar to reactjs and StatefulWidget will be auto re- rendered whenever its internal
state is changed.
The re-rendering is optimized by finding the difference between old and new widget UI and
rendering only the necessary changes
The next layer is Rendering layer, which is low level renderer component and renders
everything in the flutter app.