Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 609 Bytes

MessageCellSizeConfiguration.md

File metadata and controls

16 lines (12 loc) · 609 Bytes

swifty_chat

Message Cell Size Configuration

Visit the MessageCellSizeConfiguration class file.

ImageCell

Here below you see an example of how you can configure the maximum width of message type MessageKind.image & MessageKind.carousel (item) cell. parentWidth is the availableWidth it's given by the package itself, so you can do customization here.

MessageCellSizeConfigurator(
    imageCellMaxWidthConfiguration: (parentWidth) => parentWidth * 0.7,
    carouselCellMaxHeightConfiguration: (parentHeight) => parentWidth * 0.5
);