Last week at the Google I/O, Flutter UI framework expanded from mobile to multi-platform and the company released the first technical preview of Flutter for web. On Friday, Google announced new updates to Flutter for building Chrome OS applications. Flutter tools allow developers to build and test their apps directly on the Chrome OS.
Along with Flutter’s seamless resizing feature, Flutter for Chrome OS comes with additional features such as scroll wheel support, hover management, and better keyboard event support.
The Flutter team also added a new set of lint rules to the Flutter tooling to catch violations of the most important of the Chrome OS best practice guidelines. This will help developers get a better idea of whether their Android app is going to run well on Chrome OS. In the IDE or when running flutter analyze at the command line, developers can see lints if their Flutter app has issues targeting Chrome OS.
Image source: GitHub
Lint rules can be turned on the Flutter app by creating a file named analysis_options.yaml in the root of your Flutter project. The contents should look similar to this:
include: package:flutter/analysis_options_user.yaml
analyzer:
optional-checks:
chrome-os-manifest-checks
Developing Flutter on ChromeOS has got the developer community excited.
https://twitter.com/mklin/status/1127001767873409025
https://twitter.com/timsneath/status/1126921052922081280
https://twitter.com/lehtimaeki/status/1103602179556937729
If you’d like to target Flutter for Chrome OS, you can do so today simply by installing the latest version of Flutter.
Google I/O 2019: Flutter UI framework now extended for Web, Embedded, and Desktop
Google launches Flutter 1.2, its first feature update, at Mobile World Congress 2019
Google I/O 2019 D1 highlights: smarter display, search feature with AR capabilities, Android Q and more.