-
Notifications
You must be signed in to change notification settings - Fork 286
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
Remove the elevation of the MessageComposer #5569
Comments
Hi there, The reason why most of the Lately we've been having more requests for these kind of small customisations that you like to do and for this reason we are working on a way that will allow to replace and modify internal components without the need to rewrite and copy/paste most of the components. In the meantime we can expose maybe the specific composable that you need? For your specific use-case for the Would exposing these two be enough for you for the moment? Regards, |
Yes if you could make those two public that would help a lot! Thanks, |
Hello @sebastianmarschall We have been working on a new way to easily provide custom components that our SDK will use internally. |
Hi @sebastianmarschall , Starting from the 6.11.0 release, you can use a custom Component Factory to override the Let us know if you need further guidance. Thanks, |
Thanks for your effort, really appreciate it! I was able to remove quite some code that I needed to copy over before. Still, my original example issue of removing the elevation of the composer, requires quite some copy-pasting. For that I need to copy MessageInputValidationError, SnackbarPopup, StreamAboveAnchorPopupPositionProvider |
Hi @sebastianmarschall |
Is there a specific reason why almost all DefaultXXX composables are private?
Thats a huge pita if one wants to make even the smalles adaptions of any chat element. For example, I want the MessageComposer to not have an elevation of 4.dp. But thats hardcoded, I cant change it by parameters. I now have to copy the whole MessageComposer composable over but not only that I have to go through all default components that are used within MessageComposer and copy them over as well. Thats laborious, error prone and any changes that are made to those elements within the SDK I won't take notice off.
The text was updated successfully, but these errors were encountered: