This week in Flutter #25
Tags: dart, flutter, news
Published: 2021-10-17 13:44:52

**Flutter** for desktop vs **Electron**. Which one performs better? Read more to get to the answer.

\- Michele Volpato

Development 🧑‍💻
-----------------

### 🔗 [Mocking and Testing The File System In Dart/Flutter Unit Tests](https://blog.victoreronmosele.com/mocking-filesystems-dart)

**Testing** a function that **creates** a **new file** by checking if the file is present in the file system is not ideal. It can be slower than necessary, and it creates spurious files on your testing machine. [](https://hashnode.com/@victoreronmosele)[Victor Eronmosele](https://github.com/victoreronmosele) shows you how to solve these problems by mocking the file system. Clever.

### 🔗 [Explore IntrinsicWidth In Flutter](https://medium.com/flutterdevs/explore-intrinsicwidth-in-flutter-21dd6705cd1d)

The `IntrinsicWidth` widget helps when you want a child widget to size itself to a reasonable width instead of **expanding infinitely**. [Shaiq khan](https://github.com/ShaiqAhmedkhan) explains it with examples.

### 🔗 [Working with WebView in Flutter](https://medium.com/@ashishgarg1998/working-with-webview-in-flutter-287ec492ec2a)

In this article, [Ashish Garg](https://medium.com/@ashishgarg1998) teaches you how to use `[webview_flutter](https://pub.dev/packages/webview_flutter/)` to show **webpages** in your app. You can show the about page of your company in your app, instead of opening an external browser. Use it carefully, because it has some user experience limitations.

### 🔗 [Integration Testing in Flutter](https://dev.to/aseemwangoo/integration-testing-in-flutter-18pf)

Start integration testing your app with this tutorial by [Aseem Wangoo](https://github.com/AseemWangoo). He uses the `[integration_test](https://github.com/flutter/flutter/tree/master/packages/integration_test#integration_test)` package from Flutter. Read more about [integration testing](https://flutter.dev/docs/testing/integration-tests) in Flutter.

### 🔗 [Starting a new app from the Skeleton template (The Boring Flutter Development Show, Ep. 52)](https://www.youtube.com/watch?v=Yy4NgbqNNtY)

Finally, the Boring Flutter Development Show started over with a new app, using the **new skeleton template**, available since the latest Flutter version. Follow Craig and Fitz while they investigate the new skeleton template, and prepare tests for the new app.

### 🔗 [Creating a Game Like Minesweeper in Flutter](https://www.raywenderlich.com/26763909-creating-a-game-like-minesweeper-in-flutter)

The best way to learn is to **make a game out of it**. And when learning programming, "make" a game out of it. In this tutorial, written by [Samarth Agarwal](https://github.com/samarthagarwal), you'll learn how to create a game similar to [Minesweeper](https://en.wikipedia.org/wiki/Minesweeper_(video_game)).

Backend 🗄
----------

### 🔗 [Announcing Version 2.0 of the Flutter SDK for Appwrite!](https://dev.to/appwrite/announcing-version-2-0-of-the-flutter-sdk-for-appwrite-22hg)

The Flutter SDK for **Appwrite** is in version 2.0. Read in this article by [Damodar Lohani](https://twitter.com/LohaniDamodar) what you can achieve with it.

Others 🤷‍♂️
------------

### 🔗 [DartUP conference](https://dartup.ru/EN/)

DartUP announced a new **free conference** on the 3rd and 4th December 2021. As usual, there are talks in English and Russian. They also **upload** the talks online after the event, so if you cannot attend, you can still watch the videos afterward. I like that.

### 🔗 [](https://medium.com/@gordon.hayes/macos-performance-comparison-flutter-desktop-vs-electron-6eb3c9c950de)[macOS Performance Comparison: Flutter Desktop vs. Electron](https://getstream.io/blog/flutter-desktop-vs-electron/)

This is an article I wanted to read for a long time. I use Electron apps. Some are user-friendly and performing well, like VS Code, some others are just very slow, and they feel "off". If you are not concerned about performance (you should), read the article anyway. It will give you some topics to talk about during the next Flutter meetup. I am impressed by the **difference** in the **size** of the final executable and the difference in **memory usage**. Thanks, [Gordon Hayes](https://github.com/HayesGordon).

[...]

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

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

---