Skip to content

Unable to wrap ChannelList height due to internal LazyColumn .fillMaxSize() #5612

Description

@askirk

I am trying to wrap the height of a ChannelList, so I can place a view directly under the list of channels, but I am unable to do this dynamically. This line https://github.com/GetStream/stream-chat-android/blob/develop/stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/channels/list/Channels.kt#L85 prevents me from being able to wrap the ChannelList height, as the internal LazyColumn takes up the full view. I would like to propose that the SDK provide the option to .wrapContentHeight() to this LazyColumn.

Image

In this image you can see I'm able to get close to what I want. The red box is the ChannelList which I predefined the .height to the size of 2 channels. The "Contact" section and below is my own custom view. I would like this section to be placed dynamically under the list of channels regardless of the # of channels.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions