Flutter Intro 1
Flutter Intro 1
5) It provides
support for
4) It provides messaging
many services(SMS
3) There are a interesting and MMS), web
1)It is 2) Anyone can lot of mobile features like browser,
open- customize applications weather details, storage
the Android that can be opening screen, (SQLite),
source. Platform. chosen by the live RSS (Really connectivity
consumer. Simple (GSM, CDMA,
Syndication) Blue Tooth, Wi-Fi
feeds etc. etc.), media,
handset layout
etc.
Open Handset Alliance
What is Open Handset Alliance (OHA)?
It's a consortium of 84 companies such as google, Samsung, AKM, synaptic,
KDDI, Garmin, Teleca, EBay, Intel etc.
Designing apps for both Android and IOS with a single code base is an
extremely important feature for developers.
This may be the biggest difference between Java and Flutter.
Java only supports Android development whereas Flutter needs a single
code base for both Android and IOS.
Development speed
Developing apps with Flutter can bring you more results in less time than in
Java.
Not only because Flutter is cross-platform but is also widget-based, having a
lot of UI components already pre-build.
Resources and documentation
Because Flutter is around mobile development for around 3 years, the
documentation and resources available on the internet cannot be compared
with Java.
As a result, if you have a problem or an unusual bug in your program it is
more likely to find some relevant information on the internet when
programming in Java than Flutter.
Conclusion
In the end, if you think about developing a mobile application, it is best to
choose what suits you best.
Flutter offers cross-platform support and faster development time whereas
Java is the safe option for its strong documentation and experience.
There are many ways to develop an app, but what’s most important is to
bring something good with the help of these technologies, no matter what
you choose
Flutter
• iOS
• Web
• and Desktop
Dart Programming language
Why Flutter for App Development
1. Open Source 2. Faster development Cycle 3. Super Productive
Flutter is Open-Source Flutter is so fast that it takes Comes with Hot-Reload &
framework less then 30 sec for first full Hot-Restart.
Therefore, anyone can use it compilation.
for any given purpose. Due to Stateful widget hot-
Comes with Hot-Reload & reload feature Flutter is very
Hot-Restart. fast iterative coding style.
Why Flutter for App Development
4. Ease to learn & code sharing 5. Widget Libraries 6. Community Support
Any one who have basic Ready to use widget, Flutter Flutter Community is bit
knowledge of OOPS & UI have many widget that you small if we compare with
Designing can easily learn can use to build flutter other framework like React.
Flutter. application.
But Flutter is grow very fast
Such as : http, get, share then other framework.
plus, toggle switch etc.
Apps that are build using Flutter
Stadia
Dream 11 eBay Google Pay
gaming platform.
Feature of Flutter
Cross Platform App Development.
Easy access to Native Features.
Minimal Coding.
Fast Development
Hot Reload & Hot Restart
THANK YOU
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.
In Flutter, the application is itself a widget.
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.
This composability feature helps us to create a user interface of any
complexity. For example, the widget hierarchy of the hello world application
(created in previous chapter) is as specified in the following diagram:
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.
MyHomePage is build using another flutter native widget, Scaffold.
Scaffold has two properties – body and appBar.
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 using Text widget.
Flutter Container
The container in Flutter is a parent widget that can contain
multiple child widgets and manage them efficiently through
width, height, padding, background color, etc.
It is a widget that combines common painting, positioning, and
sizing of the child widgets.
It is also a class to store one or more widgets and position them
on the screen according to our needs. Generally, it is similar to a
box for storing contents.
It allows many attributes to the user for decorating its child
widgets, such as using margin, which separates the container
with other contents..
A container widget is same as <div> tag in
html. If this widget does not contain any child
widget, it will fill the whole area on the screen
automatically. Otherwise, it will wrap the child
widget according to the specified height &
width.
It is to note that this widget cannot render
directly without any parent widget. We can use
Scaffold widget, Center widget, Padding widget,
Row widget, or Column widget as its parent
widget.
Why we need a container widget in Flutter?