November 2022: Flutter Conferences, Videos, UI Challenges, and Riverpod 2.1

From the recent layoffs in big tech to all the latest Twitter chaos, a lot has been happening over the last month!

But that is not what this newsletter is about. 😉

Instead, here's the usual recap from our wonderful Flutter-verse! 👇

Flutter Conferences and Events

Many Flutter events are taking place worldwide, and they are a great way to learn something new and connect with other developers. Here are my notes from the recent Droidcon and Flutter Vikings. 👇

🤖 Droidcon London 2022

As I live in London, Droidcon 2022 was the perfect chance to meet fellow Flutter GDEs, attend some great talks, and even have a few beers together! 🍻

A few weeks have passed since the event, and Alicia Ogonowska has shared this nice writeup of all the talks in the Flutter track:

Of all the fantastic talks, these were my favourites:

🎬 Flutter Vikings Playlist

Thanks to the hard work of the Flutter community, we now have an official playlist with (most of) the talks from Flutter Vikings.

If you missed the event and the original live streams, this is a great chance to catch up:

📅 Upcoming: Flutter Forward

The official Flutter events are always something special!

So it's great to hear about Flutter Forward, which will take place in January 2023 in Nairobi (Kenya).

And if Dash is so excited about it, we should be too. 😉

Flutter Videos, Challenges, and News

Here's a roundup of interesting videos, UI challenges, packages, and other Flutter news I've come across this month. 👇

🎬 Gesture Arena | Decoding Flutter

Without a doubt, GestureDetector is the go-to widget for detecting user gestures.

But does Flutter know how to disambiguate between taps, clicks, drags, swipes, pans, and zooms?

This video by Craig Labenz is incredibly well-made and offers a great explanation:

⏳ Flutter UI Challenges

One thing that Flutter, SwiftUI (and even CSS!) have in common is that they really shine when it comes to creating custom UIs with animations.

Some people have been showing off their skills by building cool demos such as this and this.

And it looks like Roaa and Mangirdas have risen to the challenge by representing team Flutter! 💙

So here are a Flutter 3D Calculator by Roaa, and a Flutter Rotary Passcode by Mangirdas.

Both examples come with full source code, so check out these repos if you wanna see how they were built:

🛠 Version Lens VSCode Extension

I always welcome new VSCode extensions that make my life easier.

And just recently, I came across Version Lens, which makes it easy to see and update to the latest available version for each package:

Use the Version Lens extension to update to the latest available version for each package
Use the Version Lens extension to update to the latest available version for each package

If you use VSCode, you can find and install it from here:

🧱 Riverpod 2.1 is here

Riverpod continues to gain momentum, and the 2.1 version brings many useful bug fixes and improvements.

This is the best time to migrate to Riverpod 2.x, and this video by Randal Schwartz offers a great overview of what's changed:

In fact, I've been covering Riverpod extensively with my latest articles. 🙂

Latest on Code With Andrea

Since the last edition, I have published three in-depth articles. 👇

📝 How to Auto-Generate your Providers with Flutter Riverpod Generator

Riverpod is great.

But writing a lot of providers by hand can be error-prone, and choosing which provider to use can be challenging. 🥵

Luckily, the new Riverpod Generator package can take our pains away, and this article covers all the details:

📝 How to use Notifier and AsyncNotifier with the new Flutter Riverpod Generator

If you've been using Riverpod since version 1.x, you'll be familiar with StateNotifier, an observable class that stores a single immutable state.

But with Riverpod 2.x, a new AsyncNotifier class has been added as a StateNotifier replacement, bringing some benefits.

Read on for all the details:

📝 How to Unit Test AsyncNotifier Subclasses with Riverpod 2.0 in Flutter

If you use Riverpod in your apps, it can be challenging to write tests and get them working.

The official docs already include a helpful page about testing, but it doesn't show how to write asynchronous tests for classes with dependencies.

This article fills the gaps and addresses some gotchas that you're likely to encounter:

📹 Flutter Course Update

In addition to my articles, I have also updated my Flutter Foundations course with a brand new section about Riverpod 2.x and Riverpod Generator.

The whole course now contains over 14 hours of content.

And since Black Friday is this week, you can get it for 33% off here:

🐦 Twitter is dead (ok not quite yet). Come join me on Mastodon

For many years, Twitter has felt like an ideal place to share, learn, and connect.

But if the last few weeks are any indication of things to come, I won't be surprised if the golden age of Twitter is over.

For the time being, I'll continue posting my usual Flutter tips on Twitter.

But if things go south, you can also follow me on LinkedIn, Slack, or Mastodon.

Note: the Mastodon onboarding process is a bit complicated and you have to choose a server to get started. This guide covers all the most common questions.

Until next time

Thanks so much for reading this latest newsletter.

And stay tuned for the next one!

Happy coding!

Want More?

Invest in yourself with my high-quality Flutter courses.

Flutter Foundations Course

Flutter Foundations Course

Learn about State Management, App Architecture, Navigation, Testing, and much more by building a Flutter eCommerce app on iOS, Android, and web.

Flutter & Firebase Masterclass

Flutter & Firebase Masterclass

Learn about Firebase Auth, Cloud Firestore, Cloud Functions, Stripe payments, and much more by building a full-stack eCommerce app with Flutter & Firebase.

The Complete Dart Developer Guide

The Complete Dart Developer Guide

Learn Dart Programming in depth. Includes: basic to advanced topics, exercises, and projects. Fully updated to Dart 2.15.

Flutter Animations Masterclass

Flutter Animations Masterclass

Master Flutter animations and build a completely custom habit tracking application.