This week in Flutter #20
Tags: flutter, dart, news
Published: 2021-09-12 10:50:40

Big news this week! Google **announced** [Dart 2.14](https://medium.com/dartlang/announcing-dart-2-14-b48b9bb2fb67) and [Flutter 2.5](https://medium.com/flutter/whats-new-in-flutter-2-5-6f080c3f3dc): Apple Silicon support and standard lints are the prominent updates for Dart.

For Flutter there are **performance** improvements, [Material You](https://material.io/blog/announcing-material-you) support, camera and image picker updates, Widget Inspector improvements, and a **new starter project**.

Read these recap by [Motabar Javaid](https://dev.to/iizmotabar/flutter-2-5-what-changes-does-it-bring-c94), [](https://medium.com/@ozantaskiran?source=user_profile-------------------------------------)[Ozan Taskiran](https://medium.com/@ozantaskiran/flutter-2-5-update-overview-908927045568).

- Michele Volpato

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

### 🔗 [Flutter Performance Tips](https://itnext.io/flutter-performance-tips-4580b2491da8)

Here is a short list of tips to **improve** the **performance** of your Flutter app. Each tip has a link to a longer explanation if you want more information about it. A nice list by [Hasan Basri Bayat](https://www.linkedin.com/in/hasan-basri-bayat-01403118a/).

### 🔗 [Clean Network Layer in Flutter \[Dio + Freezed + Json\_Annotation\]](https://ercangp.medium.com/clean-network-layer-in-flutter-dio-freezed-json-annotation-f5f2c41ac240)

Create your network layer once and use it in **all your projects**, with this easy-to-follow tutorial by [Ercan Garip](https://github.com/i-Senku).

### 🔗 [Flutter Bloc: A Complete Guide](https://dhruvnakum.xyz/flutter-bloc-a-complete-guide)

I stopped using the original **BLoC** some time ago, I find it too complicated to understand for new developers when they join the team. But if you want to learn more about it, [](https://hashnode.com/@Dhruv-Nakum)[Dhruv Nakum](https://github.com/red-star25) published a nice article where he creates a simple weather app.

### 🔗 [Using GraphQL with Flutter: A tutorial with examples](https://blog.logrocket.com/using-graphql-with-flutter-a-tutorial-with-examples/)

[GraphQL](https://graphql.org) is getting used more and more by API providers. There are some packages in Flutter/Dart that help you with using it in your app. I believe that _[graphql\_flutter](https://pub.dev/packages/graphql_flutter)_ is one of the **best** and in this article, [](https://blog.logrocket.com/author/chidumennamdi/)[Chidume Nnamdi](https://twitter.com/ngArchangel) shows you how to use it with a tutorial.

### 🔗 [Cubit 101: What is It, How to Use it and More](https://medium.com/createthrive/cubit-101-what-is-it-how-to-use-it-and-more-6c16ea66ba88)

And after the article about BLoC above, here is an article about **Cubit**, an **evolution of BLoC**. I always say that I stopped using BLoC, but I can see myself starting to use Cubit in the future. This is a well-written article, I suggest you read it even if you already know Cubit. Via [Gianfranco Pigatto](https://www.linkedin.com/in/gianfranco-pigatto-038581b5/).

### 🔗 [Exploring the Stripe Flutter SDK](https://blog.logrocket.com/exploring-stripe-flutter-sdk/)

**Stripe** is a payment service system with good APIs. [Emmanuel Etukudo](https://blog.logrocket.com/author/emmanueletukudo/) shows you how you can **integrate** it into a **Flutter** app, with support with Apple Pay and Google Pay.

### 🔗 [Getting to know Flutter: Pull to refresh with online data](https://dev.to/theotherdevs/getting-to-know-flutter-pull-to-refresh-with-online-data-592i)

The **pull to refresh** is a common UX feature of apps with lists. Learn how to implement it with this article by [TheOtherDev/s](https://twitter.com/TheotherdevS). This article uses an external package: [_pull\_to\_refresh_](https://pub.dev/packages/pull_to_refresh), but...

### 🔗 [RefreshIndicator (Flutter Widget of the Week)](https://www.youtube.com/watch?v=ORApMlzwMdM)

...you can also use the standard _[RefreshIndicator](https://api.flutter.dev/flutter/material/RefreshIndicator-class.html)_.

### 🔗 [Implementing SVG in Flutter with flutter\_svg](https://blog.logrocket.com/implement-svg-flutter-apps/)

Did you know you can easily use **SVG** in your **Flutter** app? [Majid Hajian](https://github.com/mhadaily) knows that, and he wrote an article about it.

### 🔗 [Advance Scrolling in Flutter - Part (1)](https://dhruvnakum.xyz/advance-scrolling-in-flutter-part-1)

An extensive article about **scrolling** in Flutter, with **examples** and **GIFs**, so that you do not have to implement everything yourself to test it. By [](https://hashnode.com/@Dhruv-Nakum)[Dhruv Nakum](https://github.com/red-star25).

Architecture 🏛
---------------

### 🔗 **[Flutter: MVVM architecture best practice using Provide & HTTP](https://medium.com/@ermarajhussain/flutter-mvvm-architecture-best-practice-using-provide-http-4939bdaae171)**

[...]

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

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

---