Category: Provider
-
Flutter E Commerce app order management – 18
Orders play an important role in every E commerce app. Flutter e commerce app is no exception. Therefore, we discuss order management here. To begin with, we must provide and tackle order separately. Why? Because, if we insert order into our products class, it will be cumbersome to handle the process that relates to order…
-
Flutter E Commerce App Design -Section 13
In this section, we will take a look at the design part of the e-commerce app. UI or design plays an important role in building Flutter apps. In the previous section we have added a Cart Model. However, to nest a new Provider model class, we need to use the multi provider property of the…
-
Consumer Flutter Provider, E-Com App 9
When to use Flutter Provider Consumer and why? In this section we will take a quick look at how we can avoid widget-rebuilds. In our previous section we have seen why we use ChangeNotifierProvider value constructor. However, at the same time, we have used Provider Consumer in our Product Item controller. As a result, in…
-
Nested Provider Flutter, E-Com App 8
Firstly in this section we will try to understand the concept of the nested provider in Flutter. We will see why we use it. Secondly we will know how we can use a nested provider to enhance the performance of our E-Commerce app? Finally we will show you the advantage of the nested provider in…
-
Mixin and extend in Flutter, E-Com App 7
What is the difference between mixin and extend in Flutter? Let’s understand the difference because we’ve been building an e-commerce app. As a result, we don’t want to skip any step. The mixin keyword plays an important role in Dart, as well as in Flutter. However, the extend keyword is quite common. Because we’re more…
-
Flutter provider fetch data, E-Com app 6
How does the provider in Flutter fetch data and we display them? That’s our first concern as we’ve been building the e-commerce app. First thing first. Firstly, we need the Provider package dependency. Therefore let’s add the dependency to the pubspec.yaml file. Secondly, make sure the package is the latest. Finally the most important thing…
-
Manage State in Flutter, E-Com App 5
Two questions always haunt Flutter beginners. What is the State of Flutter? And, how to manage the State of Flutter? As we’ve building an ecommerce app from scratch, we should answer these questions at the very beginning. Otherwise we cannot follow the workflow of code. However, we won’t take much time. Because we have a…
-
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,…
-
E Commerce App in Flutter, A Step by Step Guide
How to build an E Commerce app in Flutter from scratch? We will try to do it step by step. However, it will certainly take some time. Because we are trying to build this E Commerce Flutter app in a way, so that a beginner might understand the steps. However, if you have already done…
-
Build in Flutter, Without set state and Stateful Widget
How does the build method work in Flutter? In this section we’ll take a look at the core concept of Flutter. In our previous section we have seen a simple Stateful widget where we have used a counter to press the button and change the internal state of the object. As a result, it calls…
-
Notification class in Flutter, How to notify child widgets
How do we use the Notification class in Flutter? In this section we will use Notification class in many ways. Firstly, we will use it to pass a custom color scheme across the Flutter app. As a result we have to use the ValueNotifier class in accomplishing the task. In addition we’ll also use the…
-
Value Notifier Flutter and Material Design 3
In our previous Firebase, Provider Blog app section, we have used Material Design 3 to customise the theme. However, at the entry point of our Flutter app, we’ve also used the ValueNotifier class. Certainly, in our Flutter app, the ValueNotifier class plays an important role to customize the theme across the whole widget tree. Now…
-
Text Form Field Flutter size, how to increase in web app
How do we increase the size of the text form field size in a Flutter app? We need to increase the size because we’ve been building a Flutter Firebase, Provider web app where users write blogs. As a result, as an interface, on the screen users must give some inputs through the TextFormField. However we’re…
-
Flutter web 3.0 blog app with Firebase, Provider
While building the Flutter web 3.0 blog app with Firebase and Provider, we have faced some challenges. Firstly, we cannot hard code the blog posts anymore. Secondly, we have to assure that only the signed-in visitors will post their blogs. Finally, we will not use the multi provider technique. Instead we will use the ChangeNotifierProvider…