Category: List and Map
-
What is forEach in Flutter? E Com App 22
We can use the forEach loop with any type of collection in Flutter. In Dart we have seen many types of implementations. The e-commerce app we have been building has many parts. We have used the Provider package to provide values and notify listeners. However, every component like product, cart and order has a unique…
-
Flutter list firstWhere method, E Com App 16
There are many useful methods in Dart which we use in Flutter. Especially when we build apps. One of such methods is firstWhere method. In this section we will learn how and when we will use this dart list method in our on-going E Commerce app. Firstly, we have been building this E Commerce app…
-
Flutter Map in Cart Model, E Com app 12
As we said, List and Map play an important role in Flutter. While adding Cart items in an e-commerce app, we need a special Map method. We’ll discuss that in a minute. So far we have progressed and learned a few things while building the e-commerce app. Most importantly, we have learned how to display…
-
Flutter backend local, E Commerce app – 2
We’ve discussed how to use Flutter backend before. There are several options. Using a local file is certainly one of them. In this e-commerce app, we’re going to use local files as well. As a result, what we’re displaying as products on the home page, are objects that we’ve instantiated locally. As the first step,…
-
Flutter and WordPress: How to build a NewsApp
In the previous section, we have seen how we can use WordPress as the backend of the Flutter app. Flutter and WordPress can work together. We can create, retrieve, update, and delete our posts in the WordPress web app. And, as an effect, that will reflect on the Flutter App. For example, we had created…
-
For loop Flutter: PriceTracker App – Step 1
Can we use for loop in Flutter? If we can, then how we can use for loop in Flutter? We’re going to see that in a minute. In addition, we will build a Price Tracker Flutter App which will use the for loop. Because of that reason, we will first check how we can use…
-
Map through a List Flutter: NoWar App – Step 1
We are going to build a NoWar Flutter App. While we build this app, we will discuss a few important list-concepts in Flutter and Dart. We will use various list methods. And one of them is the list.asMap() method. Firstly, let us see how the home page of this NoWar app will look like. Secondly,…
-
How to make a Flutter list Quiz App
Whenever we use List in Flutter, we need to use it in an Object Oriented Way. It would make our code clean and reusable.
-
What is Dart Map?
In the Dart, the Map literals came first, the literal “{ }” is a default to the Map type.
-
What is the List in Dart?
The List or Lists in Dart means an “ordered-group-of-objects” where index starts at 0.
-
Scoped Model and SQLite in Flutter
Just like Provider, we can use Scoped Model with SQLite database in Flutter.
-
SQLite with Provider in Flutter
Without a stateful widget can we use SQLite database in Flutter? Yes, with Provider.
-
Which database we use in Flutter
SQLite database with future, await, and async create, retrieve, update, or delete data in Flutter.