This week in Flutter #12
Tags: dart, flutter, news
Published: 2021-07-19 08:26:04

Google hosted the [Games Developers Summit 2021](<https://developersonair.withgoogle.com/events/game-dev-summit-2021>) this week. There is not much about Flutter, but some talks might be **useful** for **Flutter developers** as well. For instance, [Personalizing your app in real-time: Powered by Firebase and ML](<https://www.youtube.com/watch?v=DKdwHp2coXM>), or [What’s new for Firebase LiveOps](<https://www.youtube.com/watch?v=B4RE4s9ofgk>).

Let me know if there was some other talk that you found interesting.

<small>- Michele Volpato</small>

## 🧑‍💻 Development

### [Understand Constraints in Flutter](<https://danysdevcorner.hashnode.dev/understand-constraints-in-flutter>)

Do you ever wonder why sometimes you set the `width` of a container and **nothing changes** in your layout? That is because you did not understand constraints. Learn about **constraints in Flutter** in this article by [Dany Tulumidis](<https://twitter.com/danytulumidis>).

---

### [Getting Started With Flutter](<https://www.raywenderlich.com/24499516-getting-started-with-flutter>)

[Jonathan Sande](<https://www.raywenderlich.com/u/suragch>) updated the **beginner tutorial** about Flutter on raywenderlich.com to Flutter 2.2. The previous version was for Flutter 1.7, a bit outdated 😁.

---

### [Flutter Tutorial - Keep Screen Awake [2021] Wakelock](<https://www.youtube.com/watch?v=HaV8k1m0n28>)

Did you know you can **prevent** the device screen from going into **sleep mode** directly from your Flutter app? I did not. Here is a very short tutorial on how to do it by [Johannes Milke](<https://twitter.com/JohannesMilke>).

---

### [Cat and Mice – Part 3: Implementing the Game](<https://bartvwezel.nl/flutter/cat-and-mice-part-3-implementing-the-game/>)

[Bart van Wezel](<https://twitter.com/bartvwezel>) is back with the next iteration of his game built from scratch with Flutter. This week he implements the menu and the **game logic**. It is nice to follow the app being built, reading about the challenges he faces.

---

### [Learn Flutter Animations in 8 Minutes + Free Gallery App on GitHub](<https://codewithandrea.com/videos/learn-flutter-animations/>)

A deep and detailed article by [Andrea Bizzotto](<https://twitter.com/biz84>) on **Flutter animations**. In the article, he discusses implicit animations, tweens, explicit animations, and built-in explicit transition widgets. He also provides [an app](<https://flutter-animations-gallery.web.app/#/>) you can [download](<https://github.com/bizz84/flutter_animations_gallery>) to **showcase all the animations** shown in the article, and more. Definitely recomended.

---

### [The flutter “const” Keyword demystified](<https://medium.com/flutter-community/the-flutter-const-keyword-demystified-c8d2a2609a80>)

We have all written

```dart
Padding(
    padding: EdgeInsets.all(16.0),
    child: ...
    ...
```

But should we be using **const**?

```dart
Padding(
    padding: const EdgeInsets.all(16.0),
    child: ...
    ...
```

In this article, [Kefeh Collins](<https://github.com/kefeh>) teaches us about the **const** keyword, what it represents, and when we should use it.

---

## 🧑‍🎨 Design

### [How to use Google Fonts in a Flutter application](<https://daily-dev-tips.com/posts/how-to-use-google-fonts-in-a-flutter-application/>)

[Chris Bongers](<https://twitter.com/DailyDevTips1>) shares how easy it is to use **[Google Fonts](<https://fonts.google.com>) in your Flutter app**. If you are a beginner, you should check [Chris' website](<https://daily-dev-tips.com>). He is learning Flutter and sharing daily something new he learns.

---

[...]

[Read the rest on ishouldgotosleep.com](https://ishouldgotosleep.com/this-week-in-flutter-12/)