Flutter is an open-source UI toolkit created by Google that allows developers to build mobile, web, and desktop applications from a single codebase. It uses Dart as its programming language and employs a hybrid approach combining both native and web development techniques. In Flutter, everything that appears on the screen is represented as a Widget, whether visible or invisible, and widgets can be either stateless or stateful depending on whether their appearance changes over time in response to events.
What is Flutter? ● Flutter is an open-source UI software development kit created by Google. ● It is used to develop applications for Android, iOS, Windows, Mac, Linux, Google Fuchsia and the web. ● Flutter uses Dart language.
So what isFlutter ? ● Flutter uses hybrid approach ● Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.
What are Widgetsin Flutter? Everything in flutter consist of Widgets including but not limited to, visible Screen(s), text(s), Button(s), Material Design(s), Application Bar(s) as well as invisible Container(s) and Layout(s)
Stateless Widget We createa Stateless widget by extending our class from StatelessWidget and a bare minimum implementation shall look like
23.
Stateless Widget areimmutable once drawn ● The build(...) function of the StateLessWidget is called only ONCE and no amount of changes in any Variable(s), Value(s) or Event(s) can call it again. ● To redraw the StatelessWidget, we need to create a new instance of the Widget.