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…

  • Navigation in Flutter, E-Commerce App 3

    Although we’ve discussed navigation in Flutter before, it’s still relevant in our e-commerce app. Firstly, we’ve seen how we can manage themes across the app with the latest Material You design.  Secondly, we have managed to display products on our home page with the help of a provider package. Therefore we have gone over the…

  • 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 app development, E Commerce App first step

    In our previous section we have an introduction to Flutter app development. We’ll build an e commerce app, step by step. In the beginning we used a simple theme. As a result, we have our first screenshot like the following. We can take a look at the first branch where we have the initial code.…

  • 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…

  • Material You Flutter, Next Generation Design

    When we want to build beautiful, scalable Flutter apps across platforms, the Material You Design is the best choice.  The good news is Flutter 3.0 has good support for using Material You which is the next generation design. We have been discussing Material You or Material Design 3 for Flutter in the last couple of…

  • Set theme in Flutter, Best Practices in Material 3

    How do we set the theme in Flutter 3.0? Moreover, what are the best practices to use tools and APIs introduced in Material 3.  We’ve tried to make the steps as simple as possible so the beginners can also follow along. Therefore, in this section we will learn to write a Flutter app that sets…

  • 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…

  • Material 3 : Flutter Firebase, Provider Blog App Final

    Material 3, which is a short form of Material Design 3, is the next generation theme for Flutter apps. According to the Google team, it is the most expressive and adaptable design system yet. How will you adopt Material 3, and apply a custom theme across your Flutter app, depends on you. In other words,…

  • Material 3 Flutter : A Dark Theme in Web App

    We’ve been building a Firebase, Firestore and Provider based web app where we have already used Material design 3. Firstly, what is Material design 3? It’s the next generation design that will rule the cross platform application world. Secondly, in our previous section we have changed the look of the existing web app. However, we…

  • Material design 3 Flutter : A Light Theme

    How to change design and color of Flutter web app What is Material design 3? How would we apply this theme to new Flutter 3.0? Well, let’s try to answer the questions one after another. Firstly, Material design 3 is the next generation design language. It’s good news that Flutter has supported Material design 3 from…

  • 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…