Video by Joel Loh | AI Automations · streamed from YouTube. All rights remain with the creator.
Lesson 21: Posting and Showing Comments
About this lesson
In this part of the series, Joel Loh finishes the comment section of the photo-sharing app, integrating Supabase tables so that users can post comments and the app can retrieve the comment data and display it in FlutterFlow. It begins by creating the comments table in Supabase, which stores every comment along with the information that connects it to the right post and the person who wrote it, so that each post has its own conversation. The video then implements posting comments, connecting the input in the comment section designed in the previous part to an action that saves the user's comment to the database. Next comes displaying comments, querying the comments for the post being viewed and showing them in the comment section through the comment components, so that the conversation under each post appears with each comment's details rather than the placeholder content. As is common when connecting a new feature to a database, problems appear along the way, and the video works through the debugging needed to find and fix them, which shows how to diagnose issues between FlutterFlow and Supabase. A test then confirms that comments can be posted and that they appear correctly under the right post. By the end of the video, users can comment on posts and read what others have written, and the next part extends the comment section so that users can reply to comments and even reply to replies, using recursive components. Afterwards, read Chapter 21 of the course book, which works out relative comment times by hand.