This week in Flutter #40
Tags: dart, flutter, news
Published: 2022-02-06 14:35:37

This week there was the "Flutter for Windows developers" event. Honestly, not much was announced during the event. The feature
that allows **creating Windows apps with Flutter** was already there. It is now stable enough to be announced.
Another version of Dart and Flutter has been released, read more about the [Dart release](https://medium.com/dartlang/dart-2-16-improved-tooling-and-platform-handling-dd87abd6bad1) and the [Flutter release](https://medium.com/flutter/whats-new-in-flutter-2-10-5aafb0314b12)
from the official articles. You can also watch some videos about the new Flutter version, I suggest you watch
[this one](https://www.youtube.com/watch?v=tpBNiRw0Jrs) by [Filip Hráček](https://twitter.com/filiphracek).

I got some `Error: Member not found: 'packageRoot'` errors to fix [because of the new Dart version](https://github.com/dart-lang/sdk/issues/47769). I fixed them by **upgrading my Flutter dependencies**.

Flutter Vikings [day 1](https://www.youtube.com/watch?v=50qRPvg0CJg) 🎦 and [day 2](https://www.youtube.com/watch?v=qFHSMISkguw) 🎦
are available on YouTube. I only followed the former for now, but I plan to watch the rest this weekend.

One of my favorite talks from the first day is [Use OpenAPI in Flutter](https://guillaume.bernos.dev/use-openapi-in-flutter/),
where [Guillaume Bernos](https://twitter.com/BeGuillaume) shows how to **generate Dart networking code** from an
OpenAPI (or Swagger) document. I did the exact same thing a the beginning of this week. Watching the talk first would
have saved me some time.

Another talk I like is [BDD In Flutter](https://www.youtube.com/watch?v=50qRPvg0CJg&t=26973s) by
[Oleksandr Leushchenko](https://twitter.com/olexale) where he applies [BDD](https://en.wikipedia.org/wiki/Behavior-driven_development)
to Flutter, using useful packages. That seems too good to be true, so I will need to research it a bit more on my own.

What do you think? Let me know in the [comment](https://ishouldgotosleep.com/news/this-week-in-flutter-40/#comments) section.

<small>- Michele Volpato</small>

## Development 🧑‍💻

### 🔗 [10 Beginners mistakes in Flutter (and how to avoid them)](https://guillaume.bernos.dev/10-beginners-mistakes-to-learn-from-in-flutter/)

[Guillaume Bernos](https://twitter.com/BeGuillaume) gives you a list of **beginner mistakes** that are common
when programming with Flutter. They are beginner mistakes, but not only beginners make them.

### 🔗 [Cat and Mice – Part 7: Releasing the App](https://bartvwezel.nl/flutter/cat-and-mice-part-7-releasing-the-app/)

Sooner or later [Bart van Wezel](https://twitter.com/BartvWezel)'s game had to reach the time to be **distributed**.
But first, a splash screen must be added, and screenshots must be made. I especially liked the "automated screenshots" part of the
article. Something I still need to implement in the apps I work on.

### 🔗 [Flutter — Native communication with Pigeon](https://tonyowen.medium.com/flutter-native-commun-with-pigeon-a6d9256bb3ca)

`pigeon` is a package that can be used during development to generate code that allows you to **communicate** between
your Flutter app and the platform your app is running on. In this article, [Tony Owen](https://tonyowen.dev/#/) shows you
how to use it in your app.

### 🔗 [How to hide app preview when switching apps, with Flutter](https://medium.com/@carlo.log/how-to-hide-app-preview-when-switching-apps-with-flutter-6afcefe83ee5)

I never had to hide the preview of my Flutter apps while the device is switching between apps.
One way to do it is by using this method by [Carlo Loguercio](https://twitter.com/carlo_log), and changing directly the native code.

### 🔗 [Synchronize the scrolling of your ListViews in Flutter](https://blog.dtengeri.com/synchronize-the-scrolling-of-your-listviews-in-flutter)

This is a problem a colleague of mine had in his own app some time ago. He needed to scroll two `ListView` at the same time.
Scrolling one would scroll the other of the same amount in the same direction. I do not remember exactly how we solved it,
but the solution was for sure complicated. Yesterday I read this article by [Dávid Tengeri](https://github.com/dtengeri),
which links to a **package by Google**.

## Backend 🗄

### 🔗 Serverpod

---

[...]

Read the rest on [my website](https://ishouldgotosleep.com/news/this-week-in-flutter-40/).

[Join the Flutter and Dart newsletter](https://ishouldgotosleep.com/subscribe-to-the-newsletter-devto/) and receive it weekly in your inbox.