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 Satellite? How Does It Work?

  How Does It Work? Table of Contents What is a Satellite? Anatomy of a satellite How does a satellite communicate? Bandwidth and Transmission Suggested Reading Satellites communicate by exchanging electromagnetic waves, either on the Earth’s surface or in space, hovering above a pole or orbiting us everyday. Communication doesn’t necessarily have to occur in the Radio spectrum. Your TV remote communicates with its set top box with infrared waves, while phones communicate with microwaves. Google Earth provides you the opportunity to visit any place on Earth, yet what do most people do? Look at their own house. In fact, Google Earth doesn’t just show you high-resolution pictures; like Scrooge on one of his ghosts, you are practically tossed there, as you can witness walking pedestrians and live traffic! But how does Google Earth achieve this feat? With satellites! What is a Satellite? The word satellite doesn’t necessarily describe a mechanical box floating through space with...

For Sale: Established Tech Blog with 200k+ Views

Are you looking for a prime opportunity to own a successful tech blog? We are offering our well-established blog, which focuses on cutting-edge AI technologies and innovative startups. Here’s why this could be your next great investment: Why This Blog? Impressive Traffic : With over 200k views, this blog has built a substantial and engaged audience. Focused Niche : Specializes in AI and tech startups, making it a valuable resource for tech enthusiasts and professionals. Current Revenue : Currently earning from a sponsored post, showcasing its potential to generate income. Growth Potential : Significant opportunities for increased revenue through additional ads, sponsorships, and expanded content. Key Features Established Platform : A reliable and respected blog with a loyal readership. Content Quality : High-quality, relevant content that attracts and retains readers. Revenue Opportunities : Room for growth in monetization through diversified advertising and sponsorship strategies. Wha...

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 S...