Products Part 1 – Introduction

1 year ago
27

Products Part 1 – Introduction

What we’ll cover:

Take a look at the dummyjson.com free JSON service
Ability to test Authentication
Retrieve records with Authentication Token

Create a Project called products

Separate Business Logic
UI/UX

Create Models needed for API calls

Auth Model
Auth Error Model
Product Model
Products List Model

Create Services to make API Calls

API Values Service
Authentication Service
Connection Service – Check Internet Connection
Product List Service
Product Service

Create Reusable Widgets

Products ListView
Products ListView Item 1
Products ListView Item 2
Products ListView Card
Star Rating
Status Message

Create Helpers

App Helpers

Performance – Rebuild only what is needed by using…

StreamBuilder
Streams
ValueListenableBuilder
ValueNotifier
Parse JSON server response via json.decode
Parse JSON Via compute – Spawn a Isolate
Parse JSON Via Isolate.spawn – Manually spawn Isolate plus message

Retrieve Records via pagination

ScrollController
ScrollController Listener
ScrollController check scrolling offset and maxScroll Extent to retrieve the next 10 records

Themes

Light Mode
Dark Mode
Switch Between Modes

Version Control

GitHub

GitHub: https://github.com/JediPixels/products
Blog Article: https://jedipixels.dev/flutter-produc...

Twitter: https://twitter.com/JediPixels
Looking for Updates: https://JediPixels.dev

#flutter #fluttertutorial #dart #flutterdev #flutterdeveloper #appdevelopment

Loading comments...