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

Disable onLongPress message panel #41

Closed
brizaldi opened this issue Apr 24, 2020 · 6 comments
Closed

Disable onLongPress message panel #41

brizaldi opened this issue Apr 24, 2020 · 6 comments

Comments

@brizaldi
Copy link

image

is there a way to disable that panel?

@imtoori
Copy link
Contributor

imtoori commented Apr 24, 2020

Hi @brizaldi

You can pass a function to MessageListView specifying what to instead of showing the panel

                MessageListView(
                  onMessageActions: (context, message) {},
                )

If you use a function like that one, nothing will happen

@brizaldi
Copy link
Author

image
what about this panel? is it also customizable?

@imtoori
Copy link
Contributor

imtoori commented Apr 24, 2020

At the moment you can only disable the attachment button

I was thinking that it could be interesting to add a parameter to pass as many actions as you want, like the actions argument of the AppBar.
In this way, you could disable the attachment button and add your custom button.

Do you think it's a good idea?

@brizaldi
Copy link
Author

yeah that's a good idea, i think every component should customizable and let the user choose what style/action for each component

@imtoori
Copy link
Contributor

imtoori commented Apr 24, 2020

that's the ultimate goal, it's a matter of time

I'll close this issue and implement the customizable actions for MessageInput

@imtoori imtoori closed this as completed Apr 24, 2020
@imtoori
Copy link
Contributor

imtoori commented Apr 28, 2020

#43
@brizaldi Could you tell me what do you think of this solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants