Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative input options (instead of text input) for a chat game #164

Closed
thomers opened this issue May 16, 2024 · 1 comment · Fixed by #170
Closed

Alternative input options (instead of text input) for a chat game #164

thomers opened this issue May 16, 2024 · 1 comment · Fixed by #170
Assignees
Labels
P1 Priority

Comments

@thomers
Copy link

thomers commented May 16, 2024

Hello! I'm searching for a Chat UI package that I can extend to allow for the following:

I'm creating a chat game that looks like a messenger app, with group chats and 1-on-1 chats etc. - the difference is that the chat messages that the player "receives" from the chat partners are generated one by one (with delays in between) by the story engine.

At certain points in the story, the user is asked for text input (like his name), and the player can enter any text as his answer (which is shown as a message coming from the user in the chat message list) - his answer is stored as a variable in the story engine and then the story continues.

At other points, the player is asked to select one of n predefined answer options, like in a "choose your own adventure"-style book. This means that he cannot enter text freely, but can only tap one of n (usually 2-4) answer buttons - which creates a message coming from the user as well with that answer option text, continuing the story.

Except at those interaction points where the story does not continue, the user cannot interact or enter input - he just sees the messages coming in one by one.

Basically, I'm looking for options in flutter_chatview to:

  • Enable/disable the input bar
  • When the input bar is tapped, optionally show the list of predefined answer buttons instead of using the text input field as normal.

How would I approach this?

Thanks,
Thomas

@apurva010
Copy link
Collaborator

Hi @thomers, We intend to offer the first option, which involves enabling or disabling the input bar. However, implementing the second option will require more time, and we cannot guarantee a prompt delivery. We welcome contributions from external parties; if you plan to implement this feature, please feel free to submit a pull request in this repository. Your contributions will benefit many others as well.

@apurva010 apurva010 added the P1 Priority label May 16, 2024
@apurva010 apurva010 self-assigned this May 16, 2024
apurva010 added a commit that referenced this issue May 21, 2024
- Added flag to enable/disable chat text field.
apurva010 added a commit that referenced this issue May 21, 2024
- Added flag to enable/disable chat text field.
apurva010 added a commit that referenced this issue May 21, 2024
- Added flag to enable/disable chat text field.
apurva010 added a commit that referenced this issue May 22, 2024
- Added flag to enable/disable chat text field.
aditya-css pushed a commit that referenced this issue May 22, 2024
- Added flag to enable/disable chat text field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 Priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants