A Simple Shopping Cart with GetX & Firestore - Flutter GetX Tutorial

177 Просмотры
Издатель
Learn how to build a simple shopping cart using GetX in your Flutter App. Using GetX, we're going to build a simple example Flutter app with two screens, a catalog screen and a cart screen.

00:00 Intro and code walk-through
02:16 Prepare the Product Class and the Catalog Screen UI
05:05 Create the CartController using GetX
07:10 Prepare the Cart Screen UI and show the selected products using the CartController
10:00 Remove and add products from the Cart Screen using the Cart Controller.
11:27 Reactive state management with the Obx widget.
12:00 Calculate and show the cart total using the GetXController
14:10 Create a ProductController to fetch the catalog products from Firebase Cloud Firestore

In the tutorial, the version of Get is 4.3.8. GetX is an extra-light and powerful solution for Flutter. It combines high-performance state management, intelligent dependency injection, and route management quickly and practically. You can find more information about the package here: https://pub.dev/packages/get

If you want to get access to the Github repository for the shopping cart:
✔️ Subscribe to the Channel.
✔️ Subscribe to our mailing list at: https://bit.ly/3zstlsI
Категория
Язык программирования Dart
Комментариев нет.