Skip to main content

What is flutter ?


Flutter is Google’s portable UI toolkit for building beautiful, natively-compiled applications for mobileweb, and desktop from a single codebase.

What is Flutter?

Flutter is a mobile app SDK for building high-performance, high-fidelity, apps for iOS and Android, from a single codebase.

The goal is to enable developers to deliver high-performance apps that feel natural on different platforms. We embrace differences in scrolling behaviors, typography, icons, and more.

No mobile development experience is required to get started. Apps are written in Dart, which looks familiar if you’ve used a language like Java or JavaScript. Experience with object-oriented languages is definitely helpful, but even non-programmers have made Flutter apps!

Why use Flutter?
Here are some advantages of Flutter:

Core principles
Flutter includes a modern react-style framework, a 2D rendering engine, ready-made widgets, and development tools. These components work together to help you design, build, test, and debug apps. Everything is organized around a few core principles.

Everything’s a Widget
Widgets are the basic building blocks of a Flutter app’s user interface. Each widget is an immutable declaration of part of the user interface. Unlike other frameworks that separate views, view controllers, layouts, and other properties, Flutter has a consistent, unified object model: the widget.

A widget can define:

Widgets form a hierarchy based on composition. Each widget nests inside, and inherits properties from, its parent. There is no separate “application” object. Instead, the root widget serves this role.

You can respond to events, like user interaction, by telling the framework to replace a widget in the hierarchy with another widget. The framework then compares the new and old widgets and efficiently updates the user interface.

Building widgets
You define the unique characteristics of a widget by implementing a build function that returns a tree (or hierarchy) of widgets. This tree represents the widget’s part of the user interface in more concrete terms. For example, a toolbar widget might have a build function that returns a horizontal layout of some text and various buttons. The framework then recursively asks each of these widgets to build until the process bottoms out in fully concrete widgets, which the framework then stitches together into a tree.

Handling user interaction
If the unique characteristics of a widget need to change based on user interaction or other factors, that widget is stateful. For example, if a widget has a counter that increments whenever the user taps a button, the value of the counter is the state for that widget. When that value changes, the widget needs to be rebuilt to update the UI.

Comments

Popular posts from this blog

What is PHP?

  PHP is an open-source, server-side programming language that can be used to create websites, applications, customer relationship management systems and more. It is a widely-used general-purpose language that can be embedded into  HTML . This functionality with HTML means that the PHP language has remained popular with developers as it helps to simplify HTML code. What does PHP stand for? PHP stands for ‘PHP: Hypertext Preprocessor’, with the original PHP within this standing for ‘Personal Home Page’. The acronym has changed as the language developed since its launch in 1994 to more accurately reflect its nature.  Since its release, there have been 8 versions of PHP, as of 2022, with version 8.1 currently a popular choice among those using the language on their websites. What is PHP used for?  PHP programming can be used to create most things that a software developer needs. However, there are three main areas in which it thrives. Server-side scripting Server-side Script is PHP’s main

"5G Technology: What It Is and What It Means for the Future of Connectivity"

  5G technology is the latest breakthrough in wireless network technology, promising faster speeds, lower latency, and greater capacity than ever before. It is set to revolutionize the way we connect and communicate, enabling the seamless integration of devices and data into our daily lives. So what exactly is 5G technology? In simple terms, 5G is the fifth generation of wireless network technology. It is designed to operate on a higher frequency spectrum than its predecessors, which allows it to transmit more data at faster speeds with lower latency. 5G technology is expected to be up to 100 times faster than current 4G technology, enabling lightning-fast downloads, smooth streaming, and responsive gaming. The advantages of 5G technology extend beyond just faster speeds. The lower latency of 5G technology means that devices can communicate with each other almost instantly, which is essential for applications such as autonomous vehicles or remote surgery. 5G technology also has the pot

What Is a Database?

  Before we learn about a database, let us understand – What is Data? In simple words, data can be facts related to any object in consideration. For example, your name, age, height, weight, etc. are some data related to you. A picture, image, file, pdf, etc. can also be considered data. What is Database? A database is a systematic collection of data. They support electronic storage and manipulation of data. Databases make data management easy. Let us discuss a database example: An online telephone directory uses a database to store data of people, phone numbers, and other contact details. Your electricity service provider uses a database to manage billing, client-related issues, handle fault data, etc. Let us also consider Facebook. It needs to store, manipulate, and present data related to members, their friends, member activities, messages, advertisements, and a lot more. We can provide a countless number of examples for the usage of databases. Types of Databases Here are some popula