You may be an Android or Java developer, you’ve heard about Flutter, and are curious. So, is Dart easy to pick up as a Java developer?
The official website claims that Dart is “familiar to many existing developers”, and I generally agree with this statement. There is now a codelab Intro to Dart for Java developers: I do recommend you at least skim through it to get an overview.
In addition to the codelab, below is a list of concepts you will probably need to know fairly quickly.
Continue reading “From Java to Dart”
JSON is a cornerstone in most Android apps, but how do you parse JSON in Dart and Flutter?
As mentioned in my “4 tips to boost your software development career” post, I’ve been experimenting with Flutter recently. Dart, the language used by Flutter, comes with a good library to parse JSON (dart:convert) but after having used gson for years in my Android apps, I had to relearn how to parse JSON.
If you Google gson for Dart , you will also find a library called dson. However, for this code tutorial, I’m focusing on using dart:convert.
To follow the code tutorial, create a new app as follows.
flutter create parsejsonexample
If you’re unsure how to set up a Flutter app, check out Getting started with Flutter official tutorial.
Continue reading “How to parse JSON in Dart / Flutter”