• Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
Saturday, September 12, 2026
No Result
View All Result
Subscribe Now
  • Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA

    ‘Matrix’ Director Lilly Wachowski Accuses ‘Harry Potter’ Fans of ‘Supporting Trans Genocide,’ Praises ‘Ally’ Christopher Nolan

    Nolan McLean’s rare clunker sinks Mets in Subway Series loss

    How schools teach 9/11 to students born after the attacks, 25 years on

    Lawsuit claims DHS is systematically intimidating ICE observers : NPR

    Teen rescued after Alaska fishing boat capsizes, 2 other boaters found dead

    Cops Are Using Flock to Spy on People for the Crime of Standing Around

    Trump bans Canadian products from U.S government contracts

    What we forget when we remember 9/11

    Canada’s retaliatory tariffs set to hit US products as Trump warns of escalation

  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
The Insight Post
  • Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA

    ‘Matrix’ Director Lilly Wachowski Accuses ‘Harry Potter’ Fans of ‘Supporting Trans Genocide,’ Praises ‘Ally’ Christopher Nolan

    Nolan McLean’s rare clunker sinks Mets in Subway Series loss

    How schools teach 9/11 to students born after the attacks, 25 years on

    Lawsuit claims DHS is systematically intimidating ICE observers : NPR

    Teen rescued after Alaska fishing boat capsizes, 2 other boaters found dead

    Cops Are Using Flock to Spy on People for the Crime of Standing Around

    Trump bans Canadian products from U.S government contracts

    What we forget when we remember 9/11

    Canada’s retaliatory tariffs set to hit US products as Trump warns of escalation

  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
No Result
View All Result
No Result
View All Result
Home Tech

What is Flutter? Mobile app development for Android, iOS, and more

by Theinsightpost
July 4, 2022
in Tech
0 0
0
What is Flutter? Mobile app development for Android, iOS, and more


There was a time when you had to choose between creating universal mobile apps and native apps. Universal apps used web technologies like HTML and JavaScript, which often performed badly in mobile devices. Native apps performed better because they were written separately for each platform you wanted to support, but they were expensive and required a specialized development team for each platform.

Flutter, an open source framework developed by Google, changed that. Today, developers have more options for creating fast mobile apps that run on multiple platforms, including Ionic, React Native, and Xamarin. Flutter and its built-in programming language, Dart, remain popular and widely used.

Flutter 3, released earlier this year, adds support for macOS and Linux desktop apps, in addition to the original Android, iOS, web, and Windows targets. The release also includes performance improvements to fix noticeable UI pauses.

Multiplatform development with Flutter 3

Flutter is an open source framework developed by Google that lets you build natively compiled, multiplatform applications from a single codebase. Flutter 3 supports six platform targets: Android, iOS, Windows, macOS, Linux, and web applications.

Flutter widgets are built using a modern framework inspired by React. As shown in Figure 1 below, the most used widgets and layouts are text widgets, Flexbox row and column layouts, stack absolute positioning layouts, positioned widgets, and container widgets.

Let’s say that you are building a multiplatform application that starts with the Flutter MaterialApp widget. This widget builds various other useful widgets at the root of your application, including a navigator. The navigator manages a stack of widgets identified by strings, also known as routes in Flutter. The navigator lets you transition smoothly between application screens.

To create an iOS-centric design, see the Cupertino components package. The Flutter team recommends only using the Cupertino components on iOS-only apps; for multiplatform apps, consider using another set of widgets; for example, the Material Design set.

The first three screenshots below show stateless widgets, gesture handling, and stateful widgets. It’s worthwhile to go through the entire Flutter development tutorial, starting with the widgets intro we’ve started here. It’s also worth trying the DartPad samples and viewing the Flutter gallery, as well as trying the Flutter codelabs.

Beyond widgets and layouts, Flutter has navigation and routing, animations, actions and intents, shortcuts, state management, networking and HTTP, JSON serialization, and Firebase integration.

Figure 1 shows a Flutter Material widget example using DartPad in a web browser. The Dart code is to the left and the web display is to the right.

flutter fig1 IDG

Figure 1. A Flutter Material widget example using DartPad.

Figure 2 shows an example of gesture handling in Flutter. The onTap method of the stateless GestureDetector widget attached to the Engage button fires when the button is pressed.

flutter fig2 IDG

Figure 2. Flutter gesture handling example.

Figure 3 is an example of a stateful widget. Pressing the Increment ElevatedButton widget triggers its onPressed method, which calls the private function _increment. That calls setState() to tell Flutter that something has changed, and increments the _counter variable. Then, the framework calls the build() method to redraw the button and text.

flutter fig3 IDG

Figure 3. A stateful widget example.

Flutter and Dart

Flutter is powered by Dart, a language optimized for fast apps on any platform. Dart looks rather like Java, Kotlin, Swift, and TypeScript (see Figure 4 for a comparison). If you understand any object-oriented language, you’ll be able to pick up Dart quickly. It’s worth going through at least the Dart tour.

A very basic Dart program might be:


// Define a function.
void printInteger(int aNumber) {
  print('The number is $aNumber.'); // Print to console.
}

// This is where the app starts executing.
void main() {
  var number = 42; // Declare and initialize a variable.
  printInteger(number); // Call a function.
}

Dart is strongly typed, but type annotations are optional because Dart can infer types. The preferred style is to use var and type inference for local variables, and strong typing for functions and public variables. Unlike Java, Dart doesn’t have the keywords public, protected, and private. If an identifier starts with an underscore (_), it’s private to its library.

Dart can compile to ARM and x64 machine code for mobile, desktop, and back end applications, as well as to JavaScript for the web. In debug mode, Dart lets you hot-load running apps after you save changes to the source code. Dart has both JIT (just-in-time) and AOT (ahead-of-time) compilers.

Dart has optional null safety. If your minimum SDK constraint (in your application’s pubspec.yaml file) is at least 2.12.0, then you have opted into null safety. In that case, only variables with a type followed by a question mark (e.g., “int?") are allowed to contain nulls.

flutter fig4 IDG

Figure 4. Dart compared to Kotlin, Swift, and TypeScript.

Flutter 3 features and upgrades

In a blog post, Tim Sneath, Google’s product manager for Flutter and Dart, summarized new features in Flutter 3, noting that “Flutter 3 completes our roadmap from a mobile-centric to a multiplatform framework.”

Flutter 3 expands available platform targets to include macOS and Linux desktop app support, fully integrates Flutter with Firebase, adds native development support for Apple Silicon, and includes numerous productivity and performance features.

Flutter Showcase and Flutter Gallery

The Flutter Showcase is essentially a collection of case studies about production apps built with Flutter. It’s most useful to managers considering Flutter.

The Flutter Gallery holds a collection of widgets, behaviors, and vignettes that demonstrate what Flutter does and how it behaves, and is most useful to developers and designers. You can view the Gallery on the web or run it locally on any of the supported platforms using the Flutter gallery repository.

Installing Flutter

You can install Flutter on Windows, macOS, Linux, or Chrome OS. Exactly how you install depends on the system. You have a choice of downloading a system-specific .zip file or tarball and unpacking it, or cloning the repository. Then, you’ll need to add the flutter tool to your path and run flutter doctor. I’ve shown the output of flutter doctor below.


Running "flutter pub get" in flutter_tools...                       5.1s
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.1, on Mac OS X 10.15.7 19H1922 darwin-x64,
    locale en-US)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from:
      https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK
      components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup
      for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[!] Xcode - develop for iOS and macOS (Xcode 12.4)
    ✗ Flutter requires Xcode 13 or higher.
      Download the latest version or update via the Mac App Store.
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install see
      https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.1)
[✓] VS Code (version 1.67.1)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

You can see in the output that my Intel MacBook Pro is too old to support the minimum version of Xcode required for iOS and macOS flutter development. The Flutter team needs Xcode 13 to create universal Intel/M1 macOS binaries. I can develop for Android by installing the Android SDK toolchain, and I can already develop for the web. Adding the Flutter plugin to Visual Studio Code took less than a minute. If I ever get serious about developing multiplatform applications with Flutter, I will need to upgrade at least one of my Macs.

Conclusion

Flutter 3 is an interesting benchmark, offering stability on six platforms while continuing to focus on performance improvements. For developers who need to create multiplatform apps, now might be a good time to consider Flutter.

Copyright © 2022 IDG Communications, Inc.



Source link

ShareTweetSend
Previous Post

Heavy rains and floods prompt Sydney evacuations

Next Post

Ranking the top 22 returning Big Ten football players

Related News

Tech

More than half of AI job postings seek skills beyond job titles, research finds

September 12, 2026
Tech

Blood of the Dawnwalker brings a gripping story to the vampiric formula

September 12, 2026
Tech

AI Finally Takes Over The iPhone

September 11, 2026
Tech

Digital Research’s GEM opens a new window on Linux

September 11, 2026
Next Post
Ranking the top 22 returning Big Ten football players

Ranking the top 22 returning Big Ten football players

Discussion about this post

Subscribe To Our Newsletters

    Customer Support


    1251 Wilcrest Drive
    Houston, Texas
    77042 USA
    Call-832.795.1420
    e-mail – news@theinsightpost.com

    Subscribe To Our Newsletters

      Categories

      • Africa
      • Africa-East
      • African Sports
      • American Sports
      • Arts
      • Asia
      • Australia
      • Business
      • Business Asia
      • Business- Africa
      • Canada
      • Defense
      • Education
      • Egypt
      • Energy
      • Entertainment
      • Europe
      • European Soccer
      • Finance
      • Germany
      • Ghana
      • Health
      • Insight
      • International
      • Investing
      • Japan
      • Latest Headlines
      • Life & Living
      • Markets
      • Mobile
      • Movies
      • New Zealand
      • Nigeria
      • Politics
      • Scholarships
      • Science
      • South Africa
      • South America
      • Sports
      • Tech
      • Travel
      • UK
      • USA
      • Weather
      • World
      No Result
      View All Result

      Recent News

      Clubfestival in Hamburg: Branche kämpft um Geld – 21. Reeperbahn-Festival startet

      September 12, 2026

      Yes, Flock is letting “others” watch kids in private locations… heavily.

      September 12, 2026

      StarCraft Is Returning, but as an Open-World Shooter

      September 12, 2026

      OOHMAA Creative Awards return with refreshed format

      September 12, 2026
      • Home
      • Advertise With Us
      • About Us
      • Corporate
      • Consumer Rewards
      • Forum
      • Privacy Policy
      • Social Trends

      Theinsightpost ©2026 | All Rights Reserved. Theinsightpost is an Elnegy LLC company, registered in Texas, USA

      Welcome Back!

      Login to your account below

      Forgotten Password?

      Retrieve your password

      Please enter your username or email address to reset your password.

      Log In

      Add New Playlist

      We are using cookies to give you the best experience on our website.

      You can find out more about which cookies we are using or switch them off in .

      No Result
      View All Result
      • Home
      • Insight
      • Blog
      • Business
      • Entertainment
      • Health
      • Politics
      • Shop
        • Gift Shop
        • Value Shop
        • Store
        • Bargain Shop
        • Discount
      • Sports
      • Tech
      • Travel
      • USA
      • Video
      • World
        • Asia
        • Africa
        • South America
        • North America
        • Europe
        • Oceania

      Theinsightpost ©2026 | All Rights Reserved. Theinsightpost is an Elnegy LLC company, registered in Texas, USA

      The Insight Post
      Powered by  GDPR Cookie Compliance
      Privacy Overview

      This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

      Strictly Necessary Cookies

      Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

      Cookie Policy

      More information about our Cookie Policy