124 Followers
·
Follow

This article explains how Flutter’s new Navigator and Router API works. If you follow Flutter’s open design docs, you might have seen these new features referred to as Navigator 2.0 and Router. We’ll explore how these APIs enable more fine-tuned control over the screens in your app and how you can use it to parse routes.

These new APIs are not breaking changes, they simply add a new declarative API. …


Image for post
Image for post

If you have ever called add(), addAll(), map(), or toList() to build a list or map, you might want to check out collection if, collection for, and spreads. Last year, Dart added these features in version 2.3.

In this article, we’ll look at collections, explore these new features, and see some interesting examples. By mastering these features, you can make your code more succinct and easier to read.

Collections

First, we need to understand what a collection is. A collection is an object that contains other objects. For example:

  • List: an ordered collection of objects with a length (also called an…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store