add MessageInputTheme basic docs
This commit is contained in:
@@ -845,7 +845,9 @@ class ChannelHeaderTheme {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Defines the theme dedicated to the [MessageInput] widget
|
||||||
class MessageInputTheme {
|
class MessageInputTheme {
|
||||||
|
/// Duration of the [MessageInput] send button animation
|
||||||
final Duration sendAnimationDuration;
|
final Duration sendAnimationDuration;
|
||||||
|
|
||||||
/// Background color of [MessageInput] send button
|
/// Background color of [MessageInput] send button
|
||||||
@@ -863,6 +865,7 @@ class MessageInputTheme {
|
|||||||
/// Background color of [MessageInput]
|
/// Background color of [MessageInput]
|
||||||
final Color inputBackground;
|
final Color inputBackground;
|
||||||
|
|
||||||
|
/// Returns a new [MessageInputTheme]
|
||||||
const MessageInputTheme({
|
const MessageInputTheme({
|
||||||
this.sendAnimationDuration,
|
this.sendAnimationDuration,
|
||||||
this.actionButtonColor,
|
this.actionButtonColor,
|
||||||
@@ -872,6 +875,7 @@ class MessageInputTheme {
|
|||||||
this.inputBackground,
|
this.inputBackground,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/// Returns a new [MessageInputTheme] replacing some of its properties
|
||||||
MessageInputTheme copyWith({
|
MessageInputTheme copyWith({
|
||||||
Duration sendAnimationDuration,
|
Duration sendAnimationDuration,
|
||||||
Color inputBackground,
|
Color inputBackground,
|
||||||
@@ -891,6 +895,7 @@ class MessageInputTheme {
|
|||||||
sendButtonIdleColor: sendButtonIdleColor ?? this.sendButtonIdleColor,
|
sendButtonIdleColor: sendButtonIdleColor ?? this.sendButtonIdleColor,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/// Merges [this] [MessageInputTheme] with the [other]
|
||||||
MessageInputTheme merge(MessageInputTheme other) {
|
MessageInputTheme merge(MessageInputTheme other) {
|
||||||
if (other == null) return this;
|
if (other == null) return this;
|
||||||
return copyWith(
|
return copyWith(
|
||||||
|
|||||||
Reference in New Issue
Block a user