Dart 2.15 has been announced , and OMG they are improving enums :
enum MyEnum {
one, two, three
}
...
print(MyEnum.one.name); // Prints "one".
print(MyEnum.values.byName('two') == MyEnum.two); // Prints "true".
Maybe we will get Swift-like super enums one day.
And you have no idea how many times I declared a List
with the 2.15 syntax, and it did not work:
var y = List; // Already supported.
var z = List<int>; // New in 2.15.
var z = typeOf<List<int>>(); // Pre-2.15 workaround.
Flutter 2.8 has also been announced , but my favourite news is the new Firebase UI widgets . Especially the FirestoreDataTable is going to save me so much time.
- Michele Volpato
Development π§βπ»
π Flutter Tutorial: Stopwatch App with Custom UI and Animations π¦
In this video by Andrea Bizzotto , you'll learn how to create a custom stopwatch . This is a lesson from his course on Flutter Animations Masterclass .
Note: I followed the course, I paid full price for it and I do not get a commission for advertising it. It's that good.
π Learn Bloc in Flutter π¦
Vandad Nahavandipoor is very active on LinkedIn sharing tips about Flutter and Dart , and other frameworks and programming languages. The goal of this streamed event was to teach how BLoC works in Flutter, answering questions from the participants. I like the content Vandad share, I think the main reason is that Vandad is a real senior developer who also creates content, not the other way around.
π How to Parse Large JSON Data with Isolates in Dart 2.15
Another article by Andrea Bizzotto . In Dart 2.15 isolates , pieces of code that run independently from one another, have been improved . Andrea promptly published an article where you'll learn how to take advantage of these improvements while parsing JSON data.
Backend π
π How to Build a Simple CRUD Application Using Flutter and Strapi
Strapi is an open-source headless CMS . In this article, you'll learn how to integrate your Flutter app with an existing Strapi instance . This is a specific case, but if you are adding an app to your portfolio that integrates with an existing backend that already uses Strapi, then this might be helpful.
Tools π
π How to automate localization for Flutter apps
[...]
Read the rest on my website.
Join the Flutter and Dart newsletter and receive it weekly in your inbox.
Top comments (0)