Googles 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:
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.
Flutter installation instructions can be found at flutter.dev. Other improvements in Flutter 2:
Flutter 2 contains Dart 2.12 which also was announced on March 3. Improvements in Dart 2.12 include stable sound null safety and Dart:FFI (foreign function interface). Null safety helps developers avoid null errors a class of bugs that can be hard to spot and strengthens the type system. FFI is an interoperability mechanism to invoke existing code written in C such as calling Windows Win32 APIs. Developers get the Dart SDK at dart.dev.