Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon

Flutter gets new set of lint rules to build better Chrome OS apps

Save for later
  • 2 min read
  • 13 May 2019

article-image

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.

New updates for Flutter for 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.

flutter-gets-new-set-of-lint-rules-to-build-better-chrome-os-apps-img-0

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.

Unlock access to the largest independent learning library in Tech for FREE!
Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
Renews at R$50/month. Cancel anytime