Google pulls the wraps off Flutter, Dart upgrades

Google’s Flutter UI toolkit and companion Dart language have both received upgrades this month, with Flutter 2 moving web support from beta to stable and Dart 2.12 adding null safety.

An open source UI toolkit for building natively compiled apps for multiple operating systems and form factors, Flutter now includes the web among the supported platforms. Google said three scenarios are critical to Flutter web support:

  • Progressive web apps (PWA), combining the web with desktop app capabilities.
  • Single-page apps.
  • Making existing Flutter mobile apps work with the web.

Also part of the web support is the Canvaskit-powered rendering engine built with WebAssembly. Other capabilities added in recent months include text autofill, control over address bar URLs, and routing, and PWA manifests. For desktop browsers, support has been added for interactive scroll bars and keyboard shortcuts.

Unveiled March 3, Flutter 2 also moves desktop support to stable under an early release flag. The update includes improvements related to text editing and mouse input, and adds a built-in context menu to TextField and TextForm widgets for the Material and Cupertino design languages.

With Flutter, a single codebase can be used to build apps for mobile, desktop, and web, using the Dart programming language. Optimized for client development, Dart compiles to native machine code for mobile and desktop and to JavaScript for the web. Native platforms supported by Flutter include iOS, Android, Windows, MacOS, and Linux.

Flutter installation instructions can be found at Other improvements in Flutter 2:

Copyright © 2021 IDG Communications, Inc.

Source link