Invertase, the company bringing Firebase integration to Flutter, is working on FlutterFire for desktop. More specifically they are adding Linux and Windows support. MacOS is already (partially) supported. The interesting part is that they are building a universal SDK using Dart, which means that they could also move the existing platforms to use the same Dart SDK, while they are now using the existing SDKs available for each platform. They can keep to code separated by using federated plugins. It is still unknown when all the different services from Firebase will be ready for desktop, but it is good to know that they are working on it. The code is open source, so, if you like, you can contribute via the official repository.
In the meanwhile, Google announced Android 12L, a version of Android that works well on larger and foldable devices. We, Flutter developers, already design our apps with larger devices in mind (right?), so I am not sure if and how this version will influence Flutter. Reading the official guide on how to migrate your app UI for Android, it looks to me that, if you designed your Flutter app for web or desktop, you do not need to do anything else. Let me know what you think.
- Michele Volpato
Development ๐งโ๐ป
๐ Facebook reaction animation
This is Bแบฃo Trฦฐฦกng attempt to recreate the animation used in Facebook when you react to a post. It is a good exercise, with explanations of the process he went through to reverse engineer it.
๐ Take a screenshot during Flutter integration tests
I never tried, but you can take a screenshot while testing in Flutter. Have a look at this article by Martin Jableฤnรญk to get started and let me know if you manage to add this feature in your development process.
๐ Geolocation and geocoding in Flutter
One thing I love about Flutter is that, sometimes, complex code implementation is hidden behind the native code used in the packages you import in your project. Like in this article, by Bhavya Mishra, where the boilerplate code is hidden in the implementation of the location
package.
๐ Explore AbsorbPointer In Flutter
Let's say you want to temporarily disable all controls in a widget. For instance, you have a settings screen with an "enable settings" toggle at the top. You can rebuild the subtree by passing an "enabled" parameter. Or you can absorb the user input for the entire subtree! Learn how with this article, by Shaiq khan.
๐ How to persist data in Flutter using SQLite
Sooner or later you will need to persist data in your Flutter app. One of the ways to do it is by using sqflite. If you are familiar with relational databases but need help to get them to work in a Flutter project, follow this article, by Vijit Ail.
Architecture ๐
๐ Flutter Redux: Complete tutorial with examples
Redux is a state container for apps written in JavaScript. The idea behind Redux can be applied to apps written in any programming language. For instance, Damilare Jolayemi wrote a nice tutorial to apply it to Flutter apps. Should you use it in your apps? If you moved from JavaScript to Flutter, and you already have experience with it, then you can easily use your existing knowledge. Otherwise, I would prefer a more minimalistic approach.
Backend ๐
๐ Learning how to use AWS Amplify in Flutter
I already linked articles about Amplify in previous issues of this newsletter. But this one, by Himanshu Sharma, is on another level. Mute your phone and desktop notifications, and learn how to get started with Amplify and with your Flutter project.
[...]
Read the rest on my website.
Join the Flutter and Dart newsletter and receive it weekly in your inbox.