Group Chat Action
Using this action, you can create a group chat and add or remove member(s).

Group chat action
Before adding this action, you'll need to set up the chat and add the pages required to build the group chat. If you haven't already done so, you can follow the instruction here.
There are mainly three types of actions you can add perform.
- 1.Create Group Chat: This creates a new group and adds members.
- 2.Add Group Member(s): This adds new members to the existing group.
- 3.Remove Group Member(s): This removes existing members from the group.
Go to your project page on FlutterFlow and follow the steps below to define the Action to any widget.
- Select the Widget (e.g. Button) on which you want to define the action.
- Select Actions from the Properties panel (the right menu), and click Open. This will open an Action flow Editor in a new popup window.
- Click on the + Add Action.
- On the right side, search and select Group Chat Action.
- To create a new group, set the Chat Action Type to Create Group Chat.
- Now, you need to provide the list of users to add. You can do so by setting the Multiple Users.
- Set the Source to Widget State.
- Set the Available Options to Checked Items. Because most probably, you'll use CheckboxListTile for such a case.
- Inside the Map List Items box, set the Available Options to reference.
- To auto navigate to the chat page after successful group creation, keep the Navigate to Chat Page toggle on.
- To add user(s) to a group, set the Chat Action Type to Add Group Member(s).
- First, you need to provide the chat record in which you would like to add a member(s). Set the Source to the parameter name that receives the chat record from the previous page. Most probably, this would be the chat.
- Now, you need to provide the list of users to add. You can do so by setting the Multiple Users.
- Set the Source to Widget State.
- Set the Available Options to Checked Items. Because most probably, you'll use CheckboxListTile for such a case.
- Inside the Map List Items box, set the Available Options to reference.
- To remove user(s) from the group, set the Chat Action Type to Remove Group Member(s).
- First, you need to provide the chat record from which you would like to remove a member(s). Set the Source to the parameter name that receives the chat record from the previous page. Most probably, this would be the chat.
- Now, you need to provide the list of users to remove. You can do so by setting the Multiple Users.
- Set the Source to Widget State.
- Set the Available Options to Checked Items. Because most probably, you'll use CheckboxListTile for such a case.
- Inside the Map List Items box, set the Available Options to reference.
- Click Close.

Adding group chat action
Last modified 10mo ago