Chrysolites Tech Academy

Video by Joel Loh | AI Automations · streamed from YouTube. All rights remain with the creator.

Lesson 28: Sending and Showing Messages

About this lesson

In this part of the series, Joel Loh implements the functionality that allows users of the photo-sharing app to send messages to each other, bringing the chat feature to life. It begins by creating a messages table in Supabase, which stores the data for every message, including the conversation it belongs to and the person who sent it, so that each chat has its own history. The video then implements sending messages in FlutterFlow, connecting the input on the chat page designed earlier to an action that saves the user's message to the messages table. Once messages can be sent, the next step is displaying messages, querying the messages for the conversation being viewed and showing them within the chat page, so that both people can read what has been said, laid out in the familiar style of a messaging app. As with every feature that connects interface and database, some problems appear along the way, and the video covers debugging and testing, working through the issues and then checking that messages are sent, stored and displayed correctly between users. It shows the series' familiar patterns, linked tables, inserts and queries, coming together in one feature. By the end of the video, users can exchange messages within the app, and the next part completes the chat functionality, finishing the base version of the photo-sharing app. Afterwards, read Chapter 28 of the course book, which works out how quickly the messages table grows by hand.

Install Chrysolites Tech Academy

Android / Chrome / Edge: open the browser menu and choose Install app or Add to Home screen.

iPhone / iPad (Safari): tap the Share button, then Add to Home Screen.