Flutter Chat App - THE RIGHT WAY! (Part 11 - LocalDB and Messages from Server)

Опубликовано: 02 Ноябрь 2024
на канале: island coder876
6,551
75

#flutter #chatapp #ui #message #server #local #db
In this video we connect to our local database and retrieve messages from our realtime database.

00:00 Intro
01:00 create database factory
05:51 refactor local message model
08:27 create database in composition root
10:40 refactor message service
12:22 add datasource to composition root
14:48 create chats cubit
18:33 subscribe to receive messages
22:08 refactor chats ui to receive chats
30:30 refactor sqflite datasource
32:39 refactor chats ui further
35:59 timestamp to string in local message
37:34 refactor chat map in datasource
39:11 fix bad state error
39:50 insert message from server
43:30 get user data for each chat
48:38 remove queries that clean local db
50:53 test messages from server