From 009b66826ba0a3671a13ed68ad6ac550223ead6b Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Fri, 26 Feb 2021 17:17:28 +0100 Subject: [PATCH] add MessageInputTheme basic docs --- packages/stream_chat_flutter/lib/src/stream_chat_theme.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/stream_chat_flutter/lib/src/stream_chat_theme.dart b/packages/stream_chat_flutter/lib/src/stream_chat_theme.dart index 338e2603..aa4f51f0 100644 --- a/packages/stream_chat_flutter/lib/src/stream_chat_theme.dart +++ b/packages/stream_chat_flutter/lib/src/stream_chat_theme.dart @@ -845,7 +845,9 @@ class ChannelHeaderTheme { } } +/// Defines the theme dedicated to the [MessageInput] widget class MessageInputTheme { + /// Duration of the [MessageInput] send button animation final Duration sendAnimationDuration; /// Background color of [MessageInput] send button @@ -863,6 +865,7 @@ class MessageInputTheme { /// Background color of [MessageInput] final Color inputBackground; + /// Returns a new [MessageInputTheme] const MessageInputTheme({ this.sendAnimationDuration, this.actionButtonColor, @@ -872,6 +875,7 @@ class MessageInputTheme { this.inputBackground, }); + /// Returns a new [MessageInputTheme] replacing some of its properties MessageInputTheme copyWith({ Duration sendAnimationDuration, Color inputBackground, @@ -891,6 +895,7 @@ class MessageInputTheme { sendButtonIdleColor: sendButtonIdleColor ?? this.sendButtonIdleColor, ); + /// Merges [this] [MessageInputTheme] with the [other] MessageInputTheme merge(MessageInputTheme other) { if (other == null) return this; return copyWith(