What’s New in Flutter 1.9

What’s New in Flutter 1.9

End is just the beginning….

Announcing at the Google Developer Days,Flutter 1.9 was released to the public…

New Support …..

Adding support for the new Xcode build system, and Xcode 11

Adding support for iOS 13’s draggable scrollBar

iOS 13 Draggable Toolbar…

Note : Support for iOS Dark Mode coming soon…..

What’s New in Dart 2.5…..

Flutter 1.9 works with Dart 2.5…To get it, 

flutter upgrade

This install Dart 2.5 itself….

Features :

  • Code completion powered by machine learning (ML)
Code Completion with ML…
Code Completion with ML…

In terms of Flutter,

Flutter and ML….
Flutter and ML….

  • dart:ffi foreign function interface for calling C code directly from Dart…

Developers can leverage not only existing native APIs on the operating systems where Dart code runs, but also existing cross-platform native libraries written in C.


What’s New in Flutter 1.9 ….

ToggleButtons widget bundles a row of ToggleButton widgets together, often composed of a set of Icon and Text widgets, to form a set of buttons….

ToggleButtons
ToggleButtons

ColorFiltered widget allows you to recolor a tree of child widgets…

ColorFiltered
ColorFiltered

SelectableTextwidget displays a string of text with a single style. The string might break across multiple lines or might all be displayed on the same line depending on the layout constraints.

SelectableText…
  • Languages Support

Added support for 24 new languages

Languages Support…(Flutter 1.9)
Languages Support…(Flutter 1.9)
  • Default languages for Flutter projects…

New Flutter projects now default to Swift instead of Objective-C for iOS, and to Kotlin instead of Java for Android; but you can always switch back to them if you need them

  • Structured Error Messages…

Below screenshot shows four improvements, identified with blue circles, in the message that’s generated by the layout overflow error

Structured Error Messages….(Flutter 1.9)
Structured Error Messages….(Flutter 1.9)

Turn this on in VSCode as 

VSCode plugin…..(Flutter 1.9)
VSCode plugin…..(Flutter 1.9)

What’s New in Flutter Web….

Flutter Web…
Flutter Web…

When you create a project, Flutter now creates a web runner via a minimal web/index.html file that bootstraps your web-compiled Flutter code.

Index.html
Index.html

NOTE : Support for web output with Flutter is still at an early phase, not ready for production yet….

  • Includes a flag to tell if an app is running on the web…..(kIsWeb)

Try the following example…

https://github.com/csells/flutter_mazegen/

Finally…

If you have Google Assistant on your phone try saying 

“OK Google. Talk to Flutter Widget Quiz.”

For more details on upgrading to Flutter 1.9, including details on how to fix any breaking changes that you might experience as you migrate your code, check out the detailed Flutter 1.9 release notes.