StreamChatThemeData class

Theme data for Stream Chat

Constructors

StreamChatThemeData({Brightness? brightness, StreamTextTheme? textTheme, StreamColorTheme? colorTheme, StreamChannelListHeaderThemeData? channelListHeaderTheme, StreamChannelPreviewThemeData? channelPreviewTheme, StreamChannelHeaderThemeData? channelHeaderTheme, StreamMessageThemeData? otherMessageTheme, StreamMessageThemeData? ownMessageTheme, StreamMessageInputThemeData? messageInputTheme, Widget defaultUserImage(BuildContext, User)?, PlaceholderUserImage? placeholderUserImage, IconThemeData? primaryIconTheme, List<StreamReactionIcon>? reactionIcons, StreamGalleryHeaderThemeData? imageHeaderTheme, StreamGalleryFooterThemeData? imageFooterTheme, StreamMessageListViewThemeData? messageListViewTheme})
Creates a theme from scratch
factory
StreamChatThemeData.dark()
Theme initialized with dark
factory
StreamChatThemeData.fromColorAndTextTheme(StreamColorTheme colorTheme, StreamTextTheme textTheme)
Creates a theme from a StreamColorTheme and a StreamTextTheme
factory
StreamChatThemeData.fromTheme(ThemeData theme)
Creates a theme from a Material Theme
factory
StreamChatThemeData.light()
Theme initialized with light
factory
StreamChatThemeData.raw({required StreamTextTheme textTheme, required StreamColorTheme colorTheme, required StreamChannelListHeaderThemeData channelListHeaderTheme, required StreamChannelPreviewThemeData channelPreviewTheme, required StreamChannelHeaderThemeData channelHeaderTheme, required StreamMessageThemeData otherMessageTheme, required StreamMessageThemeData ownMessageTheme, required StreamMessageInputThemeData messageInputTheme, required IconThemeData primaryIconTheme, required StreamGalleryHeaderThemeData galleryHeaderTheme, required StreamGalleryFooterThemeData galleryFooterTheme, required StreamMessageListViewThemeData messageListViewTheme})
Raw theme initialization
const

Properties

channelHeaderTheme StreamChannelHeaderThemeData
Theme of the chat widgets dedicated to a channel header
final
channelListHeaderTheme StreamChannelListHeaderThemeData
Theme of the StreamChannelListHeader
final
channelPreviewTheme StreamChannelPreviewThemeData
Theme of the StreamChannelPreview
final
colorTheme StreamColorTheme
The color themes used in the widgets
final
galleryFooterTheme StreamGalleryFooterThemeData
The default style for StreamGalleryFooters below the overall StreamChatTheme.
final
galleryHeaderTheme StreamGalleryHeaderThemeData
The default style for StreamGalleryHeaders below the overall StreamChatTheme.
final
hashCode int
The hash code for this object.
no setterinherited
messageInputTheme StreamMessageInputThemeData
Theme dedicated to the StreamMessageInput widget
final
messageListViewTheme StreamMessageListViewThemeData
Theme configuration for the StreamMessageListView widget.
final
otherMessageTheme StreamMessageThemeData
Theme of other users messages
final
ownMessageTheme StreamMessageThemeData
Theme of the current user messages
final
primaryIconTheme IconThemeData
Primary icon theme
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textTheme StreamTextTheme
The text themes used in the widgets
final

Methods

copyWith({StreamTextTheme? textTheme, StreamColorTheme? colorTheme, StreamChannelPreviewThemeData? channelPreviewTheme, StreamChannelHeaderThemeData? channelHeaderTheme, StreamMessageThemeData? ownMessageTheme, StreamMessageThemeData? otherMessageTheme, StreamMessageInputThemeData? messageInputTheme, Widget defaultUserImage(BuildContext, User)?, PlaceholderUserImage? placeholderUserImage, IconThemeData? primaryIconTheme, StreamChannelListHeaderThemeData? channelListHeaderTheme, List<StreamReactionIcon>? reactionIcons, StreamGalleryHeaderThemeData? galleryHeaderTheme, StreamGalleryFooterThemeData? galleryFooterTheme, StreamMessageListViewThemeData? messageListViewTheme}) StreamChatThemeData
Creates a copy of StreamChatThemeData with specified attributes overridden.
merge(StreamChatThemeData? other) StreamChatThemeData
Merge themes
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited