Video by Joel Loh | AI Automations · streamed from YouTube. All rights remain with the creator.
Lesson 27: Creating Chats in Supabase
About this lesson
In this part of the series, Joel Loh implements the functionality to create chats in the photo-sharing app, connecting the chat pages designed in the previous part to Supabase. It begins by adding the chat tables in Supabase that store the chat group data, the information that defines each conversation and which users take part in it, so that the app can keep track of every chat and its members. Designing these tables carefully matters, because they are what allow the app to show each user only the conversations they belong to, and they prepare for the messages that will be stored in the following part. The video then implements creating chat groups in FlutterFlow, so that a user can start a conversation with another person and the new chat is recorded in the database with the right members. Once chats can be created, the next step is reflecting the chat data in the app, displaying a user's conversations on the chat groups page so that the chats they have started, or been included in, appear in the list ready to be opened. The work builds on the same linking ideas used for likes and follows earlier in the series. By the end of the video, users can create chats and see them listed in the app, and the next part creates the messages table and implements sending and displaying messages so that users can talk to each other. Afterwards, read Chapter 27 of the course book, which works out how many conversations an app accumulates by hand.